late-sdk 0.0.905 → 0.0.907

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.
Files changed (53) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +7 -0
  3. data/docs/AccountWithFollowerStats.md +2 -2
  4. data/docs/AdAccountsApi.md +1 -1
  5. data/docs/AdCampaignsApi.md +71 -1
  6. data/docs/AdCreative.md +4 -0
  7. data/docs/ConnectAds200ResponseOneOf.md +2 -0
  8. data/docs/ConnectApi.md +79 -5
  9. data/docs/CreateStandaloneAdRequest.md +8 -6
  10. data/docs/GooglePmaxAssetGroup.md +28 -0
  11. data/docs/GooglePmaxAssetGroupAssetsInner.md +28 -0
  12. data/docs/GooglePmaxAssetGroupInput.md +32 -0
  13. data/docs/GooglePmaxAssetGroupInputImages.md +22 -0
  14. data/docs/LeadGenApi.md +5 -5
  15. data/docs/ListAdAccounts200ResponseAccountsInner.md +4 -0
  16. data/docs/ListGoogleAssetGroups200Response.md +22 -0
  17. data/docs/SocialAccount.md +2 -2
  18. data/lib/zernio-sdk/api/ad_accounts_api.rb +2 -2
  19. data/lib/zernio-sdk/api/ad_campaigns_api.rb +70 -2
  20. data/lib/zernio-sdk/api/connect_api.rb +91 -6
  21. data/lib/zernio-sdk/api/lead_gen_api.rb +8 -8
  22. data/lib/zernio-sdk/models/account_with_follower_stats.rb +2 -2
  23. data/lib/zernio-sdk/models/ad_creative.rb +21 -1
  24. data/lib/zernio-sdk/models/connect_ads200_response_one_of.rb +45 -1
  25. data/lib/zernio-sdk/models/create_standalone_ad200_response_results_inner.rb +2 -2
  26. data/lib/zernio-sdk/models/create_standalone_ad_request.rb +18 -9
  27. data/lib/zernio-sdk/models/google_pmax_asset_group.rb +299 -0
  28. data/lib/zernio-sdk/models/google_pmax_asset_group_assets_inner.rb +244 -0
  29. data/lib/zernio-sdk/models/google_pmax_asset_group_input.rb +453 -0
  30. data/lib/zernio-sdk/models/google_pmax_asset_group_input_images.rb +280 -0
  31. data/lib/zernio-sdk/models/list_ad_accounts200_response_accounts_inner.rb +21 -1
  32. data/lib/zernio-sdk/models/list_google_asset_groups200_response.rb +204 -0
  33. data/lib/zernio-sdk/models/social_account.rb +2 -2
  34. data/lib/zernio-sdk/version.rb +1 -1
  35. data/lib/zernio-sdk.rb +5 -0
  36. data/openapi.yaml +277 -14
  37. data/spec/api/ad_accounts_api_spec.rb +1 -1
  38. data/spec/api/ad_campaigns_api_spec.rb +13 -1
  39. data/spec/api/connect_api_spec.rb +19 -3
  40. data/spec/api/lead_gen_api_spec.rb +4 -4
  41. data/spec/models/ad_creative_spec.rb +12 -0
  42. data/spec/models/connect_ads200_response_one_of_spec.rb +10 -0
  43. data/spec/models/create_standalone_ad200_response_results_inner_spec.rb +1 -1
  44. data/spec/models/create_standalone_ad_request_spec.rb +7 -1
  45. data/spec/models/google_pmax_asset_group_assets_inner_spec.rb +66 -0
  46. data/spec/models/google_pmax_asset_group_input_images_spec.rb +48 -0
  47. data/spec/models/google_pmax_asset_group_input_spec.rb +78 -0
  48. data/spec/models/google_pmax_asset_group_spec.rb +66 -0
  49. data/spec/models/list_ad_accounts200_response_accounts_inner_spec.rb +12 -0
  50. data/spec/models/list_google_asset_groups200_response_spec.rb +48 -0
  51. data/zernio-sdk-0.0.907.gem +0 -0
  52. metadata +22 -2
  53. data/zernio-sdk-0.0.905.gem +0 -0
