late-sdk 0.0.659 → 0.0.660

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: 3f6fa769ddf9f9d76e8216b95653006ebdc22ec2e6139898b00b4baac9e7ed3d
4
- data.tar.gz: b4d07220726fdd3525182b83538ccaeea64c251bf9d5f88d5f23ea451f857f0f
3
+ metadata.gz: b6bbc0ec36eb8cc1c5736bac3613628e36106775502683e4b6c6650e0e78389a
4
+ data.tar.gz: d297a3238bbab5fed05ff2928bf73d4fecf66bbabb631334de93eb3a4d315099
5
5
  SHA512:
6
- metadata.gz: b2631c74bf03c28f836e189ff298ee542bf1600c1f47c6b4ee438e646f6bbba0d1350239015b00e8e2dbb85c6068bf247084a9cffca8c5b577350727acddd7ef
7
- data.tar.gz: fab8a17c6a8ac5b09d85cb60eda435696bdb20a2d1c903790f261abcae31bf761708aca11aaf274bea8c8eb27609085a250bd92ef7b3c9135c3b2e0b7f8c3802
6
+ metadata.gz: 90ffc4dc31a9d8ecf050736a0bad057eb4659fa2acc0d42e96eb592226ca699c67f6dc47ba93e3889cf2d173ed8b9223b781705217d48c1cd511f9ea399de645
7
+ data.tar.gz: 11ac60871853895fe6ea87bbca28945b12a461798b01692656eaf031b221a0d86d7f3aac4bd99ab88f148d402895547ad745f2a9c73fa193fe584ac5b832cf71
@@ -27,6 +27,7 @@
27
27
  | **spark_auth_code** | **String** | TikTok-only. Spark Code (creator's `auth_code`) authorizing cross-creator Spark Ads — the advertiser can boost a video owned by a DIFFERENT TikTok account. Without this, boosts are limited to videos owned by the same account running the ads (same-BC creators only). The creator generates the code in their TikTok app's Promote settings and shares it with the advertiser. Maps to `auth_code` on the creative entry of /v2/ad/create/. | [optional] |
28
28
  | **dsa_beneficiary** | **String** | Legal entity that benefits from the ad. Required when targeting EU users (EU DSA, Article 26). Optional if the ad account has a default beneficiary: set it once via `PATCH /v1/ads/accounts` or in Meta Ads Manager, and Meta fills it in whenever the field is omitted. | [optional] |
29
29
  | **dsa_payor** | **String** | Legal entity that pays for the ad. Can differ from `dsaBeneficiary` (for example, an agency paying for a client's ads). Same rules as `dsaBeneficiary`: required for EU targeting unless the ad account has a default payor. | [optional] |
30
+ | **optimization_goal** | **String** | Meta only. Explicit ad-set `optimization_goal` override. When omitted, defaults to the value derived from `goal`. The value must be compatible with the objective Meta derives from `goal`, not with the objective used by `POST /v1/ads/create` for the same `goal` name: boost maps `goal: \"engagement\"` to objective `OUTCOME_AWARENESS`, which accepts `REACH`, `IMPRESSIONS`, `AD_RECALL_LIFT`, or THRUPLAY-class values, and rejects `POST_ENGAGEMENT` (that value is only valid under `OUTCOME_ENGAGEMENT`, which create uses for the same goal name). | [optional] |
30
31
 
31
32
  ## Example
32
33
 
@@ -56,7 +57,8 @@ instance = Zernio::BoostPostRequest.new(
56
57
  call_to_action: null,
57
58
  spark_auth_code: null,
58
59
  dsa_beneficiary: null,
59
- dsa_payor: null
60
+ dsa_payor: null,
61
+ optimization_goal: null
60
62
  )
61
63
  ```
62
64
 
@@ -77,6 +77,9 @@ module Zernio
77
77
  # Legal entity that pays for the ad. Can differ from `dsaBeneficiary` (for example, an agency paying for a client's ads). Same rules as `dsaBeneficiary`: required for EU targeting unless the ad account has a default payor.
78
78
  attr_accessor :dsa_payor
79
79
 
80
+ # Meta only. Explicit ad-set `optimization_goal` override. When omitted, defaults to the value derived from `goal`. The value must be compatible with the objective Meta derives from `goal`, not with the objective used by `POST /v1/ads/create` for the same `goal` name: boost maps `goal: \"engagement\"` to objective `OUTCOME_AWARENESS`, which accepts `REACH`, `IMPRESSIONS`, `AD_RECALL_LIFT`, or THRUPLAY-class values, and rejects `POST_ENGAGEMENT` (that value is only valid under `OUTCOME_ENGAGEMENT`, which create uses for the same goal name).
81
+ attr_accessor :optimization_goal
82
+
80
83
  class EnumAttributeValidator
81
84
  attr_reader :datatype
82
85
  attr_reader :allowable_values
@@ -124,7 +127,8 @@ module Zernio
124
127
  :'call_to_action' => :'callToAction',
125
128
  :'spark_auth_code' => :'sparkAuthCode',
126
129
  :'dsa_beneficiary' => :'dsaBeneficiary',
127
- :'dsa_payor' => :'dsaPayor'
130
+ :'dsa_payor' => :'dsaPayor',
131
+ :'optimization_goal' => :'optimizationGoal'
128
132
  }
129
133
  end
130
134
 
@@ -163,7 +167,8 @@ module Zernio
163
167
  :'call_to_action' => :'String',
164
168
  :'spark_auth_code' => :'String',
165
169
  :'dsa_beneficiary' => :'String',
166
- :'dsa_payor' => :'String'
170
+ :'dsa_payor' => :'String',
171
+ :'optimization_goal' => :'String'
167
172
  }
