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 +4 -4
- data/docs/BoostPostRequest.md +3 -1
- data/lib/zernio-sdk/models/boost_post_request.rb +14 -4
- data/lib/zernio-sdk/version.rb +1 -1
- data/openapi.yaml +11 -0
- data/spec/models/boost_post_request_spec.rb +6 -0
- data/zernio-sdk-0.0.660.gem +0 -0
- metadata +2 -2
- data/zernio-sdk-0.0.659.gem +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b6bbc0ec36eb8cc1c5736bac3613628e36106775502683e4b6c6650e0e78389a
|
|
4
|
+
data.tar.gz: d297a3238bbab5fed05ff2928bf73d4fecf66bbabb631334de93eb3a4d315099
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 90ffc4dc31a9d8ecf050736a0bad057eb4659fa2acc0d42e96eb592226ca699c67f6dc47ba93e3889cf2d173ed8b9223b781705217d48c1cd511f9ea399de645
|
|
7
|
+
data.tar.gz: 11ac60871853895fe6ea87bbca28945b12a461798b01692656eaf031b221a0d86d7f3aac4bd99ab88f148d402895547ad745f2a9c73fa193fe584ac5b832cf71
|
data/docs/BoostPostRequest.md
CHANGED
|
@@ -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
|
data/lib/zernio-sdk/version.rb
CHANGED
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.
|
|
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.
|
|
4970
|
+
- zernio-sdk-0.0.660.gem
|
|
4971
4971
|
- zernio-sdk.gemspec
|
|
4972
4972
|
homepage: https://openapi-generator.tech
|
|
4973
4973
|
licenses:
|
data/zernio-sdk-0.0.659.gem
DELETED
|
Binary file
|