@@ -0,0 +1,280 @@
1
+ =begin
2
+ #Zernio API
3
+
4
+ #API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api Versioning and deprecation: all endpoints are versioned in the URL path (current version: /v1). Breaking changes only ship in a new path version; existing versions keep working. Deprecated operations are marked 'deprecated: true' in this spec and announced in the changelog (https://zernio.com/changelog) before removal. Errors: every 4xx/5xx response is application/json with a machine-readable 'code' and a human-readable 'error' message (see the ErrorResponse schema).
5
+
6
+ The version of the OpenAPI document: 1.0.4
7
+ Contact: support@zernio.com
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.19.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module Zernio
17
+ # Public HTTP(S) image URLs. GIF, JPEG or PNG, at most 5120 KB per image. Google validates dimensions and aspect ratios.
18
+ class GooglePmaxAssetGroupInputImages < ApiModelBase
19
+ # Landscape marketing images. Aspect ratio 1.91:1, minimum 600 x 314 pixels.
20
+ attr_accessor :landscape
21
+
22
+ # Square marketing images. Aspect ratio 1:1, minimum 300 x 300 pixels.
23
+ attr_accessor :square
24
+
25
+ # Required square logos. Aspect ratio 1:1, minimum 128 x 128 pixels.
26
+ attr_accessor :logo
27
+
28
+ # Attribute mapping from ruby-style variable name to JSON key.
29
+ def self.attribute_map
30
+ {
31
+ :'landscape' => :'landscape',
32
+ :'square' => :'square',
33
+ :'logo' => :'logo'
34
+ }
35
+ end
36
+
37
+ # Returns attribute mapping this model knows about
38
+ def self.acceptable_attribute_map
39
+ attribute_map
40
+ end
41
+
42
+ # Returns all the JSON keys this model knows about
43
+ def self.acceptable_attributes
44
+ acceptable_attribute_map.values
45
+ end
46
+
47
+ # Attribute type mapping.
48
+ def self.openapi_types
49
+ {
50
+ :'landscape' => :'Array<String>',
51
+ :'square' => :'Array<String>',
52
+ :'logo' => :'Array<String>'
53
+ }
54
+ end
55
+
56
+ # List of attributes with nullable: true
57
+ def self.openapi_nullable
58
+ Set.new([
59
+ ])
60
+ end
61
+
62
+ # Initializes the object
63
+ # @param [Hash] attributes Model attributes in the form of hash
64
+ def initialize(attributes = {})
65
+ if (!attributes.is_a?(Hash))
66
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Zernio::GooglePmaxAssetGroupInputImages` initialize method"
67
+ end
68
+
69
+ # check to see if the attribute exists and convert string to symbol for hash key
70
+ acceptable_attribute_map = self.class.acceptable_attribute_map
71
+ attributes = attributes.each_with_object({}) { |(k, v), h|
72
+ if (!acceptable_attribute_map.key?(k.to_sym))
73
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Zernio::GooglePmaxAssetGroupInputImages`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
74
+ end
75
+ h[k.to_sym] = v
76
+ }
77
+
78
+ if attributes.key?(:'landscape')
79
+ if (value = attributes[:'landscape']).is_a?(Array)
80
+ self.landscape = value
81
+ end
82
+ else
83
+ self.landscape = nil
84
+ end
85
+
86
+ if attributes.key?(:'square')
87
+ if (value = attributes[:'square']).is_a?(Array)
88
+ self.square = value
89
+ end
90
+ else
91
+ self.square = nil
92
+ end
93
+
94
+ if attributes.key?(:'logo')
95
+ if (value = attributes[:'logo']).is_a?(Array)
96
+ self.logo = value
97
+ end
98
+ else
99
+ self.logo = nil
100
+ end
101
+ end
102
+
103
+ # Show invalid properties with the reasons. Usually used together with valid?
104
+ # @return Array for valid properties with the reasons
105
+ def list_invalid_properties
106
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
107
+ invalid_properties = Array.new
108
+ if @landscape.nil?
109
+ invalid_properties.push('invalid value for "landscape", landscape cannot be nil.')
110
+ end
111
+
112
+ if @landscape.length > 20
113
+ invalid_properties.push('invalid value for "landscape", number of items must be less than or equal to 20.')
114
+ end
115
+
116
+ if @landscape.length < 1
117
+ invalid_properties.push('invalid value for "landscape", number of items must be greater than or equal to 1.')
118
+ end
119
+
120
+ if @square.nil?
121
+ invalid_properties.push('invalid value for "square", square cannot be nil.')
122
+ end
123
+
124
+ if @square.length > 20
125
+ invalid_properties.push('invalid value for "square", number of items must be less than or equal to 20.')
126
+ end
127
+
128
+ if @square.length < 1
129
+ invalid_properties.push('invalid value for "square", number of items must be greater than or equal to 1.')
130
+ end
131
+
132
+ if @logo.nil?
133
+ invalid_properties.push('invalid value for "logo", logo cannot be nil.')
134
+ end
135
+
136
+ if @logo.length > 5
137
+ invalid_properties.push('invalid value for "logo", number of items must be less than or equal to 5.')
138
+ end
139
+
140
+ if @logo.length < 1
141
+ invalid_properties.push('invalid value for "logo", number of items must be greater than or equal to 1.')
142
+ end
143
+
144
+ invalid_properties
145
+ end
146
+
147
+ # Check to see if the all the properties in the model are valid
148
+ # @return true if the model is valid
149
+ def valid?
150
+ warn '[DEPRECATED] the `valid?` method is obsolete'
151
+ return false if @landscape.nil?
152
+ return false if @landscape.length > 20
153
+ return false if @landscape.length < 1
154
+ return false if @square.nil?
155
+ return false if @square.length > 20
156
+ return false if @square.length < 1
157
+ return false if @logo.nil?
158
+ return false if @logo.length > 5
159
+ return false if @logo.length < 1
160
+ true
161
+ end
162
+
163
+ # Custom attribute writer method with validation
164
+ # @param [Object] landscape Value to be assigned
165
+ def landscape=(landscape)
166
+ if landscape.nil?
167
+ fail ArgumentError, 'landscape cannot be nil'
168
+ end
169
+
170
+ if landscape.length > 20
171
+ fail ArgumentError, 'invalid value for "landscape", number of items must be less than or equal to 20.'
172
+ end
173
+
174
+ if landscape.length < 1
175
+ fail ArgumentError, 'invalid value for "landscape", number of items must be greater than or equal to 1.'
176
+ end
177
+
178
+ @landscape = landscape
179
+ end
180
+
181
+ # Custom attribute writer method with validation
182
+ # @param [Object] square Value to be assigned
183
+ def square=(square)
184
+ if square.nil?
185
+ fail ArgumentError, 'square cannot be nil'
186
+ end
187
+
188
+ if square.length > 20
189
+ fail ArgumentError, 'invalid value for "square", number of items must be less than or equal to 20.'
190
+ end
191
+
192
+ if square.length < 1
193
+ fail ArgumentError, 'invalid value for "square", number of items must be greater than or equal to 1.'
194
+ end
195
+
196
+ @square = square
197
+ end
198
+
199
+ # Custom attribute writer method with validation
200
+ # @param [Object] logo Value to be assigned
201
+ def logo=(logo)
202
+ if logo.nil?
203
+ fail ArgumentError, 'logo cannot be nil'
204
+ end
205
+
206
+ if logo.length > 5
207
+ fail ArgumentError, 'invalid value for "logo", number of items must be less than or equal to 5.'
208
+ end
209
+
210
+ if logo.length < 1
211
+ fail ArgumentError, 'invalid value for "logo", number of items must be greater than or equal to 1.'
212
+ end
213
+
214
+ @logo = logo
215
+ end
216
+
217
+ # Checks equality by comparing each attribute.
218
+ # @param [Object] Object to be compared
219
+ def ==(o)
220
+ return true if self.equal?(o)
221
+ self.class == o.class &&
222
+ landscape == o.landscape &&
223
+ square == o.square &&
224
+ logo == o.logo
225
+ end
226
+
227
+ # @see the `==` method
228
+ # @param [Object] Object to be compared
229
+ def eql?(o)
230
+ self == o
231
+ end
232
+
233
+ # Calculates hash code according to all attributes.
234
+ # @return [Integer] Hash code
235
+ def hash
236
+ [landscape, square, logo].hash
237
+ end
238
+
239
+ # Builds the object from hash
240
+ # @param [Hash] attributes Model attributes in the form of hash
241
+ # @return [Object] Returns the model itself
242
+ def self.build_from_hash(attributes)
243
+ return nil unless attributes.is_a?(Hash)
244
+ attributes = attributes.transform_keys(&:to_sym)
245
+ transformed_hash = {}
246
+ openapi_types.each_pair do |key, type|
247
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
248
+ transformed_hash["#{key}"] = nil
249
+ elsif type =~ /\AArray<(.*)>/i
250
+ # check to ensure the input is an array given that the attribute
251
+ # is documented as an array but the input is not
252
+ if attributes[attribute_map[key]].is_a?(Array)
253
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
254
+ end
255
+ elsif !attributes[attribute_map[key]].nil?
256
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
257
+ end
258
+ end
259
+ new(transformed_hash)
260
+ end
261
+
262
+ # Returns the object in the form of hash
263
+ # @return [Hash] Returns the object in the form of hash
264
+ def to_hash
265
+ hash = {}
266
+ self.class.attribute_map.each_pair do |attr, param|
267
+ value = self.send(attr)
268
+ if value.nil?
269
+ is_nullable = self.class.openapi_nullable.include?(attr)
270
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
271
+ end
272
+
273
+ hash[param] = _to_hash(value)
274
+ end
275
+ hash
276
+ end
277
+
278
+ end
279
+
280
+ end
@@ -22,6 +22,12 @@ module Zernio
22
22
 
