zernio-sdk 0.0.897 → 0.0.899
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/README.md +2 -0
- data/docs/AdCampaignsApi.md +11 -7
- data/docs/AdCreative.md +4 -0
- data/docs/AdCreativesApi.md +2 -2
- data/docs/BoostPostRequest.md +2 -0
- data/docs/CreateAdCreative201Response.md +5 -1
- data/docs/CreateAdCreativeRequest.md +4 -2
- data/docs/CreateCallAdRequest.md +2 -0
- data/docs/CreateMessagingAdRequest.md +2 -0
- data/docs/CreateStandaloneAdRequest.md +5 -3
- data/docs/CreateStandaloneAdRequestCreativesInner.md +4 -0
- data/docs/CreateStandaloneAdRequestPromotedObject.md +2 -2
- data/docs/CtwaAdRequestBody.md +2 -0
- data/docs/CtwaAdRequestBodyCreativesInner.md +2 -0
- data/docs/MetaPromotion.md +26 -0
- data/docs/MetaPromotionStatus.md +15 -0
- data/docs/UpdateAdRequestCreative.md +4 -0
- data/lib/zernio-sdk/api/ad_campaigns_api.rb +9 -6
- data/lib/zernio-sdk/api/ad_creatives_api.rb +4 -4
- data/lib/zernio-sdk/models/ad_creative.rb +42 -1
- data/lib/zernio-sdk/models/boost_post_request.rb +13 -1
- data/lib/zernio-sdk/models/create_ad_creative201_response.rb +44 -4
- data/lib/zernio-sdk/models/create_ad_creative_request.rb +11 -2
- data/lib/zernio-sdk/models/create_call_ad_request.rb +13 -1
- data/lib/zernio-sdk/models/create_messaging_ad_request.rb +13 -1
- data/lib/zernio-sdk/models/create_standalone_ad_request.rb +12 -3
- data/lib/zernio-sdk/models/create_standalone_ad_request_creatives_inner.rb +23 -1
- data/lib/zernio-sdk/models/create_standalone_ad_request_dynamic_creative.rb +1 -1
- data/lib/zernio-sdk/models/create_standalone_ad_request_promoted_object.rb +2 -2
- data/lib/zernio-sdk/models/ctwa_ad_request_body.rb +13 -1
- data/lib/zernio-sdk/models/ctwa_ad_request_body_creatives_inner.rb +35 -1
- data/lib/zernio-sdk/models/meta_promotion.rb +275 -0
- data/lib/zernio-sdk/models/meta_promotion_status.rb +41 -0
- data/lib/zernio-sdk/models/update_ad_request_creative.rb +45 -2
- data/lib/zernio-sdk/version.rb +1 -1
- data/lib/zernio-sdk.rb +2 -0
- data/openapi.yaml +132 -13
- data/spec/api/ad_campaigns_api_spec.rb +4 -3
- data/spec/api/ad_creatives_api_spec.rb +2 -2
- data/spec/models/ad_creative_spec.rb +12 -0
- data/spec/models/boost_post_request_spec.rb +10 -0
- data/spec/models/create_ad_creative201_response_spec.rb +12 -0
- data/spec/models/create_ad_creative_request_spec.rb +6 -0
- data/spec/models/create_call_ad_request_spec.rb +10 -0
- data/spec/models/create_messaging_ad_request_spec.rb +10 -0
- data/spec/models/create_standalone_ad_request_creatives_inner_spec.rb +16 -0
- data/spec/models/create_standalone_ad_request_spec.rb +6 -0
- data/spec/models/ctwa_ad_request_body_creatives_inner_spec.rb +10 -0
- data/spec/models/ctwa_ad_request_body_spec.rb +10 -0
- data/spec/models/meta_promotion_spec.rb +64 -0
- data/spec/models/meta_promotion_status_spec.rb +30 -0
- data/spec/models/update_ad_request_creative_spec.rb +16 -0
- metadata +9 -1
|
@@ -0,0 +1,30 @@
|
|
|
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 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
require 'date'
|
|
16
|
+
|
|
17
|
+
# Unit tests for Zernio::MetaPromotionStatus
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe Zernio::MetaPromotionStatus do
|
|
21
|
+
#let(:instance) { Zernio::MetaPromotionStatus.new }
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of MetaPromotionStatus' do
|
|
24
|
+
it 'should create an instance of MetaPromotionStatus' do
|
|
25
|
+
# uncomment below to test the instance creation
|
|
26
|
+
#expect(instance).to be_instance_of(Zernio::MetaPromotionStatus)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
end
|
|
@@ -27,6 +27,22 @@ describe Zernio::UpdateAdRequestCreative do
|
|
|
27
27
|
end
|
|
28
28
|
end
|
|
29
29
|
|
|
30
|
+
describe 'test attribute "promotion"' do
|
|
31
|
+
it 'should work' do
|
|
32
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
describe 'test attribute "creative_features"' do
|
|
37
|
+
it 'should work' do
|
|
38
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
39
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('Hash<String, String>', ["OPT_IN", "OPT_OUT"])
|
|
40
|
+
# validator.allowable_values.each do |value|
|
|
41
|
+
# expect { instance.creative_features = value }.not_to raise_error
|
|
42
|
+
# end
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
|
|
30
46
|
describe 'test attribute "headline"' do
|
|
31
47
|
it 'should work' do
|
|
32
48
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: zernio-sdk
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.899
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- OpenAPI-Generator
|
|
@@ -1292,6 +1292,8 @@ files:
|
|
|
1292
1292
|
- docs/MetaAdsPlatformData.md
|
|
1293
1293
|
- docs/MetaLeadFormPlatformData.md
|
|
1294
1294
|
- docs/MetaLeadFormPlatformDataContextCard.md
|
|
1295
|
+
- docs/MetaPromotion.md
|
|
1296
|
+
- docs/MetaPromotionStatus.md
|
|
1295
1297
|
- docs/Money.md
|
|
1296
1298
|
- docs/MoneyAmount.md
|
|
1297
1299
|
- docs/MoveAccountToProfile200Response.md
|
|
@@ -3335,6 +3337,8 @@ files:
|
|
|
3335
3337
|
- lib/zernio-sdk/models/meta_ads_platform_data.rb
|
|
3336
3338
|
- lib/zernio-sdk/models/meta_lead_form_platform_data.rb
|
|
3337
3339
|
- lib/zernio-sdk/models/meta_lead_form_platform_data_context_card.rb
|
|
3340
|
+
- lib/zernio-sdk/models/meta_promotion.rb
|
|
3341
|
+
- lib/zernio-sdk/models/meta_promotion_status.rb
|
|
3338
3342
|
- lib/zernio-sdk/models/money.rb
|
|
3339
3343
|
- lib/zernio-sdk/models/money_amount.rb
|
|
3340
3344
|
- lib/zernio-sdk/models/move_account_to_profile200_response.rb
|
|
@@ -5347,6 +5351,8 @@ files:
|
|
|
5347
5351
|
- spec/models/meta_ads_platform_data_spec.rb
|
|
5348
5352
|
- spec/models/meta_lead_form_platform_data_context_card_spec.rb
|
|
5349
5353
|
- spec/models/meta_lead_form_platform_data_spec.rb
|
|
5354
|
+
- spec/models/meta_promotion_spec.rb
|
|
5355
|
+
- spec/models/meta_promotion_status_spec.rb
|
|
5350
5356
|
- spec/models/money_amount_spec.rb
|
|
5351
5357
|
- spec/models/money_spec.rb
|
|
5352
5358
|
- spec/models/move_account_to_profile200_response_spec.rb
|
|
@@ -7029,6 +7035,7 @@ test_files:
|
|
|
7029
7035
|
- spec/models/get_ad_comments200_response_meta_spec.rb
|
|
7030
7036
|
- spec/models/get_discord_guild_member200_response_spec.rb
|
|
7031
7037
|
- spec/models/on_verification_failed_request_spec.rb
|
|
7038
|
+
- spec/models/meta_promotion_status_spec.rb
|
|
7032
7039
|
- spec/models/money_amount_spec.rb
|
|
7033
7040
|
- spec/models/list_ad_campaigns200_response_spec.rb
|
|
7034
7041
|
- spec/models/search_tweets200_response_tweets_inner_author_spec.rb
|
|
@@ -7835,6 +7842,7 @@ test_files:
|
|
|
7835
7842
|
- spec/models/get_linked_in_bid_pricing200_response_spec.rb
|
|
7836
7843
|
- spec/models/purchase_phone_number202_response_spec.rb
|
|
7837
7844
|
- spec/models/boost_post_request_targeting_cities_inner_spec.rb
|
|
7845
|
+
- spec/models/meta_promotion_spec.rb
|
|
7838
7846
|
- spec/models/update_broadcast_request_template_variable_mapping_value_spec.rb
|
|
7839
7847
|
- spec/models/comment_automation_template_element_spec.rb
|
|
7840
7848
|
- spec/models/webhook_payload_call_ended_spec.rb
|