zernio-sdk 0.0.1722 → 0.0.1723
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/docs/AdCampaignsApi.md +2 -0
- data/docs/AdsTimelineResponseRowsInner.md +2 -0
- data/lib/zernio-sdk/api/ad_campaigns_api.rb +7 -0
- data/lib/zernio-sdk/models/ads_timeline_response_rows_inner.rb +12 -1
- data/lib/zernio-sdk/version.rb +1 -1
- data/openapi.yaml +1 -1
- data/spec/api/ad_campaigns_api_spec.rb +1 -0
- data/spec/models/ads_timeline_response_rows_inner_spec.rb +6 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3edff9adb2c9b7122d848c1ed693b78a5940d96dd991f73af8a5edee45d2bbe9
|
|
4
|
+
data.tar.gz: 2a1eb42db1bc3ce3878a6fbcbee09c40e5a873d98c911a13de24decca9d51833
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 871f54397fedca3f2da3039528a2e3019fd3064cd67b78ad6533071630cd5e6a7a7728191736095fa4cdae4339615f7220788f83d567dcfba2eb8c35df12607d
|
|
7
|
+
data.tar.gz: 802baeeb0845dfb8b82de0ffd40d649719126878fb5520635e6ea0ee6c63301ea4571daf8c83f3e9f19017ec98a8b444e7bf4276a1c0545cc3ce45c45558f4d8
|
data/docs/AdCampaignsApi.md
CHANGED
|
@@ -2243,6 +2243,7 @@ opts = {
|
|
|
2243
2243
|
from_date: Date.parse('2013-10-20'), # Date | Inclusive start of metrics range (YYYY-MM-DD). Defaults to 90 days ago.
|
|
2244
2244
|
to_date: Date.parse('2013-10-20'), # Date | Inclusive end of metrics range (YYYY-MM-DD). Defaults to today. Max 730-day range.
|
|
2245
2245
|
platform: 'facebook', # String | Restrict to one platform.
|
|
2246
|
+
breakdown: 'adAccount', # String | Set to `adAccount` to keep one row per day and platform ad account, each carrying its `adAccountId`, instead of one row per day and currency. Two connections that reach the same ad account both return it: add their timelines per `adAccountId` to count it once.
|
|
2246
2247
|
compare: 'previous' # String | Set to `previous` to also return `previousRows` for the period of the same length that ends the day before `fromDate`, with that period as `previousRange`. Needs a `fromDate` (sent or defaulted); `toDate` alone answers 400.
|
|
2247
2248
|
}
|
|
2248
2249
|
|
|
@@ -2282,6 +2283,7 @@ end
|
|
|
2282
2283
|
| **from_date** | **Date** | Inclusive start of metrics range (YYYY-MM-DD). Defaults to 90 days ago. | [optional] |
|
|
2283
2284
|
| **to_date** | **Date** | Inclusive end of metrics range (YYYY-MM-DD). Defaults to today. Max 730-day range. | [optional] |
|
|
2284
2285
|
| **platform** | **String** | Restrict to one platform. | [optional] |
|
|
2286
|
+
| **breakdown** | **String** | Set to `adAccount` to keep one row per day and platform ad account, each carrying its `adAccountId`, instead of one row per day and currency. Two connections that reach the same ad account both return it: add their timelines per `adAccountId` to count it once. | [optional] |
|
|
2285
2287
|
| **compare** | **String** | Set to `previous` to also return `previousRows` for the period of the same length that ends the day before `fromDate`, with that period as `previousRange`. Needs a `fromDate` (sent or defaulted); `toDate` alone answers 400. | [optional] |
|
|
2286
2288
|
|
|
2287
2289
|
### Return type
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
7
|
| **date** | **Date** | | [optional] |
|
|
8
8
|
| **currency** | **String** | ISO 4217 currency of every money field in this row (spend, cpc, cpm, costPerConversion, purchaseValue, actionValues). Null when the currency of the row's ad accounts is unknown. Added 2026-10-23. An account whose ad accounts bill in different currencies gets one row per currency for that day, never a sum across currencies. | [optional] |
|
|
9
|
+
| **ad_account_id** | **String** | Only with `breakdown=adAccount`. The platform ad account of this row (e.g. Meta `act_…`); null for rows ingested before 2026-05-13. Added 2026-11-23. | [optional] |
|
|
9
10
|
| **spend** | **Float** | Native currency units (matches /ads/tree convention), in `currency`. | [optional] |
|
|
10
11
|
| **impressions** | **Integer** | | [optional] |
|
|
11
12
|
| **reach** | **Integer** | Reach summed across the account's ads for this single day. A person seen by two ads the same day counts twice, and reach is de-duplicated per day only: do NOT sum it across days (people reached on multiple days would be double-counted). | [optional] |
|
|
@@ -31,6 +32,7 @@ require 'zernio-sdk'
|
|
|
31
32
|
instance = Zernio::AdsTimelineResponseRowsInner.new(
|
|
32
33
|
date: null,
|
|
33
34
|
currency: null,
|
|
35
|
+
ad_account_id: null,
|
|
34
36
|
spend: null,
|
|
35
37
|
impressions: null,
|
|
36
38
|
reach: null,
|
|
@@ -2282,6 +2282,7 @@ module Zernio
|
|
|
2282
2282
|
# @option opts [Date] :from_date Inclusive start of metrics range (YYYY-MM-DD). Defaults to 90 days ago.
|
|
2283
2283
|
# @option opts [Date] :to_date Inclusive end of metrics range (YYYY-MM-DD). Defaults to today. Max 730-day range.
|
|
2284
2284
|
# @option opts [String] :platform Restrict to one platform.
|
|
2285
|
+
# @option opts [String] :breakdown Set to `adAccount` to keep one row per day and platform ad account, each carrying its `adAccountId`, instead of one row per day and currency. Two connections that reach the same ad account both return it: add their timelines per `adAccountId` to count it once.
|
|
2285
2286
|
# @option opts [String] :compare Set to `previous` to also return `previousRows` for the period of the same length that ends the day before `fromDate`, with that period as `previousRange`. Needs a `fromDate` (sent or defaulted); `toDate` alone answers 400.
|
|
2286
2287
|
# @return [AdsTimelineResponse]
|
|
2287
2288
|
def get_ads_timeline(account_id, opts = {})
|
|
@@ -2297,6 +2298,7 @@ module Zernio
|
|
|
2297
2298
|
# @option opts [Date] :from_date Inclusive start of metrics range (YYYY-MM-DD). Defaults to 90 days ago.
|
|
2298
2299
|
# @option opts [Date] :to_date Inclusive end of metrics range (YYYY-MM-DD). Defaults to today. Max 730-day range.
|
|
2299
2300
|
# @option opts [String] :platform Restrict to one platform.
|
|
2301
|
+
# @option opts [String] :breakdown Set to `adAccount` to keep one row per day and platform ad account, each carrying its `adAccountId`, instead of one row per day and currency. Two connections that reach the same ad account both return it: add their timelines per `adAccountId` to count it once.
|
|
2300
2302
|
# @option opts [String] :compare Set to `previous` to also return `previousRows` for the period of the same length that ends the day before `fromDate`, with that period as `previousRange`. Needs a `fromDate` (sent or defaulted); `toDate` alone answers 400.
|
|
2301
2303
|
# @return [Array<(AdsTimelineResponse, Integer, Hash)>] AdsTimelineResponse data, response status code and response headers
|
|
2302
2304
|
def get_ads_timeline_with_http_info(account_id, opts = {})
|
|
@@ -2311,6 +2313,10 @@ module Zernio
|
|
|
2311
2313
|
if @api_client.config.client_side_validation && opts[:'platform'] && !allowable_values.include?(opts[:'platform'])
|
|
2312
2314
|
fail ArgumentError, "invalid value for \"platform\", must be one of #{allowable_values}"
|
|
2313
2315
|
end
|
|
2316
|
+
allowable_values = ["adAccount"]
|
|
2317
|
+
if @api_client.config.client_side_validation && opts[:'breakdown'] && !allowable_values.include?(opts[:'breakdown'])
|
|
2318
|
+
fail ArgumentError, "invalid value for \"breakdown\", must be one of #{allowable_values}"
|
|
2319
|
+
end
|
|
2314
2320
|
allowable_values = ["previous"]
|
|
2315
2321
|
if @api_client.config.client_side_validation && opts[:'compare'] && !allowable_values.include?(opts[:'compare'])
|
|
2316
2322
|
fail ArgumentError, "invalid value for \"compare\", must be one of #{allowable_values}"
|
|
@@ -2325,6 +2331,7 @@ module Zernio
|
|
|
2325
2331
|
query_params[:'fromDate'] = opts[:'from_date'] if !opts[:'from_date'].nil?
|
|
2326
2332
|
query_params[:'toDate'] = opts[:'to_date'] if !opts[:'to_date'].nil?
|
|
2327
2333
|
query_params[:'platform'] = opts[:'platform'] if !opts[:'platform'].nil?
|
|
2334
|
+
query_params[:'breakdown'] = opts[:'breakdown'] if !opts[:'breakdown'].nil?
|
|
2328
2335
|
query_params[:'compare'] = opts[:'compare'] if !opts[:'compare'].nil?
|
|
2329
2336
|
|
|
2330
2337
|
# header parameters
|
|
@@ -20,6 +20,9 @@ module Zernio
|
|
|
20
20
|
# ISO 4217 currency of every money field in this row (spend, cpc, cpm, costPerConversion, purchaseValue, actionValues). Null when the currency of the row's ad accounts is unknown. Added 2026-10-23. An account whose ad accounts bill in different currencies gets one row per currency for that day, never a sum across currencies.
|
|
21
21
|
attr_accessor :currency
|
|
22
22
|
|
|
23
|
+
# Only with `breakdown=adAccount`. The platform ad account of this row (e.g. Meta `act_…`); null for rows ingested before 2026-05-13. Added 2026-11-23.
|
|
24
|
+
attr_accessor :ad_account_id
|
|
25
|
+
|
|
23
26
|
# Native currency units (matches /ads/tree convention), in `currency`.
|
|
24
27
|
attr_accessor :spend
|
|
25
28
|
|
|
@@ -69,6 +72,7 @@ module Zernio
|
|
|
69
72
|
{
|
|
70
73
|
:'date' => :'date',
|
|
71
74
|
:'currency' => :'currency',
|
|
75
|
+
:'ad_account_id' => :'adAccountId',
|
|
72
76
|
:'spend' => :'spend',
|
|
73
77
|
:'impressions' => :'impressions',
|
|
74
78
|
:'reach' => :'reach',
|
|
@@ -103,6 +107,7 @@ module Zernio
|
|
|
103
107
|
{
|
|
104
108
|
:'date' => :'Date',
|
|
105
109
|
:'currency' => :'String',
|
|
110
|
+
:'ad_account_id' => :'String',
|
|
106
111
|
:'spend' => :'Float',
|
|
107
112
|
:'impressions' => :'Integer',
|
|
108
113
|
:'reach' => :'Integer',
|
|
@@ -126,6 +131,7 @@ module Zernio
|
|
|
126
131
|
def self.openapi_nullable
|
|
127
132
|
Set.new([
|
|
128
133
|
:'currency',
|
|
134
|
+
:'ad_account_id',
|
|
129
135
|
])
|
|
130
136
|
end
|
|
131
137
|
|
|
@@ -153,6 +159,10 @@ module Zernio
|
|
|
153
159
|
self.currency = attributes[:'currency']
|
|
154
160
|
end
|
|
155
161
|
|
|
162
|
+
if attributes.key?(:'ad_account_id')
|
|
163
|
+
self.ad_account_id = attributes[:'ad_account_id']
|
|
164
|
+
end
|
|
165
|
+
|
|
156
166
|
if attributes.key?(:'spend')
|
|
157
167
|
self.spend = attributes[:'spend']
|
|
158
168
|
end
|
|
@@ -246,6 +256,7 @@ module Zernio
|
|
|
246
256
|
self.class == o.class &&
|
|
247
257
|
date == o.date &&
|
|
248
258
|
currency == o.currency &&
|
|
259
|
+
ad_account_id == o.ad_account_id &&
|
|
249
260
|
spend == o.spend &&
|
|
250
261
|
impressions == o.impressions &&
|
|
251
262
|
reach == o.reach &&
|
|
@@ -273,7 +284,7 @@ module Zernio
|
|
|
273
284
|
# Calculates hash code according to all attributes.
|
|
274
285
|
# @return [Integer] Hash code
|
|
275
286
|
def hash
|
|
276
|
-
[date, currency, spend, impressions, reach, clicks, engagement, ctr, cpc, cpm, conversions, all_conversions, conversions_by_type, cost_per_conversion, actions, action_values, purchase_value, roas].hash
|
|
287
|
+
[date, currency, ad_account_id, spend, impressions, reach, clicks, engagement, ctr, cpc, cpm, conversions, all_conversions, conversions_by_type, cost_per_conversion, actions, action_values, purchase_value, roas].hash
|
|
277
288
|
end
|
|
278
289
|
|
|
279
290
|
# Builds the object from hash
|
data/lib/zernio-sdk/version.rb
CHANGED