23
23
  attr_accessor :currency
24
24
 
25
+ # Meta only. Owning Business Manager ID when available on the grant.
26
+ attr_accessor :business_id
27
+
28
+ # Owning business name when supplied by the platform.
29
+ attr_accessor :business_name
30
+
25
31
  # LinkedIn only. LinkedIn's own ad account status. In practice always `ACTIVE`, because the LinkedIn query filters to active accounts. Meta, Google, TikTok and Pinterest report `accountStatus` instead; X reports `approvalStatus`.
26
32
  attr_accessor :status
27
33
 
@@ -54,6 +60,8 @@ module Zernio
54
60
  :'id' => :'id',
55
61
  :'name' => :'name',
56
62
  :'currency' => :'currency',
63
+ :'business_id' => :'businessId',
64
+ :'business_name' => :'businessName',
57
65
  :'status' => :'status',
58
66
  :'account_status' => :'accountStatus',
59
67
  :'approval_status' => :'approvalStatus',
@@ -82,6 +90,8 @@ module Zernio
82
90
  :'id' => :'String',
83
91
  :'name' => :'String',
84
92
  :'currency' => :'String',
93
+ :'business_id' => :'String',
94
+ :'business_name' => :'String',
85
95
  :'status' => :'String',
86
96
  :'account_status' => :'Object',
