late-sdk 0.0.792 → 0.0.794

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d09a1a1f52eed7e861dc20bafbf06476a944d5dcbe0d2b5260b6147816aae06a
4
- data.tar.gz: ecfc1351f472e0b838125bb998fe1382e18cc8c35a37f46a27ceac31a1ca54a1
3
+ metadata.gz: f23fd787abd0dee083b713b54d89a08fd32e39106d7dc8d8aef050b5a8ece56b
4
+ data.tar.gz: caa48f9d49cde1922e5a82467e7886a0b99046792531acfa7cabc3ac76283767
5
5
  SHA512:
6
- metadata.gz: fe0b27ff9a2c3327df47face6ff0123ff71f4c87fd86df65517d5fd36aed56381b5b9099103aefec5acd5b0a03a278f92db1e1b3eb43b0547349cb203a9f843c
7
- data.tar.gz: e45a73dff47a1c494247f360d6001cc429c3681a8732249a5274f2a043709d797f676498772fa2dddbeb312dcd33412d57b4878d2a436f8a036ca9f87cd87bfc
6
+ metadata.gz: 141e3886875c12fb4954a26687e6daed31d6711c4aef4dcc49a27d3c4517aa1933cc60fa00d33912514d58b4565cd7b508853fd09f465b816f12647162542b0e
7
+ data.tar.gz: eb195af98b3b6f166bf568ae603cfa2f6017a449ebc954538b5f74fd44a6135f35ddfe1b6e1234533bb94a344edd93bb9652eaf43c04cd3e031102d2130000c0
data/docs/AnalyticsApi.md CHANGED
@@ -61,7 +61,7 @@ opts = {
61
61
  to_date: Date.parse('2013-10-20'), # Date | Inclusive upper bound (YYYY-MM-DD). Defaults to today if omitted.
62
62
  limit: 56, # Integer | Page size (default 50)
63
63
  page: 56, # Integer | Page number (default 1)
64
- sort_by: 'date', # String | Sort by date, engagement, or a specific metric. Instagram-only metrics (follows, reposts, reels_skip_rate, ig_reels_*) sort posts with no value as 0.
64
+ sort_by: 'date', # String | Sort by date, engagement, or a specific metric. Instagram-only metrics (follows, reposts, reels_skip_rate, ig_reels_*) sort a null value as 0.
65
65
  order: 'asc' # String | Sort order
66
66
  }
67
67
 
@@ -105,7 +105,7 @@ end
105
105
  | **to_date** | **Date** | Inclusive upper bound (YYYY-MM-DD). Defaults to today if omitted. | [optional] |
106
106
  | **limit** | **Integer** | Page size (default 50) | [optional][default to 50] |
107
107
  | **page** | **Integer** | Page number (default 1) | [optional][default to 1] |
108
- | **sort_by** | **String** | Sort by date, engagement, or a specific metric. Instagram-only metrics (follows, reposts, reels_skip_rate, ig_reels_*) sort posts with no value as 0. | [optional][default to 'date'] |
108
+ | **sort_by** | **String** | Sort by date, engagement, or a specific metric. Instagram-only metrics (follows, reposts, reels_skip_rate, ig_reels_*) sort a null value as 0. | [optional][default to 'date'] |
109
109
  | **order** | **String** | Sort order | [optional][default to 'desc'] |
110
110
 
111
111
  ### Return type
@@ -5,6 +5,7 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **account_id** | **String** | Zernio Google Ads SocialAccount id — resolves the customer id + refresh token. | |
8
+ | **customer_id** | **String** | Numeric Google Ads customer id. Required when the connection has multiple Google Ads accounts; optional (and inferred) when it has only one. | [optional] |
8
9
  | **sitelinks** | [**Array<AttachCampaignAssetsRequestSitelinksInner>**](AttachCampaignAssetsRequestSitelinksInner.md) | See POST /v1/ads/create sitelinks — same shape. | [optional] |
9
10
  | **callouts** | **Array<String>** | | [optional] |
10
11
  | **structured_snippets** | [**Array<AttachCampaignAssetsRequestStructuredSnippetsInner>**](AttachCampaignAssetsRequestStructuredSnippetsInner.md) | | [optional] |
@@ -16,6 +17,7 @@ require 'zernio-sdk'
16
17
 
