late-sdk 0.0.793 → 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: c33738bcc6930c3575e2122a10009c701115d318ecb69d96fd9dcc69be0b8217
4
- data.tar.gz: a2eb7923ff9dee64d8707e13678d0e667cb9c407c92c68ecfd5d9b8b33efb9af
3
+ metadata.gz: f23fd787abd0dee083b713b54d89a08fd32e39106d7dc8d8aef050b5a8ece56b
4
+ data.tar.gz: caa48f9d49cde1922e5a82467e7886a0b99046792531acfa7cabc3ac76283767
5
5
  SHA512:
6
- metadata.gz: '097114968767f974b6051a0c2a31229ce4673b7502b305fe75f871fd677f86113e18e416a2f9fdb85c81ed78309b954fb832b5d1f40bfb220dc8137b706e5f3a'
7
- data.tar.gz: 6e39cd78eaa2c1a3c3ec9e5933ada05efa3756336424f652e0d9230039005db534c815f7eeed53f6e35b6941f0d7be2ab0a47e522243f46510ef822a7221b49a
6
+ metadata.gz: 141e3886875c12fb4954a26687e6daed31d6711c4aef4dcc49a27d3c4517aa1933cc60fa00d33912514d58b4565cd7b508853fd09f465b816f12647162542b0e
7
+ data.tar.gz: eb195af98b3b6f166bf568ae603cfa2f6017a449ebc954538b5f74fd44a6135f35ddfe1b6e1234533bb94a344edd93bb9652eaf43c04cd3e031102d2130000c0
@@ -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
@@ -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
@@ -11,5 +11,5 @@ Generator version: 7.19.0
11
11
  =end
12
12
 
13
13
  module Zernio
14
- VERSION = '0.0.793'
14
+ VERSION = '0.0.794'
15
15
  end
data/openapi.yaml CHANGED
@@ -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:
@@ -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.793
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.793.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