87
97
  :'approval_status' => :'String',
@@ -130,6 +140,14 @@ module Zernio
130
140
  self.currency = attributes[:'currency']
131
141
  end
132
142
 
143
+ if attributes.key?(:'business_id')
144
+ self.business_id = attributes[:'business_id']
145
+ end
146
+
147
+ if attributes.key?(:'business_name')
148
+ self.business_name = attributes[:'business_name']
149
+ end
150
+
133
151
  if attributes.key?(:'status')
134
152
  self.status = attributes[:'status']
135
153
  end
@@ -190,6 +208,8 @@ module Zernio
190
208
  id == o.id &&
191
209
  name == o.name &&
192
210
  currency == o.currency &&
211
+ business_id == o.business_id &&
212
+ business_name == o.business_name &&
193
213
  status == o.status &&
194
214
  account_status == o.account_status &&
195
215
  approval_status == o.approval_status &&
@@ -210,7 +230,7 @@ module Zernio
210
230
  # Calculates hash code according to all attributes.
211
231
  # @return [Integer] Hash code
212
232
  def hash
213
- [id, name, currency, status, account_status, approval_status, disable_reason, timezone_name, timezone_offset_hours_utc, minimum_daily_budget, selectable, unusable_reason].hash
233
+ [id, name, currency, business_id, business_name, status, account_status, approval_status, disable_reason, timezone_name, timezone_offset_hours_utc, minimum_daily_budget, selectable, unusable_reason].hash
214
234
  end
215
235
 
216
236
  # Builds the object from hash