17
18
  instance = Zernio::AttachCampaignAssetsRequest.new(
18
19
  account_id: null,
20
+ customer_id: null,
19
21
  sitelinks: null,
20
22
  callouts: null,
21
23
  structured_snippets: null
@@ -12,7 +12,7 @@
12
12
  | **saves** | **Integer** | Number of saves/bookmarks (Instagram, Pinterest, X/Twitter) | [optional] |
13
13
  | **clicks** | **Integer** | | [optional] |
14
14
  | **views** | **Integer** | | [optional] |
15
- | **follows** | **Integer** | Instagram feed posts and stories only: organic accounts that started following from this post. 0 for reels and other platforms. | [optional] |
15
+ | **follows** | **Integer** | Instagram feed posts and stories only: organic accounts that started following from this post. Null on Instagram Reels and non-Reels video, where Meta does not expose this metric for the media. 0 for other platforms. | [optional] |
16
16
  | **ig_reels_avg_watch_time** | **Integer** | Instagram Reels only: average watch time per play, in milliseconds. 0 for non-Reels media and other platforms. | [optional] |
17
17
  | **ig_reels_video_view_total_time** | **Integer** | Instagram Reels only: total watch time including replays, in milliseconds. 0 for non-Reels media and other platforms. | [optional] |
18
18
  | **reels_skip_rate** | **Float** | Instagram Reels only: the rate of initial views that skipped the reel within its first 3 seconds, as reported by Meta. Passed through exactly as Meta reports it, with no rescaling, so do not assume a 0-1 share. Meta labels the metric estimated and in development, so it can move between syncs. 0 for non-Reels media and other platforms. When a post is published to several accounts, the aggregate is weighted by views. | [optional] |
@@ -31,7 +31,7 @@ module Zernio
31
31
  # @option opts [Date] :to_date Inclusive upper bound (YYYY-MM-DD). Defaults to today if omitted.
32
32
  # @option opts [Integer] :limit Page size (default 50) (default to 50)
33
33
  # @option opts [Integer] :page Page number (default 1) (default to 1)
34
- # @option opts [String] :sort_by Sort by date, engagement, or a specific metric. Instagram-only metrics (follows, reposts, reels_skip_rate, ig_reels_*) sort posts with no value as 0. (default to 'date')
34
+ # @option opts [String] :sort_by Sort by date, engagement, or a specific metric. Instagram-only metrics (follows, reposts, reels_skip_rate, ig_reels_*) sort a null value as 0. (default to 'date')
35
35
  # @option opts [String] :order Sort order (default to 'desc')
36
36
  # @return [GetAnalytics200Response]
37
37
  def get_analytics(opts = {})
@@ -51,7 +51,7 @@ module Zernio
51
51
  # @option opts [Date] :to_date Inclusive upper bound (YYYY-MM-DD). Defaults to today if omitted.
52
52
  # @option opts [Integer] :limit Page size (default 50) (default to 50)
53
53
  # @option opts [Integer] :page Page number (default 1) (default to 1)
54
- # @option opts [String] :sort_by Sort by date, engagement, or a specific metric. Instagram-only metrics (follows, reposts, reels_skip_rate, ig_reels_*) sort posts with no value as 0. (default to 'date')
54
+ # @option opts [String] :sort_by Sort by date, engagement, or a specific metric. Instagram-only metrics (follows, reposts, reels_skip_rate, ig_reels_*) sort a null value as 0. (default to 'date')
55
55
  # @option opts [String] :order Sort order (default to 'desc')
56
56
  # @return [Array<(GetAnalytics200Response, Integer, Hash)>] GetAnalytics200Response data, response status code and response headers
57
57
  def get_analytics_with_http_info(opts = {})
@@ -18,6 +18,9 @@ module Zernio
18
18
  # Zernio Google Ads SocialAccount id — resolves the customer id + refresh token.
19
19
  attr_accessor :account_id
20
20
 
21
+ # Numeric Google Ads customer id. Required when the connection has multiple Google Ads accounts; optional (and inferred) when it has only one.
22
+ attr_accessor :customer_id
23
+
21
24
  # See POST /v1/ads/create sitelinks — same shape.
22
25
  attr_accessor :sitelinks
23
26
 
@@ -29,6 +32,7 @@ module Zernio
29
32
  def self.attribute_map
30
33
  {
31
34
  :'account_id' => :'accountId',
35
+ :'customer_id' => :'customerId',
32
36
  :'sitelinks' => :'sitelinks',
33
37
  :'callouts' => :'callouts',
34
38
  :'structured_snippets' => :'structuredSnippets'
@@ -49,6 +53,7 @@ module Zernio
49
53
  def self.openapi_types
50
54
  {
51
55
  :'account_id' => :'String',
56
+ :'customer_id' => :'String',
52
57
  :'sitelinks' => :'Array<AttachCampaignAssetsRequestSitelinksInner>',
53
58
  :'callouts' => :'Array<String>',
54
59
  :'structured_snippets' => :'Array<AttachCampaignAssetsRequestStructuredSnippetsInner>'
@@ -83,6 +88,10 @@ module Zernio
83
88
  self.account_id = nil
84
89
  end
85
90
 
91
+ if attributes.key?(:'customer_id')
92
+ self.customer_id = attributes[:'customer_id']
93
+ end
94
+
86
95
  if attributes.key?(:'sitelinks')
87
96
  if (value = attributes[:'sitelinks']).is_a?(Array)
88
97
  self.sitelinks = value
@@ -222,6 +231,7 @@ module Zernio
222
231
  return true if self.equal?(o)
223
232
  self.class == o.class &&
224
233
  account_id == o.account_id &&
234
+ customer_id == o.customer_id &&
225
235
  sitelinks == o.sitelinks &&
226
236
  callouts == o.callouts &&
227
237
  structured_snippets == o.structured_snippets
@@ -236,7 +246,7 @@ module Zernio
236
246
  # Calculates hash code according to all attributes.
237
247
  # @return [Integer] Hash code
238
248
  def hash
239
- [account_id, sitelinks, callouts, structured_snippets].hash
249
+ [account_id, customer_id, sitelinks, callouts, structured_snippets].hash
240
250
  end
241
251
 
242
252
  # Builds the object from hash
@@ -32,7 +32,7 @@ module Zernio
32
32
 
33
33
  attr_accessor :views
34
34
 
35
- # Instagram feed posts and stories only: organic accounts that started following from this post. 0 for reels and other platforms.
35
+ # Instagram feed posts and stories only: organic accounts that started following from this post. Null on Instagram Reels and non-Reels video, where Meta does not expose this metric for the media. 0 for other platforms.
36
36
  attr_accessor :follows
37
37
 
38
38
  # Instagram Reels only: average watch time per play, in milliseconds. 0 for non-Reels media and other platforms.
@@ -112,6 +112,7 @@ module Zernio
112
112
  # List of attributes with nullable: true
113
113
  def self.openapi_nullable
114
114
  Set.new([
115
+ :'follows',
115
116
  :'video_duration_seconds',
116
117
  ])
117
118
  end
@@ -11,5 +11,5 @@ Generator version: 7.19.0
11
11
  =end
12
12
 
13
13
  module Zernio
14
- VERSION = '0.0.792'
14
+ VERSION = '0.0.794'
15
15
  end
data/openapi.yaml CHANGED
@@ -7297,7 +7297,7 @@ components:
7297
7297
  saves: { type: integer, example: 0, description: 'Number of saves/bookmarks (Instagram, Pinterest, X/Twitter)' }
7298
7298
  clicks: { type: integer, example: 0 }
7299
7299
  views: { type: integer, example: 0 }
7300
- follows: { type: integer, example: 0, description: 'Instagram feed posts and stories only: organic accounts that started following from this post. 0 for reels and other platforms.' }
7300
+ follows: { type: [integer, "null"], example: 0, description: 'Instagram feed posts and stories only: organic accounts that started following from this post. Null on Instagram Reels and non-Reels video, where Meta does not expose this metric for the media. 0 for other platforms.' }
7301
7301
  igReelsAvgWatchTime: { type: integer, example: 0, description: 'Instagram Reels only: average watch time per play, in milliseconds. 0 for non-Reels media and other platforms.' }
7302
7302
  igReelsVideoViewTotalTime: { type: integer, example: 0, description: 'Instagram Reels only: total watch time including replays, in milliseconds. 0 for non-Reels media and other platforms.' }
7303
7303
  reelsSkipRate: { type: number, example: 0, description: 'Instagram Reels only: the rate of initial views that skipped the reel within its first 3 seconds, as reported by Meta. Passed through exactly as Meta reports it, with no rescaling, so do not assume a 0-1 share. Meta labels the metric estimated and in development, so it can move between syncs. 0 for non-Reels media and other platforms. When a post is published to several accounts, the aggregate is weighted by views.' }
@@ -10615,7 +10615,7 @@ paths:
10615
10615
  - name: sortBy
10616
10616
  in: query
10617
10617
  schema: { type: string, enum: [date, engagement, impressions, reach, likes, comments, shares, saves, clicks, views, follows, ig_reels_avg_watch_time, ig_reels_video_view_total_time, reposts, reels_skip_rate], default: date }
10618
- description: 'Sort by date, engagement, or a specific metric. Instagram-only metrics (follows, reposts, reels_skip_rate, ig_reels_*) sort posts with no value as 0.'
10618
+ description: 'Sort by date, engagement, or a specific metric. Instagram-only metrics (follows, reposts, reels_skip_rate, ig_reels_*) sort a null value as 0.'
10619
10619
  - name: order
10620
10620
  in: query
10621
10621
  schema: { type: string, enum: [asc, desc], default: desc }
@@ -41450,6 +41450,7 @@ paths:
41450
41450
  required: [accountId]
41451
41451
  properties:
41452
41452
  accountId: { type: string, description: "Zernio Google Ads SocialAccount id — resolves the customer id + refresh token." }
41453
+ customerId: { type: string, description: "Numeric Google Ads customer id. Required when the connection has multiple Google Ads accounts; optional (and inferred) when it has only one." }
41453
41454
  sitelinks:
41454
41455
  type: array
41455
41456
  minItems: 2
@@ -41496,8 +41497,9 @@ paths:
41496
41497
  sitelinkAssetResourceNames: { type: array, items: { type: string } }
41497
41498
  calloutAssetResourceNames: { type: array, items: { type: string } }
41498
41499
  structuredSnippetAssetResourceNames: { type: array, items: { type: string } }
41499
- '400': { description: "Invalid input, or Google rejected the assets" }
41500
+ '400': { description: "Invalid input, Google rejected the assets, an unknown customerId (not one of this connection's Google Ads accounts), or a required customerId missing when the connection has multiple Google Ads accounts" }
41500
41501
  '401': { $ref: '#/components/responses/Unauthorized' }
41502
+ '422': { description: "No Google Ads customer accounts on this connection. Reconnect Google Ads." }
41501
41503
  '501': { description: Only supported on Google Ads }
41502
41504
 
41503
41505
  /v1/ads/campaigns/{campaignId}/analytics:
@@ -45,7 +45,7 @@ describe 'AnalyticsApi' do
45
45
  # @option opts [Date] :to_date Inclusive upper bound (YYYY-MM-DD). Defaults to today if omitted.
46
46
  # @option opts [Integer] :limit Page size (default 50)
47
47
  # @option opts [Integer] :page Page number (default 1)
48
- # @option opts [String] :sort_by Sort by date, engagement, or a specific metric. Instagram-only metrics (follows, reposts, reels_skip_rate, ig_reels_*) sort posts with no value as 0.
48
+ # @option opts [String] :sort_by Sort by date, engagement, or a specific metric. Instagram-only metrics (follows, reposts, reels_skip_rate, ig_reels_*) sort a null value as 0.
49
49
  # @option opts [String] :order Sort order
50
50
  # @return [GetAnalytics200Response]
51
51
  describe 'get_analytics test' do
@@ -33,6 +33,12 @@ describe Zernio::AttachCampaignAssetsRequest do
33
33
  end
34
34
  end
35
35
 
36
+ describe 'test attribute "customer_id"' do
37
+ it 'should work' do
38
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
39
+ end
40
+ end
41
+
36
42
  describe 'test attribute "sitelinks"' do
37
43
  it 'should work' do
38
44
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: late-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.792
4
+ version: 0.0.794
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenAPI-Generator
@@ -5548,7 +5548,7 @@ files:
5548
5548
  - spec/models/you_tube_video_retention_response_retention_curve_inner_spec.rb
5549
5549
  - spec/models/you_tube_video_retention_response_spec.rb
5550
5550
  - spec/spec_helper.rb
5551
- - zernio-sdk-0.0.792.gem
5551
+ - zernio-sdk-0.0.794.gem
5552
5552
  - zernio-sdk.gemspec
5553
5553
  homepage: https://openapi-generator.tech
5554
5554
  licenses:
Binary file