zernio-sdk 0.0.550 → 0.0.552
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/README.md +73 -75
- data/docs/AdAccountsApi.md +915 -0
- data/docs/AdCampaignsApi.md +615 -15
- data/docs/AdCreativesApi.md +815 -0
- data/docs/AdInsightsApi.md +415 -0
- data/docs/AdTargetingApi.md +371 -0
- data/docs/AnalyticsApi.md +7 -7
- data/docs/BoostPostRequestTracking.md +1 -1
- data/docs/{CreateLeadFormRequestQuestionsInnerOptionsInner.md → BoostPostRequestTrackingUrlTagsInner.md} +2 -2
- data/docs/ConversionsApi.md +890 -0
- data/docs/CreateLeadFormRequestQuestionsInner.md +1 -1
- data/docs/LeadGenApi.md +527 -0
- data/docs/MessagingAdsApi.md +215 -0
- data/docs/ReachAndFrequencyApi.md +294 -0
- data/docs/TrackingTagsApi.md +141 -0
- data/docs/YouTubeDailyViewsResponse.md +2 -0
- data/docs/YouTubeDemographicsResponse.md +2 -0
- data/docs/YouTubeVideoRetentionResponse.md +2 -0
- data/lib/zernio-sdk/api/ad_accounts_api.rb +958 -0
- data/lib/zernio-sdk/api/ad_campaigns_api.rb +618 -12
- data/lib/zernio-sdk/api/ad_creatives_api.rb +826 -0
- data/lib/zernio-sdk/api/ad_insights_api.rb +446 -0
- data/lib/zernio-sdk/api/ad_targeting_api.rb +404 -0
- data/lib/zernio-sdk/api/analytics_api.rb +8 -8
- data/lib/zernio-sdk/api/conversions_api.rb +936 -0
- data/lib/zernio-sdk/api/lead_gen_api.rb +547 -0
- data/lib/zernio-sdk/api/messaging_ads_api.rb +226 -0
- data/lib/zernio-sdk/api/reach_and_frequency_api.rb +316 -0
- data/lib/zernio-sdk/api/tracking_tags_api.rb +137 -0
- data/lib/zernio-sdk/models/boost_post_request_tracking.rb +5 -2
- data/lib/zernio-sdk/models/{create_lead_form_request_questions_inner_options_inner.rb → boost_post_request_tracking_url_tags_inner.rb} +3 -3
- data/lib/zernio-sdk/models/create_lead_form_request_questions_inner.rb +1 -1
- data/lib/zernio-sdk/models/you_tube_daily_views_response.rb +11 -1
- data/lib/zernio-sdk/models/you_tube_demographics_response.rb +11 -1
- data/lib/zernio-sdk/models/you_tube_video_retention_response.rb +11 -1
- data/lib/zernio-sdk/version.rb +1 -1
- data/lib/zernio-sdk.rb +9 -2
- data/openapi.yaml +329 -163
- data/spec/api/ad_accounts_api_spec.rb +206 -0
- data/spec/api/ad_campaigns_api_spec.rb +119 -6
- data/spec/api/ad_creatives_api_spec.rb +182 -0
- data/spec/api/ad_insights_api_spec.rb +120 -0
- data/spec/api/ad_targeting_api_spec.rb +101 -0
- data/spec/api/analytics_api_spec.rb +4 -4
- data/spec/api/conversions_api_spec.rb +199 -0
- data/spec/api/lead_gen_api_spec.rb +131 -0
- data/spec/api/messaging_ads_api_spec.rb +71 -0
- data/spec/api/reach_and_frequency_api_spec.rb +87 -0
- data/spec/api/tracking_tags_api_spec.rb +25 -0
- data/spec/models/{create_lead_form_request_questions_inner_options_inner_spec.rb → boost_post_request_tracking_url_tags_inner_spec.rb} +6 -6
- data/spec/models/you_tube_daily_views_response_spec.rb +6 -0
- data/spec/models/you_tube_demographics_response_spec.rb +6 -0
- data/spec/models/you_tube_video_retention_response_spec.rb +6 -0
- metadata +38 -10
- data/docs/AdsApi.md +0 -5278
- data/lib/zernio-sdk/api/ads_api.rb +0 -5391
- data/spec/api/ads_api_spec.rb +0 -1015
|
@@ -173,6 +173,69 @@ module Zernio
|
|
|
173
173
|
return data, status_code, headers
|
|
174
174
|
end
|
|
175
175
|
|
|
176
|
+
# Get ad tracking tags
|
|
177
|
+
# Unified read of the platform's native click-URL tracking params. - Meta (facebook/instagram): the creative's `url_tags` (and template_url_spec). - Google (googleads): the campaign's `trackingUrlTemplate` + `finalUrlSuffix`. Subject to the Google Ads API access-tier daily quota; bulk audits need Standard access. - LinkedIn (linkedinads): the campaign's Dynamic UTM `dynamicValueParameters` + `customValueParameters`. Returns 405 for platforms without a click-URL tracking surface (TikTok, X, Pinterest).
|
|
178
|
+
# @param ad_id [String] Ad id (hex _id, platformAdId, or effective story/media id).
|
|
179
|
+
# @param [Hash] opts the optional parameters
|
|
180
|
+
# @return [GetAdTrackingTags200Response]
|
|
181
|
+
def get_ad_tracking_tags(ad_id, opts = {})
|
|
182
|
+
data, _status_code, _headers = get_ad_tracking_tags_with_http_info(ad_id, opts)
|
|
183
|
+
data
|
|
184
|
+
end
|
|
185
|
+
|
|
186
|
+
# Get ad tracking tags
|
|
187
|
+
# Unified read of the platform's native click-URL tracking params. - Meta (facebook/instagram): the creative's `url_tags` (and template_url_spec). - Google (googleads): the campaign's `trackingUrlTemplate` + `finalUrlSuffix`. Subject to the Google Ads API access-tier daily quota; bulk audits need Standard access. - LinkedIn (linkedinads): the campaign's Dynamic UTM `dynamicValueParameters` + `customValueParameters`. Returns 405 for platforms without a click-URL tracking surface (TikTok, X, Pinterest).
|
|
188
|
+
# @param ad_id [String] Ad id (hex _id, platformAdId, or effective story/media id).
|
|
189
|
+
# @param [Hash] opts the optional parameters
|
|
190
|
+
# @return [Array<(GetAdTrackingTags200Response, Integer, Hash)>] GetAdTrackingTags200Response data, response status code and response headers
|
|
191
|
+
def get_ad_tracking_tags_with_http_info(ad_id, opts = {})
|
|
192
|
+
if @api_client.config.debugging
|
|
193
|
+
@api_client.config.logger.debug 'Calling API: TrackingTagsApi.get_ad_tracking_tags ...'
|
|
194
|
+
end
|
|
195
|
+
# verify the required parameter 'ad_id' is set
|
|
196
|
+
if @api_client.config.client_side_validation && ad_id.nil?
|
|
197
|
+
fail ArgumentError, "Missing the required parameter 'ad_id' when calling TrackingTagsApi.get_ad_tracking_tags"
|
|
198
|
+
end
|
|
199
|
+
# resource path
|
|
200
|
+
local_var_path = '/v1/ads/{adId}/tracking-tags'.sub('{' + 'adId' + '}', CGI.escape(ad_id.to_s))
|
|
201
|
+
|
|
202
|
+
# query parameters
|
|
203
|
+
query_params = opts[:query_params] || {}
|
|
204
|
+
|
|
205
|
+
# header parameters
|
|
206
|
+
header_params = opts[:header_params] || {}
|
|
207
|
+
# HTTP header 'Accept' (if needed)
|
|
208
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
209
|
+
|
|
210
|
+
# form parameters
|
|
211
|
+
form_params = opts[:form_params] || {}
|
|
212
|
+
|
|
213
|
+
# http body (model)
|
|
214
|
+
post_body = opts[:debug_body]
|
|
215
|
+
|
|
216
|
+
# return_type
|
|
217
|
+
return_type = opts[:debug_return_type] || 'GetAdTrackingTags200Response'
|
|
218
|
+
|
|
219
|
+
# auth_names
|
|
220
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
221
|
+
|
|
222
|
+
new_options = opts.merge(
|
|
223
|
+
:operation => :"TrackingTagsApi.get_ad_tracking_tags",
|
|
224
|
+
:header_params => header_params,
|
|
225
|
+
:query_params => query_params,
|
|
226
|
+
:form_params => form_params,
|
|
227
|
+
:body => post_body,
|
|
228
|
+
:auth_names => auth_names,
|
|
229
|
+
:return_type => return_type
|
|
230
|
+
)
|
|
231
|
+
|
|
232
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
233
|
+
if @api_client.config.debugging
|
|
234
|
+
@api_client.config.logger.debug "API called: TrackingTagsApi#get_ad_tracking_tags\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
235
|
+
end
|
|
236
|
+
return data, status_code, headers
|
|
237
|
+
end
|
|
238
|
+
|
|
176
239
|
# Get a tracking tag
|
|
177
240
|
# Returns the full tag record including the base-code `code` snippet, `lastFiredTime`, `ownerBusinessId`, `isUnavailable`, etc. Meta only (platform `metaads`); other platforms return 405.
|
|
178
241
|
# @param account_id [String]
|
|
@@ -531,6 +594,80 @@ module Zernio
|
|
|
531
594
|
return data, status_code, headers
|
|
532
595
|
end
|
|
533
596
|
|
|
597
|
+
# Set ad tracking tags
|
|
598
|
+
# Unified update. Send only the fields for the ad's platform: - Meta: `urlTags` (array of {key,value}). Meta creatives are immutable, so this rebuilds the creative and repoints the ad. By DEFAULT we PRESERVE the existing creative verbatim (re-post its object_story_spec + the new url_tags, reusing the image), so you send `urlTags` ALONE — no need to read back headline/body/CTA. `creative` (headline, body, callToAction, linkUrl, imageUrl) is OPTIONAL and only needed to rebuild explicitly, or for SHARE / page-post / dark / asset_feed creatives whose object_story_spec Meta strips (those return 422 asking for `creative`). - Google: `trackingUrlTemplate` and/or `finalUrlSuffix` (full template strings; account quota applies). - LinkedIn: `dynamicValueParameters` and/or `customValueParameters` (campaign-level Dynamic UTM).
|
|
599
|
+
# @param ad_id [String]
|
|
600
|
+
# @param update_ad_tracking_tags_request [UpdateAdTrackingTagsRequest]
|
|
601
|
+
# @param [Hash] opts the optional parameters
|
|
602
|
+
# @return [nil]
|
|
603
|
+
def update_ad_tracking_tags(ad_id, update_ad_tracking_tags_request, opts = {})
|
|
604
|
+
update_ad_tracking_tags_with_http_info(ad_id, update_ad_tracking_tags_request, opts)
|
|
605
|
+
nil
|
|
606
|
+
end
|
|
607
|
+
|
|
608
|
+
# Set ad tracking tags
|
|
609
|
+
# Unified update. Send only the fields for the ad's platform: - Meta: `urlTags` (array of {key,value}). Meta creatives are immutable, so this rebuilds the creative and repoints the ad. By DEFAULT we PRESERVE the existing creative verbatim (re-post its object_story_spec + the new url_tags, reusing the image), so you send `urlTags` ALONE — no need to read back headline/body/CTA. `creative` (headline, body, callToAction, linkUrl, imageUrl) is OPTIONAL and only needed to rebuild explicitly, or for SHARE / page-post / dark / asset_feed creatives whose object_story_spec Meta strips (those return 422 asking for `creative`). - Google: `trackingUrlTemplate` and/or `finalUrlSuffix` (full template strings; account quota applies). - LinkedIn: `dynamicValueParameters` and/or `customValueParameters` (campaign-level Dynamic UTM).
|
|
610
|
+
# @param ad_id [String]
|
|
611
|
+
# @param update_ad_tracking_tags_request [UpdateAdTrackingTagsRequest]
|
|
612
|
+
# @param [Hash] opts the optional parameters
|
|
613
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
614
|
+
def update_ad_tracking_tags_with_http_info(ad_id, update_ad_tracking_tags_request, opts = {})
|
|
615
|
+
if @api_client.config.debugging
|
|
616
|
+
@api_client.config.logger.debug 'Calling API: TrackingTagsApi.update_ad_tracking_tags ...'
|
|
617
|
+
end
|
|
618
|
+
# verify the required parameter 'ad_id' is set
|
|
619
|
+
if @api_client.config.client_side_validation && ad_id.nil?
|
|
620
|
+
fail ArgumentError, "Missing the required parameter 'ad_id' when calling TrackingTagsApi.update_ad_tracking_tags"
|
|
621
|
+
end
|
|
622
|
+
# verify the required parameter 'update_ad_tracking_tags_request' is set
|
|
623
|
+
if @api_client.config.client_side_validation && update_ad_tracking_tags_request.nil?
|
|
624
|
+
fail ArgumentError, "Missing the required parameter 'update_ad_tracking_tags_request' when calling TrackingTagsApi.update_ad_tracking_tags"
|
|
625
|
+
end
|
|
626
|
+
# resource path
|
|
627
|
+
local_var_path = '/v1/ads/{adId}/tracking-tags'.sub('{' + 'adId' + '}', CGI.escape(ad_id.to_s))
|
|
628
|
+
|
|
629
|
+
# query parameters
|
|
630
|
+
query_params = opts[:query_params] || {}
|
|
631
|
+
|
|
632
|
+
# header parameters
|
|
633
|
+
header_params = opts[:header_params] || {}
|
|
634
|
+
# HTTP header 'Accept' (if needed)
|
|
635
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
636
|
+
# HTTP header 'Content-Type'
|
|
637
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
638
|
+
if !content_type.nil?
|
|
639
|
+
header_params['Content-Type'] = content_type
|
|
640
|
+
end
|
|
641
|
+
|
|
642
|
+
# form parameters
|
|
643
|
+
form_params = opts[:form_params] || {}
|
|
644
|
+
|
|
645
|
+
# http body (model)
|
|
646
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(update_ad_tracking_tags_request)
|
|
647
|
+
|
|
648
|
+
# return_type
|
|
649
|
+
return_type = opts[:debug_return_type]
|
|
650
|
+
|
|
651
|
+
# auth_names
|
|
652
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
653
|
+
|
|
654
|
+
new_options = opts.merge(
|
|
655
|
+
:operation => :"TrackingTagsApi.update_ad_tracking_tags",
|
|
656
|
+
:header_params => header_params,
|
|
657
|
+
:query_params => query_params,
|
|
658
|
+
:form_params => form_params,
|
|
659
|
+
:body => post_body,
|
|
660
|
+
:auth_names => auth_names,
|
|
661
|
+
:return_type => return_type
|
|
662
|
+
)
|
|
663
|
+
|
|
664
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
|
665
|
+
if @api_client.config.debugging
|
|
666
|
+
@api_client.config.logger.debug "API called: TrackingTagsApi#update_ad_tracking_tags\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
667
|
+
end
|
|
668
|
+
return data, status_code, headers
|
|
669
|
+
end
|
|
670
|
+
|
|
534
671
|
# Update a tracking tag
|
|
535
672
|
# Partial-update a pixel. Whitelisted fields: `name` (rename), `enableAutomaticMatching`, `automaticMatchingFields`, `firstPartyCookieStatus`, `dataUseSetting`. At least one is required. Returns the re-fetched canonical tag. Meta only (platform `metaads`); other platforms return 405. There is no DELETE — Meta has no API to delete a pixel. To stop using one, unshare it from your ad accounts (`DELETE .../tracking-tags/{tagId}/shared-accounts`) or disable it in Events Manager.
|
|
536
673
|
# @param account_id [String]
|
|
@@ -18,6 +18,7 @@ module Zernio
|
|
|
18
18
|
class BoostPostRequestTracking < ApiModelBase
|
|
19
19
|
attr_accessor :pixel_id
|
|
20
20
|
|
|
21
|
+
# URL parameters appended to the ad link, rendered as `key=value` pairs joined with `&`.
|
|
21
22
|
attr_accessor :url_tags
|
|
22
23
|
|
|
23
24
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
@@ -42,7 +43,7 @@ module Zernio
|
|
|
42
43
|
def self.openapi_types
|
|
43
44
|
{
|
|
44
45
|
:'pixel_id' => :'String',
|
|
45
|
-
:'url_tags' => :'
|
|
46
|
+
:'url_tags' => :'Array<BoostPostRequestTrackingUrlTagsInner>'
|
|
46
47
|
}
|
|
47
48
|
end
|
|
48
49
|
|
|
@@ -73,7 +74,9 @@ module Zernio
|
|
|
73
74
|
end
|
|
74
75
|
|
|
75
76
|
if attributes.key?(:'url_tags')
|
|
76
|
-
|
|
77
|
+
if (value = attributes[:'url_tags']).is_a?(Array)
|
|
78
|
+
self.url_tags = value
|
|
79
|
+
end
|
|
77
80
|
end
|
|
78
81
|
end
|
|
79
82
|
|
|
@@ -14,7 +14,7 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module Zernio
|
|
17
|
-
class
|
|
17
|
+
class BoostPostRequestTrackingUrlTagsInner < ApiModelBase
|
|
18
18
|
attr_accessor :key
|
|
19
19
|
|
|
20
20
|
attr_accessor :value
|
|
@@ -55,14 +55,14 @@ module Zernio
|
|
|
55
55
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
56
56
|
def initialize(attributes = {})
|
|
57
57
|
if (!attributes.is_a?(Hash))
|
|
58
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `Zernio::
|
|
58
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Zernio::BoostPostRequestTrackingUrlTagsInner` initialize method"
|
|
59
59
|
end
|
|
60
60
|
|
|
61
61
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
62
62
|
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
63
63
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
64
64
|
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
65
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Zernio::
|
|
65
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Zernio::BoostPostRequestTrackingUrlTagsInner`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
66
66
|
end
|
|
67
67
|
h[k.to_sym] = v
|
|
68
68
|
}
|
|
@@ -55,7 +55,7 @@ module Zernio
|
|
|
55
55
|
:'type' => :'String',
|
|
56
56
|
:'key' => :'String',
|
|
57
57
|
:'label' => :'String',
|
|
58
|
-
:'options' => :'Array<
|
|
58
|
+
:'options' => :'Array<BoostPostRequestTrackingUrlTagsInner>',
|
|
59
59
|
:'inline_context' => :'String'
|
|
60
60
|
}
|
|
61
61
|
end
|
|
@@ -25,6 +25,9 @@ module Zernio
|
|
|
25
25
|
|
|
26
26
|
attr_accessor :date_range
|
|
27
27
|
|
|
28
|
+
# Present only when the range reaches into YouTube's ~3-day processing window: the first date whose numbers are provisional and may still be revised by YouTube.
|
|
29
|
+
attr_accessor :provisional_since
|
|
30
|
+
|
|
28
31
|
# Sum of views across all days in the range
|
|
29
32
|
attr_accessor :total_views
|
|
30
33
|
|
|
@@ -42,6 +45,7 @@ module Zernio
|
|
|
42
45
|
:'video_id' => :'videoId',
|
|
43
46
|
:'duration_seconds' => :'durationSeconds',
|
|
44
47
|
:'date_range' => :'dateRange',
|
|
48
|
+
:'provisional_since' => :'provisionalSince',
|
|
45
49
|
:'total_views' => :'totalViews',
|
|
46
50
|
:'daily_views' => :'dailyViews',
|
|
47
51
|
:'last_synced_at' => :'lastSyncedAt',
|
|
@@ -66,6 +70,7 @@ module Zernio
|
|
|
66
70
|
:'video_id' => :'String',
|
|
67
71
|
:'duration_seconds' => :'Integer',
|
|
68
72
|
:'date_range' => :'YouTubeDailyViewsResponseDateRange',
|
|
73
|
+
:'provisional_since' => :'Date',
|
|
69
74
|
:'total_views' => :'Integer',
|
|
70
75
|
:'daily_views' => :'Array<YouTubeDailyViewsResponseDailyViewsInner>',
|
|
71
76
|
:'last_synced_at' => :'Time',
|
|
@@ -113,6 +118,10 @@ module Zernio
|
|
|
113
118
|
self.date_range = attributes[:'date_range']
|
|
114
119
|
end
|
|
115
120
|
|
|
121
|
+
if attributes.key?(:'provisional_since')
|
|
122
|
+
self.provisional_since = attributes[:'provisional_since']
|
|
123
|
+
end
|
|
124
|
+
|
|
116
125
|
if attributes.key?(:'total_views')
|
|
117
126
|
self.total_views = attributes[:'total_views']
|
|
118
127
|
end
|
|
@@ -156,6 +165,7 @@ module Zernio
|
|
|
156
165
|
video_id == o.video_id &&
|
|
157
166
|
duration_seconds == o.duration_seconds &&
|
|
158
167
|
date_range == o.date_range &&
|
|
168
|
+
provisional_since == o.provisional_since &&
|
|
159
169
|
total_views == o.total_views &&
|
|
160
170
|
daily_views == o.daily_views &&
|
|
161
171
|
last_synced_at == o.last_synced_at &&
|
|
@@ -171,7 +181,7 @@ module Zernio
|
|
|
171
181
|
# Calculates hash code according to all attributes.
|
|
172
182
|
# @return [Integer] Hash code
|
|
173
183
|
def hash
|
|
174
|
-
[success, video_id, duration_seconds, date_range, total_views, daily_views, last_synced_at, scope_status].hash
|
|
184
|
+
[success, video_id, duration_seconds, date_range, provisional_since, total_views, daily_views, last_synced_at, scope_status].hash
|
|
175
185
|
end
|
|
176
186
|
|
|
177
187
|
# Builds the object from hash
|
|
@@ -36,6 +36,9 @@ module Zernio
|
|
|
36
36
|
|
|
37
37
|
attr_accessor :date_range
|
|
38
38
|
|
|
39
|
+
# Present only when the range reaches into YouTube's ~3-day processing window: the first date whose numbers are provisional and may still be revised by YouTube.
|
|
40
|
+
attr_accessor :provisional_since
|
|
41
|
+
|
|
39
42
|
attr_accessor :note
|
|
40
43
|
|
|
41
44
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
@@ -49,6 +52,7 @@ module Zernio
|
|
|
49
52
|
:'published_at' => :'publishedAt',
|
|
50
53
|
:'demographics' => :'demographics',
|
|
51
54
|
:'date_range' => :'dateRange',
|
|
55
|
+
:'provisional_since' => :'provisionalSince',
|
|
52
56
|
:'note' => :'note'
|
|
53
57
|
}
|
|
54
58
|
end
|
|
@@ -74,6 +78,7 @@ module Zernio
|
|
|
74
78
|
:'published_at' => :'Time',
|
|
75
79
|
:'demographics' => :'Hash<String, Array<YouTubeDemographicsResponseDemographicsValueInner>>',
|
|
76
80
|
:'date_range' => :'YouTubeDemographicsResponseDateRange',
|
|
81
|
+
:'provisional_since' => :'Date',
|
|
77
82
|
:'note' => :'String'
|
|
78
83
|
}
|
|
79
84
|
end
|
|
@@ -136,6 +141,10 @@ module Zernio
|
|
|
136
141
|
self.date_range = attributes[:'date_range']
|
|
137
142
|
end
|
|
138
143
|
|
|
144
|
+
if attributes.key?(:'provisional_since')
|
|
145
|
+
self.provisional_since = attributes[:'provisional_since']
|
|
146
|
+
end
|
|
147
|
+
|
|
139
148
|
if attributes.key?(:'note')
|
|
140
149
|
self.note = attributes[:'note']
|
|
141
150
|
end
|
|
@@ -169,6 +178,7 @@ module Zernio
|
|
|
169
178
|
published_at == o.published_at &&
|
|
170
179
|
demographics == o.demographics &&
|
|
171
180
|
date_range == o.date_range &&
|
|
181
|
+
provisional_since == o.provisional_since &&
|
|
172
182
|
note == o.note
|
|
173
183
|
end
|
|
174
184
|
|
|
@@ -181,7 +191,7 @@ module Zernio
|
|
|
181
191
|
# Calculates hash code according to all attributes.
|
|
182
192
|
# @return [Integer] Hash code
|
|
183
193
|
def hash
|
|
184
|
-
[success, account_id, platform, video_id, title, published_at, demographics, date_range, note].hash
|
|
194
|
+
[success, account_id, platform, video_id, title, published_at, demographics, date_range, provisional_since, note].hash
|
|
185
195
|
end
|
|
186
196
|
|
|
187
197
|
# Builds the object from hash
|
|
@@ -34,6 +34,9 @@ module Zernio
|
|
|
34
34
|
|
|
35
35
|
attr_accessor :date_range
|
|
36
36
|
|
|
37
|
+
# Present only when the range reaches into YouTube's ~3-day processing window: the first date whose numbers are provisional and may still be revised by YouTube.
|
|
38
|
+
attr_accessor :provisional_since
|
|
39
|
+
|
|
37
40
|
# Up to 100 points covering the video timeline, aggregated over the date range. Empty for videos with very few views.
|
|
38
41
|
attr_accessor :retention_curve
|
|
39
42
|
|
|
@@ -52,6 +55,7 @@ module Zernio
|
|
|
52
55
|
:'published_at' => :'publishedAt',
|
|
53
56
|
:'duration_seconds' => :'durationSeconds',
|
|
54
57
|
:'date_range' => :'dateRange',
|
|
58
|
+
:'provisional_since' => :'provisionalSince',
|
|
55
59
|
:'retention_curve' => :'retentionCurve',
|
|
56
60
|
:'note' => :'note',
|
|
57
61
|
:'scope_status' => :'scopeStatus'
|
|
@@ -78,6 +82,7 @@ module Zernio
|
|
|
78
82
|
:'published_at' => :'Time',
|
|
79
83
|
:'duration_seconds' => :'Integer',
|
|
80
84
|
:'date_range' => :'YouTubeDailyViewsResponseDateRange',
|
|
85
|
+
:'provisional_since' => :'Date',
|
|
81
86
|
:'retention_curve' => :'Array<YouTubeVideoRetentionResponseRetentionCurveInner>',
|
|
82
87
|
:'note' => :'String',
|
|
83
88
|
:'scope_status' => :'YouTubeDailyViewsResponseScopeStatus'
|
|
@@ -137,6 +142,10 @@ module Zernio
|
|
|
137
142
|
self.date_range = attributes[:'date_range']
|
|
138
143
|
end
|
|
139
144
|
|
|
145
|
+
if attributes.key?(:'provisional_since')
|
|
146
|
+
self.provisional_since = attributes[:'provisional_since']
|
|
147
|
+
end
|
|
148
|
+
|
|
140
149
|
if attributes.key?(:'retention_curve')
|
|
141
150
|
if (value = attributes[:'retention_curve']).is_a?(Array)
|
|
142
151
|
self.retention_curve = value
|
|
@@ -179,6 +188,7 @@ module Zernio
|
|
|
179
188
|
published_at == o.published_at &&
|
|
180
189
|
duration_seconds == o.duration_seconds &&
|
|
181
190
|
date_range == o.date_range &&
|
|
191
|
+
provisional_since == o.provisional_since &&
|
|
182
192
|
retention_curve == o.retention_curve &&
|
|
183
193
|
note == o.note &&
|
|
184
194
|
scope_status == o.scope_status
|
|
@@ -193,7 +203,7 @@ module Zernio
|
|
|
193
203
|
# Calculates hash code according to all attributes.
|
|
194
204
|
# @return [Integer] Hash code
|
|
195
205
|
def hash
|
|
196
|
-
[success, account_id, video_id, title, published_at, duration_seconds, date_range, retention_curve, note, scope_status].hash
|
|
206
|
+
[success, account_id, video_id, title, published_at, duration_seconds, date_range, provisional_since, retention_curve, note, scope_status].hash
|
|
197
207
|
end
|
|
198
208
|
|
|
199
209
|
# Builds the object from hash
|
data/lib/zernio-sdk/version.rb
CHANGED
data/lib/zernio-sdk.rb
CHANGED
|
@@ -103,6 +103,7 @@ require 'zernio-sdk/models/boost_post_request_targeting_cities_inner'
|
|
|
103
103
|
require 'zernio-sdk/models/boost_post_request_targeting_custom_locations_inner'
|
|
104
104
|
require 'zernio-sdk/models/boost_post_request_targeting_regions_inner'
|
|
105
105
|
require 'zernio-sdk/models/boost_post_request_tracking'
|
|
106
|
+
require 'zernio-sdk/models/boost_post_request_tracking_url_tags_inner'
|
|
106
107
|
require 'zernio-sdk/models/bulk_create_contacts200_response'
|
|
107
108
|
require 'zernio-sdk/models/bulk_create_contacts_request'
|
|
108
109
|
require 'zernio-sdk/models/bulk_create_contacts_request_contacts_inner'
|
|
@@ -214,7 +215,6 @@ require 'zernio-sdk/models/create_invite_token_request'
|
|
|
214
215
|
require 'zernio-sdk/models/create_lead_form200_response'
|
|
215
216
|
require 'zernio-sdk/models/create_lead_form_request'
|
|
216
217
|
require 'zernio-sdk/models/create_lead_form_request_questions_inner'
|
|
217
|
-
require 'zernio-sdk/models/create_lead_form_request_questions_inner_options_inner'
|
|
218
218
|
require 'zernio-sdk/models/create_messaging_ad_request'
|
|
219
219
|
require 'zernio-sdk/models/create_phone_number_kyc_link200_response'
|
|
220
220
|
require 'zernio-sdk/models/create_phone_number_kyc_link_request'
|
|
@@ -1510,9 +1510,12 @@ require 'zernio-sdk/api/api_keys_api'
|
|
|
1510
1510
|
require 'zernio-sdk/api/account_groups_api'
|
|
1511
1511
|
require 'zernio-sdk/api/account_settings_api'
|
|
1512
1512
|
require 'zernio-sdk/api/accounts_api'
|
|
1513
|
+
require 'zernio-sdk/api/ad_accounts_api'
|
|
1513
1514
|
require 'zernio-sdk/api/ad_audiences_api'
|
|
1514
1515
|
require 'zernio-sdk/api/ad_campaigns_api'
|
|
1515
|
-
require 'zernio-sdk/api/
|
|
1516
|
+
require 'zernio-sdk/api/ad_creatives_api'
|
|
1517
|
+
require 'zernio-sdk/api/ad_insights_api'
|
|
1518
|
+
require 'zernio-sdk/api/ad_targeting_api'
|
|
1516
1519
|
require 'zernio-sdk/api/analytics_api'
|
|
1517
1520
|
require 'zernio-sdk/api/broadcasts_api'
|
|
1518
1521
|
require 'zernio-sdk/api/calls_api'
|
|
@@ -1520,6 +1523,7 @@ require 'zernio-sdk/api/comment_automations_api'
|
|
|
1520
1523
|
require 'zernio-sdk/api/comments_api'
|
|
1521
1524
|
require 'zernio-sdk/api/connect_api'
|
|
1522
1525
|
require 'zernio-sdk/api/contacts_api'
|
|
1526
|
+
require 'zernio-sdk/api/conversions_api'
|
|
1523
1527
|
require 'zernio-sdk/api/custom_fields_api'
|
|
1524
1528
|
require 'zernio-sdk/api/discord_api'
|
|
1525
1529
|
require 'zernio-sdk/api/gmb_attributes_api'
|
|
@@ -1533,15 +1537,18 @@ require 'zernio-sdk/api/gmb_verifications_api'
|
|
|
1533
1537
|
require 'zernio-sdk/api/inbox_analytics_api'
|
|
1534
1538
|
require 'zernio-sdk/api/instagram_api'
|
|
1535
1539
|
require 'zernio-sdk/api/invites_api'
|
|
1540
|
+
require 'zernio-sdk/api/lead_gen_api'
|
|
1536
1541
|
require 'zernio-sdk/api/linked_in_mentions_api'
|
|
1537
1542
|
require 'zernio-sdk/api/logs_api'
|
|
1538
1543
|
require 'zernio-sdk/api/media_api'
|
|
1539
1544
|
require 'zernio-sdk/api/mentions_api'
|
|
1540
1545
|
require 'zernio-sdk/api/messages_api'
|
|
1546
|
+
require 'zernio-sdk/api/messaging_ads_api'
|
|
1541
1547
|
require 'zernio-sdk/api/phone_numbers_api'
|
|
1542
1548
|
require 'zernio-sdk/api/posts_api'
|
|
1543
1549
|
require 'zernio-sdk/api/profiles_api'
|
|
1544
1550
|
require 'zernio-sdk/api/queue_api'
|
|
1551
|
+
require 'zernio-sdk/api/reach_and_frequency_api'
|
|
1545
1552
|
require 'zernio-sdk/api/reddit_search_api'
|
|
1546
1553
|
require 'zernio-sdk/api/reviews_api'
|
|
1547
1554
|
require 'zernio-sdk/api/sms_api'
|