@@ -0,0 +1,204 @@
1
+ =begin
2
+ #Zernio API
3
+
4
+ #API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api Versioning and deprecation: all endpoints are versioned in the URL path (current version: /v1). Breaking changes only ship in a new path version; existing versions keep working. Deprecated operations are marked 'deprecated: true' in this spec and announced in the changelog (https://zernio.com/changelog) before removal. Errors: every 4xx/5xx response is application/json with a machine-readable 'code' and a human-readable 'error' message (see the ErrorResponse schema).
5
+
6
+ The version of the OpenAPI document: 1.0.4
7
+ Contact: support@zernio.com
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.19.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module Zernio
17
+ class ListGoogleAssetGroups200Response < ApiModelBase
18
+ attr_accessor :asset_groups
19
+
20
+ attr_accessor :cached_at
21
+
22
+ attr_accessor :stale
23
+
24
+ # Attribute mapping from ruby-style variable name to JSON key.
25
+ def self.attribute_map
26
+ {
27
+ :'asset_groups' => :'assetGroups',
28
+ :'cached_at' => :'cachedAt',
29
+ :'stale' => :'stale'
30
+ }
31
+ end
32
+
33
+ # Returns attribute mapping this model knows about
34
+ def self.acceptable_attribute_map
35
+ attribute_map
36
+ end
37
+
38
+ # Returns all the JSON keys this model knows about
39
+ def self.acceptable_attributes
40
+ acceptable_attribute_map.values
41
+ end
42
+
43
+ # Attribute type mapping.
44
+ def self.openapi_types
45
+ {
46
+ :'asset_groups' => :'Array<GooglePmaxAssetGroup>',
47
+ :'cached_at' => :'Time',
48
+ :'stale' => :'Boolean'
49
+ }
50
+ end
51
+
52
+ # List of attributes with nullable: true
53
+ def self.openapi_nullable
54
+ Set.new([
55
+ :'cached_at',
56
+ ])
57
+ end
58
+
59
+ # Initializes the object
60
+ # @param [Hash] attributes Model attributes in the form of hash
61
+ def initialize(attributes = {})
62
+ if (!attributes.is_a?(Hash))
63
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Zernio::ListGoogleAssetGroups200Response` initialize method"
64
+ end
65
+
66
+ # check to see if the attribute exists and convert string to symbol for hash key
67
+ acceptable_attribute_map = self.class.acceptable_attribute_map
68
+ attributes = attributes.each_with_object({}) { |(k, v), h|
69
+ if (!acceptable_attribute_map.key?(k.to_sym))
70
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Zernio::ListGoogleAssetGroups200Response`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
71
+ end
72
+ h[k.to_sym] = v
73
+ }
74
+
75
+ if attributes.key?(:'asset_groups')
76
+ if (value = attributes[:'asset_groups']).is_a?(Array)
77
+ self.asset_groups = value
78
+ end
79
+ else
80
+ self.asset_groups = nil
81
+ end
82
+
83
+ if attributes.key?(:'cached_at')
84
+ self.cached_at = attributes[:'cached_at']
85
+ else
86
+ self.cached_at = nil
87
+ end
88
+
89
+ if attributes.key?(:'stale')
90
+ self.stale = attributes[:'stale']
91
+ else
92
+ self.stale = nil
93
+ end
94
+ end
95
+
96
+ # Show invalid properties with the reasons. Usually used together with valid?
97
+ # @return Array for valid properties with the reasons
98
+ def list_invalid_properties
99
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
100
+ invalid_properties = Array.new
101
+ if @asset_groups.nil?
102
+ invalid_properties.push('invalid value for "asset_groups", asset_groups cannot be nil.')
103
+ end
104
+
105
+ if @stale.nil?
106
+ invalid_properties.push('invalid value for "stale", stale cannot be nil.')
107
+ end
108
+
109
+ invalid_properties
110
+ end
111
+
112
+ # Check to see if the all the properties in the model are valid
113
+ # @return true if the model is valid
114
+ def valid?
115
+ warn '[DEPRECATED] the `valid?` method is obsolete'
116
+ return false if @asset_groups.nil?
117
+ return false if @stale.nil?
118
+ true
119
+ end
120
+
121
+ # Custom attribute writer method with validation
122
+ # @param [Object] asset_groups Value to be assigned
123
+ def asset_groups=(asset_groups)
124
+ if asset_groups.nil?
125
+ fail ArgumentError, 'asset_groups cannot be nil'
126
+ end
127
+
128
+ @asset_groups = asset_groups
129
+ end
130
+
131
+ # Custom attribute writer method with validation
132
+ # @param [Object] stale Value to be assigned
133
+ def stale=(stale)
134
+ if stale.nil?
135
+ fail ArgumentError, 'stale cannot be nil'
136
+ end
137
+
138
+ @stale = stale
139
+ end
140
+
141
+ # Checks equality by comparing each attribute.
142
+ # @param [Object] Object to be compared
143
+ def ==(o)
144
+ return true if self.equal?(o)
145
+ self.class == o.class &&
146
+ asset_groups == o.asset_groups &&
147
+ cached_at == o.cached_at &&
148
+ stale == o.stale
149
+ end
150
+
151
+ # @see the `==` method
152
+ # @param [Object] Object to be compared
153
+ def eql?(o)
154
+ self == o
155
+ end
156
+
157
+ # Calculates hash code according to all attributes.
158
+ # @return [Integer] Hash code
159
+ def hash
160
+ [asset_groups, cached_at, stale].hash
161
+ end
162
+
163
+ # Builds the object from hash
164
+ # @param [Hash] attributes Model attributes in the form of hash
165
+ # @return [Object] Returns the model itself
166
+ def self.build_from_hash(attributes)
167
+ return nil unless attributes.is_a?(Hash)
168
+ attributes = attributes.transform_keys(&:to_sym)
169
+ transformed_hash = {}
170
+ openapi_types.each_pair do |key, type|
171
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
172
+ transformed_hash["#{key}"] = nil
173
+ elsif type =~ /\AArray<(.*)>/i
174
+ # check to ensure the input is an array given that the attribute
175
+ # is documented as an array but the input is not
176
+ if attributes[attribute_map[key]].is_a?(Array)
177
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
178
+ end
179
+ elsif !attributes[attribute_map[key]].nil?
180
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
181
+ end
182
+ end
183
+ new(transformed_hash)
184
+ end
185
+
186
+ # Returns the object in the form of hash
187
+ # @return [Hash] Returns the object in the form of hash
188
+ def to_hash
189
+ hash = {}
190
+ self.class.attribute_map.each_pair do |attr, param|
191
+ value = self.send(attr)
192
+ if value.nil?
193
+ is_nullable = self.class.openapi_nullable.include?(attr)
194
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
195
+ end
196
+
197
+ hash[param] = _to_hash(value)
198
+ end
199
+ hash
200
+ end
201
+
202
+ end
203
+
204
+ end
@@ -42,13 +42,13 @@ module Zernio
42
42
  # Last time follower count was updated (only included if user has analytics add-on)