168
173
  end
169
174
 
@@ -296,6 +301,10 @@ module Zernio
296
301
  if attributes.key?(:'dsa_payor')
297
302
  self.dsa_payor = attributes[:'dsa_payor']
298
303
  end
304
+
305
+ if attributes.key?(:'optimization_goal')
306
+ self.optimization_goal = attributes[:'optimization_goal']
307
+ end
299
308
  end
300
309
 
301
310
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -464,7 +473,8 @@ module Zernio
464
473
  call_to_action == o.call_to_action &&
465
474
  spark_auth_code == o.spark_auth_code &&
466
475
  dsa_beneficiary == o.dsa_beneficiary &&
467
- dsa_payor == o.dsa_payor
476
+ dsa_payor == o.dsa_payor &&
477
+ optimization_goal == o.optimization_goal
468
478
  end
469
479
 
470
480
  # @see the `==` method
@@ -476,7 +486,7 @@ module Zernio
476
486
  # Calculates hash code according to all attributes.
477
487
  # @return [Integer] Hash code
478
488
  def hash
479
- [post_id, platform_post_id, account_id, ad_account_id, name, goal, budget, currency, schedule, targeting, raw_targeting, bid_strategy, bid_amount, roas_average_floor, platform_specific_data, tracking, special_ad_categories, special_ad_category_country, link_url, call_to_action, spark_auth_code, dsa_beneficiary, dsa_payor].hash
489
+ [post_id, platform_post_id, account_id, ad_account_id, name, goal, budget, currency, schedule, targeting, raw_targeting, bid_strategy, bid_amount, roas_average_floor, platform_specific_data, tracking, special_ad_categories, special_ad_category_country, link_url, call_to_action, spark_auth_code, dsa_beneficiary, dsa_payor, optimization_goal].hash
480
490
  end
481
491
 
482
492
  # 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.659'
14
+ VERSION = '0.0.660'
15
15
  end
data/openapi.yaml CHANGED
@@ -38399,6 +38399,17 @@ paths:
38399
38399
  (for example, an agency paying for a client's ads). Same rules as
38400
38400
  `dsaBeneficiary`: required for EU targeting unless the ad account has
38401
38401
  a default payor.
38402
+ optimizationGoal:
38403
+ type: string
38404
+ description: |
38405
+ Meta only. Explicit ad-set `optimization_goal` override. When omitted,
38406
+ defaults to the value derived from `goal`. The value must be compatible
38407
+ with the objective Meta derives from `goal`, not with the objective used
38408
+ by `POST /v1/ads/create` for the same `goal` name: boost maps `goal:
38409
+ "engagement"` to objective `OUTCOME_AWARENESS`, which accepts
38410
+ `REACH`, `IMPRESSIONS`, `AD_RECALL_LIFT`, or THRUPLAY-class values, and
38411
+ rejects `POST_ENGAGEMENT` (that value is only valid under
38412
+ `OUTCOME_ENGAGEMENT`, which create uses for the same goal name).
38402
38413
  responses:
38403
38414
  '201':
38404
38415
  description: Ad created
@@ -173,4 +173,10 @@ describe Zernio::BoostPostRequest do
173
173
  end
174
174
  end
175
175
 
176
+ describe 'test attribute "optimization_goal"' do
177
+ it 'should work' do
178
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
179
+ end
180
+ end
181
+
176
182
  end
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.659
4
+ version: 0.0.660
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenAPI-Generator
@@ -4967,7 +4967,7 @@ files:
4967
4967
  - spec/models/you_tube_video_retention_response_retention_curve_inner_spec.rb
4968
4968
  - spec/models/you_tube_video_retention_response_spec.rb
4969
4969
  - spec/spec_helper.rb
4970
- - zernio-sdk-0.0.659.gem
4970
+ - zernio-sdk-0.0.660.gem
4971
4971
  - zernio-sdk.gemspec
4972
4972
  homepage: https://openapi-generator.tech
4973
4973
  licenses:
Binary file