late-sdk 0.0.1275 → 0.0.1276
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/AdAudiencesApi.md +1 -1
- data/docs/UploadedOrDerivedAudience.md +30 -6
- data/lib/zernio-sdk/api/ad_audiences_api.rb +2 -2
- data/lib/zernio-sdk/models/list_ad_audiences200_response_audiences_inner.rb +2 -2
- data/lib/zernio-sdk/models/uploaded_or_derived_audience.rb +252 -15
- data/lib/zernio-sdk/version.rb +1 -1
- data/openapi.yaml +1 -1
- data/spec/api/ad_audiences_api_spec.rb +1 -1
- data/spec/models/list_ad_audiences200_response_audiences_inner_spec.rb +1 -1
- data/spec/models/uploaded_or_derived_audience_spec.rb +93 -1
- data/zernio-sdk-0.0.1276.gem +0 -0
- metadata +2 -2
- data/zernio-sdk-0.0.1275.gem +0 -0
|
@@ -47,7 +47,7 @@ describe 'AdAudiencesApi' do
|
|
|
47
47
|
|
|
48
48
|
# unit tests for create_ad_audience
|
|
49
49
|
# Create custom audience
|
|
50
|
-
# Create a custom audience. `customer_list` is supported on Meta, Google, X, LinkedIn, TikTok, and Pinterest
|
|
50
|
+
# Create a custom audience. `customer_list` is supported on Meta, Google, X, LinkedIn, TikTok, and Pinterest. `website` (pixel/tag visitors) and `lookalike` are supported on Meta, TikTok, Pinterest and Google. `meta_engagement` is Meta-only, `tiktok_engagement` TikTok-only, `pinterest_engagement` Pinterest-only; `company_list`, `engagement` and `website_retargeting` are LinkedIn-only. A type sent to a platform that does not support it is a 422 `FEATURE_NOT_AVAILABLE`. Per-platform rules for `website`: - Meta: `pixelId` required, `retentionDays` 1-180, optional `urlContains` or raw `rule`. `event` is not accepted. - TikTok: `pixelId` required, `retentionDays` one of 7, 14, 30, 60, 90, 180. `event` is a TikTok pixel event (default `PAGE BROWSE`; also `CLICK BUTTON`, `PIXEL SUBMIT FORM`, `CONTACT`, `DOWNLOAD`, `PIXEL ADD PAYMENT INFO`, `COMPLETE PAYMENT`, `INITIATE CHECKOUT`, `COMPLETE REGISTRATION`, `PRODUCT DETAIL PAGE BROWSE`, `PIXEL SEARCH`, `PIXEL ADD TO CART`, `PLACE AN ORDER`, `PIXEL ADD TO WISHLIST`, `PIXEL SUBSCRIBE`), optional `urlContains`. - Pinterest: `pixelId` is the Pinterest tag id, `retentionDays` 1-540, optional `event` (e.g. `checkout`, `addtocart`). Pinterest matches URLs exactly, so `urlContains` is a 400 there. - Google: no `pixelId` (the account's Google tag is used), `retentionDays` 1-540, `urlContains` defaults to `/` (all visitors). Built as a rule-based user list with prepopulation requested. Per-platform rules for `lookalike`: Meta takes `ratio` (0.01-0.20); Pinterest takes `ratio` in whole percents (0.01-0.10) and `country` US, CA or GB; TikTok and Google take `size` (narrow, balanced, broad) instead of `ratio`. TikTok needs a seed with at least 1,000 matched people. `saved_targeting` stores a reusable TargetingSpec (no member upload, no adAccountId) that you reference later via `savedTargetingId` on `POST /v1/ads/create`. How the audience gets filled depends on the type: - `customer_list` is created empty. Add members with `POST /v1/ads/audiences/{audienceId}/users`. On TikTok and Pinterest the audience is provisioned lazily on that first upload (until then its status is `pending`). - `company_list` is filled AT CREATION from the `companies` array below, which is required. To change the list afterwards send the new full list to `POST /v1/ads/audiences/{audienceId}/companies` (a replace, not a merge). The `/users` endpoint rejects these audiences with a 422. - `website`, `website_retargeting`, `engagement`, `meta_engagement`, `tiktok_engagement`, `pinterest_engagement` and `lookalike` fill themselves from the pixel, engagement source or seed audience you point them at. They take no member upload at all. Create is not idempotent, never auto-retry.
|
|
51
51
|
# @param create_ad_audience_request
|
|
52
52
|
# @param [Hash] opts the optional parameters
|
|
53
53
|
# @return [CreateAdAudience201Response]
|
|
@@ -60,7 +60,7 @@ describe Zernio::ListAdAudiences200ResponseAudiencesInner do
|
|
|
60
60
|
describe 'test attribute "type"' do
|
|
61
61
|
it 'should work' do
|
|
62
62
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
63
|
-
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["customer_list", "company_list", "engagement", "meta_engagement", "website", "website_retargeting", "lookalike", "saved_targeting"])
|
|
63
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["customer_list", "company_list", "engagement", "meta_engagement", "tiktok_engagement", "pinterest_engagement", "website", "website_retargeting", "lookalike", "saved_targeting"])
|
|
64
64
|
# validator.allowable_values.each do |value|
|
|
65
65
|
# expect { instance.type = value }.not_to raise_error
|
|
66
66
|
# end
|
|
@@ -54,7 +54,7 @@ describe Zernio::UploadedOrDerivedAudience do
|
|
|
54
54
|
describe 'test attribute "type"' do
|
|
55
55
|
it 'should work' do
|
|
56
56
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
57
|
-
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["customer_list", "company_list", "engagement", "meta_engagement", "website", "website_retargeting", "lookalike"])
|
|
57
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["customer_list", "company_list", "engagement", "meta_engagement", "tiktok_engagement", "pinterest_engagement", "website", "website_retargeting", "lookalike"])
|
|
58
58
|
# validator.allowable_values.each do |value|
|
|
59
59
|
# expect { instance.type = value }.not_to raise_error
|
|
60
60
|
# end
|
|
@@ -157,6 +157,98 @@ describe Zernio::UploadedOrDerivedAudience do
|
|
|
157
157
|
end
|
|
158
158
|
end
|
|
159
159
|
|
|
160
|
+
describe 'test attribute "size"' do
|
|
161
|
+
it 'should work' do
|
|
162
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
163
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["narrow", "balanced", "broad"])
|
|
164
|
+
# validator.allowable_values.each do |value|
|
|
165
|
+
# expect { instance.size = value }.not_to raise_error
|
|
166
|
+
# end
|
|
167
|
+
end
|
|
168
|
+
end
|
|
169
|
+
|
|
170
|
+
describe 'test attribute "source"' do
|
|
171
|
+
it 'should work' do
|
|
172
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
173
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["ads", "organic_video", "live_video", "business_account"])
|
|
174
|
+
# validator.allowable_values.each do |value|
|
|
175
|
+
# expect { instance.source = value }.not_to raise_error
|
|
176
|
+
# end
|
|
177
|
+
end
|
|
178
|
+
end
|
|
179
|
+
|
|
180
|
+
describe 'test attribute "source_ids"' do
|
|
181
|
+
it 'should work' do
|
|
182
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
183
|
+
end
|
|
184
|
+
end
|
|
185
|
+
|
|
186
|
+
describe 'test attribute "identity_id"' do
|
|
187
|
+
it 'should work' do
|
|
188
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
189
|
+
end
|
|
190
|
+
end
|
|
191
|
+
|
|
192
|
+
describe 'test attribute "identity_type"' do
|
|
193
|
+
it 'should work' do
|
|
194
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
195
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["TT_USER", "BC_AUTH_TT"])
|
|
196
|
+
# validator.allowable_values.each do |value|
|
|
197
|
+
# expect { instance.identity_type = value }.not_to raise_error
|
|
198
|
+
# end
|
|
199
|
+
end
|
|
200
|
+
end
|
|
201
|
+
|
|
202
|
+
describe 'test attribute "identity_authorized_bc_id"' do
|
|
203
|
+
it 'should work' do
|
|
204
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
205
|
+
end
|
|
206
|
+
end
|
|
207
|
+
|
|
208
|
+
describe 'test attribute "engager_type"' do
|
|
209
|
+
it 'should work' do
|
|
210
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
211
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('Integer', [1, 2])
|
|
212
|
+
# validator.allowable_values.each do |value|
|
|
213
|
+
# expect { instance.engager_type = value }.not_to raise_error
|
|
214
|
+
# end
|
|
215
|
+
end
|
|
216
|
+
end
|
|
217
|
+
|
|
218
|
+
describe 'test attribute "engagement_type"' do
|
|
219
|
+
it 'should work' do
|
|
220
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
221
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["click", "save", "closeup", "comment", "like"])
|
|
222
|
+
# validator.allowable_values.each do |value|
|
|
223
|
+
# expect { instance.engagement_type = value }.not_to raise_error
|
|
224
|
+
# end
|
|
225
|
+
end
|
|
226
|
+
end
|
|
227
|
+
|
|
228
|
+
describe 'test attribute "engagement_domains"' do
|
|
229
|
+
it 'should work' do
|
|
230
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
231
|
+
end
|
|
232
|
+
end
|
|
233
|
+
|
|
234
|
+
describe 'test attribute "campaign_ids"' do
|
|
235
|
+
it 'should work' do
|
|
236
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
237
|
+
end
|
|
238
|
+
end
|
|
239
|
+
|
|
240
|
+
describe 'test attribute "ad_ids"' do
|
|
241
|
+
it 'should work' do
|
|
242
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
243
|
+
end
|
|
244
|
+
end
|
|
245
|
+
|
|
246
|
+
describe 'test attribute "pin_ids"' do
|
|
247
|
+
it 'should work' do
|
|
248
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
249
|
+
end
|
|
250
|
+
end
|
|
251
|
+
|
|
160
252
|
describe 'test attribute "url_contains"' do
|
|
161
253
|
it 'should work' do
|
|
162
254
|
# 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.
|
|
4
|
+
version: 0.0.1276
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- OpenAPI-Generator
|
|
@@ -8188,7 +8188,7 @@ files:
|
|
|
8188
8188
|
- spec/models/you_tube_video_retention_response_retention_curve_inner_spec.rb
|
|
8189
8189
|
- spec/models/you_tube_video_retention_response_spec.rb
|
|
8190
8190
|
- spec/spec_helper.rb
|
|
8191
|
-
- zernio-sdk-0.0.
|
|
8191
|
+
- zernio-sdk-0.0.1276.gem
|
|
8192
8192
|
- zernio-sdk.gemspec
|
|
8193
8193
|
homepage: https://openapi-generator.tech
|
|
8194
8194
|
licenses:
|
data/zernio-sdk-0.0.1275.gem
DELETED
|
Binary file
|