43
43
  attr_accessor :followers_last_updated
44
44
 
45
- # Reference to the parent posting SocialAccount. Set for ads accounts that share or derive from a posting account's OAuth token. null for standalone ads (Google Ads) and all posting accounts.
45
+ # Reference to the parent posting SocialAccount. Set for ads accounts that share or derive from a posting account's OAuth token. null for standalone ads (Google Ads) and all posting accounts. Meta ads business-login accounts also have no parent.
46
46
  attr_accessor :parent_account_id
47
47
 
48
48
  # Whether the user explicitly activated this account. false means the account was created as a side effect (e.g., posting account auto-created when user connected ads first). Such accounts are hidden from this list, cannot be posted to (`ACCOUNT_NOT_ENABLED_FOR_POSTING`), and are not billed as connected accounts.
49
49
  attr_accessor :enabled
50
50
 
51
- # Platform-specific metadata. Fields vary by platform. For WhatsApp accounts, includes: - qualityRating: Phone number quality rating from Meta (GREEN, YELLOW, RED, or UNKNOWN) - nameStatus: Display name review status (APPROVED, PENDING_REVIEW, DECLINED, or NONE). A declined or pending display name does not by itself block sending; sendability is reported separately via health_status (can_send_message). - messagingLimitTier: Maximum unique business-initiated conversations per 24h rolling window (TIER_250, TIER_1K, TIER_10K, TIER_100K, or TIER_UNLIMITED). Scales automatically as quality rating improves. - verifiedName: Meta-verified business display name - displayPhoneNumber: Formatted phone number (e.g., \"+1 555-123-4567\") - wabaId: WhatsApp Business Account ID - phoneNumberId: Meta phone number ID For LinkedIn accounts, profileData carries the profile details refreshed on each daily snapshot: - profileData.bio: The member's headline for personal accounts, or the organization description for organization accounts. null when the member has not set one. - profileData.extraData.vanityName: The member's profile slug, i.e. the /in/{vanityName} segment of profileUrl. Personal accounts only; an organization's own slug is in metadata.organizationInfo.vanityName.
51
+ # Platform-specific metadata. Fields vary by platform. For WhatsApp accounts, includes: - qualityRating: Phone number quality rating from Meta (GREEN, YELLOW, RED, or UNKNOWN) - nameStatus: Display name review status (APPROVED, PENDING_REVIEW, DECLINED, or NONE). A declined or pending display name does not by itself block sending; sendability is reported separately via health_status (can_send_message). - messagingLimitTier: Maximum unique business-initiated conversations per 24h rolling window (TIER_250, TIER_1K, TIER_10K, TIER_100K, or TIER_UNLIMITED). Scales automatically as quality rating improves. - verifiedName: Meta-verified business display name - displayPhoneNumber: Formatted phone number (e.g., \"+1 555-123-4567\") - wabaId: WhatsApp Business Account ID - phoneNumberId: Meta phone number ID For Meta ads business-login accounts: - tokenType: system-user - businessId: The owning Business Manager ID when there is one owner; null for multiple owners. - businessIds: Owning Business Manager IDs discovered from granted ad accounts. - grantedAdAccountIds: Ad-account IDs granted to the token. - adAccountBusinesses: Map from ad-account ID to its owning business ID or null. - availablePages: Granted Page IDs and names. No Page tokens are exposed. - selectedPageId: The Page selected for creatives and lead forms, or null. - scopedAdAccountIds: Existing sync scope preserved on reconnect. Non-expiring tokens have no tokenExpiresAt field. Parent posting reconnects do not replace this token. For LinkedIn accounts, profileData carries the profile details refreshed on each daily snapshot: - profileData.bio: The member's headline for personal accounts, or the organization description for organization accounts. null when the member has not set one. - profileData.extraData.vanityName: The member's profile slug, i.e. the /in/{vanityName} segment of profileUrl. Personal accounts only; an organization's own slug is in metadata.organizationInfo.vanityName.
52
52
  attr_accessor :metadata
53
53
 
54
54
  class EnumAttributeValidator
@@ -11,5 +11,5 @@ Generator version: 7.19.0
11
11
  =end
12
12
 
13
13
  module Zernio
14
- VERSION = '0.0.905'
14
+ VERSION = '0.0.907'
15
15
  end
data/lib/zernio-sdk.rb CHANGED
@@ -927,6 +927,10 @@ require 'zernio-sdk/models/google_business_platform_data_offer'
927
927
  require 'zernio-sdk/models/google_business_review'
928
928
  require 'zernio-sdk/models/google_business_review_review_reply'
929
929
  require 'zernio-sdk/models/google_business_review_reviewer'
930
+ require 'zernio-sdk/models/google_pmax_asset_group'
931
+ require 'zernio-sdk/models/google_pmax_asset_group_assets_inner'
932
+ require 'zernio-sdk/models/google_pmax_asset_group_input'
933
+ require 'zernio-sdk/models/google_pmax_asset_group_input_images'
930
934
  require 'zernio-sdk/models/google_rsa_description'
931
935
  require 'zernio-sdk/models/google_rsa_headline'
932
936
  require 'zernio-sdk/models/google_sitelink'
@@ -1099,6 +1103,7 @@ require 'zernio-sdk/models/list_facebook_pages200_response'
1099
1103
  require 'zernio-sdk/models/list_facebook_pages200_response_pages_inner'
1100
1104
  require 'zernio-sdk/models/list_form_leads200_response'
1101
1105
  require 'zernio-sdk/models/list_form_leads200_response_leads_inner'
1106
+ require 'zernio-sdk/models/list_google_asset_groups200_response'
1102
1107
  require 'zernio-sdk/models/list_google_business_locations200_response'
1103
1108
  require 'zernio-sdk/models/list_google_business_locations200_response_locations_inner'
1104
1109
  require 'zernio-sdk/models/list_google_business_media200_response'