zernio-sdk 0.0.839 → 0.0.840
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/AdCampaignsApi.md +1 -1
- data/docs/CreateStandaloneAdRequest.md +1 -1
- data/lib/zernio-sdk/api/ad_campaigns_api.rb +2 -2
- data/lib/zernio-sdk/models/create_standalone_ad_request.rb +20 -1
- data/lib/zernio-sdk/version.rb +1 -1
- data/openapi.yaml +3 -2
- data/spec/api/ad_campaigns_api_spec.rb +1 -1
- metadata +1752 -1752
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d69a7a0a96c5f15482295dd4f48e67cd59b867e7b8804003ad0b8c372c7982f6
|
|
4
|
+
data.tar.gz: bc0747567f6819c4c6b1a122a828a590abefa8a86fcfcaa0ca9ea2a9f3a2383c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 98c6bfa941406a59f0e2daa80de0c1446ee888de785519f694c4df42d9b7af036637aa84d7347053e4eb281b079b9c41b3f174bbd203b4f0bebbd4d3aab34fde
|
|
7
|
+
data.tar.gz: f86c7f1718850be52134204b4830551abe7518281622e69542d6b2f02df0c043d15b16373aa0449579672d648e76a19c0746ba3d3c39b041ca428433f199d787
|
data/docs/AdCampaignsApi.md
CHANGED
|
@@ -249,7 +249,7 @@ end
|
|
|
249
249
|
|
|
250
250
|
Create a standalone campaign
|
|
251
251
|
|
|
252
|
-
Creates a campaign WITHOUT its first ad set / ad, on the platform of the given `accountId`. Ad sets join it later via `existingCampaignId` on the create endpoints. Platform notes: on Meta a budget here is campaign-level (CBO) by definition; omit it for ABO (each ad set carries its own budget), and `specialAdCategories` / `bidStrategy` are Meta-only (400 elsewhere). Google, X and OpenAI require a budget (422 without one; OpenAI accepts only `budgetType: lifetime`). LinkedIn creates the campaign GROUP (our campaign level) and rejects a budget, which lives on the campaign (ad set) level there; it comes back `status: DRAFT`. TikTok campaigns are created without a status and report `ENABLE`. Created `PAUSED` unless `status: ACTIVE` where the platform supports it. **Idempotency:** send an `Idempotency-Key` header to make retries safe.
|
|
252
|
+
Creates a campaign WITHOUT its first ad set / ad, on the platform of the given `accountId`. Ad sets join it later via `existingCampaignId` on the create endpoints. Platform notes: on Meta a budget here is campaign-level (CBO) by definition; omit it for ABO (each ad set carries its own budget), and `specialAdCategories` / `bidStrategy` are Meta-only (400 elsewhere). Google, X and OpenAI require a budget (422 without one; OpenAI accepts only `budgetType: lifetime`, Google only `budgetType: daily`). LinkedIn creates the campaign GROUP (our campaign level) and rejects a budget, which lives on the campaign (ad set) level there; it comes back `status: DRAFT`. TikTok campaigns are created without a status and report `ENABLE`. Created `PAUSED` unless `status: ACTIVE` where the platform supports it. **Idempotency:** send an `Idempotency-Key` header to make retries safe.
|
|
253
253
|
|
|
254
254
|
### Examples
|
|
255
255
|
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
| **placement_assets** | [**CreateStandaloneAdRequestPlacementAssets**](CreateStandaloneAdRequestPlacementAssets.md) | | [optional] |
|
|
79
79
|
| **audience_id** | **String** | Custom audience ID for targeting | [optional] |
|
|
80
80
|
| **campaign_type** | **String** | Google only | [optional][default to 'display'] |
|
|
81
|
-
| **keywords** | **Array<String>** | Google Search only. BROAD-match keywords on the new ad group
|
|
81
|
+
| **keywords** | **Array<String>** | Google Search only. BROAD-match keywords on the new ad group. Editable later via PUT /v1/ads/{adId} targeting.keywords, which also sets match types. | [optional] |
|
|
82
82
|
| **negative_keywords** | **Array<String>** | Google Search only; other platforms return 400. BROAD-match negative keywords on the new ad group. Editable later via PUT /v1/ads/{adId} targeting.negativeKeywords. | [optional] |
|
|
83
83
|
| **additional_headlines** | **Array<String>** | Google Search RSA only. Extra headlines. | [optional] |
|
|
84
84
|
| **additional_descriptions** | **Array<String>** | Google Search RSA only. Extra descriptions. | [optional] |
|
|
@@ -237,7 +237,7 @@ module Zernio
|
|
|
237
237
|
end
|
|
238
238
|
|
|
239
239
|
# Create a standalone campaign
|
|
240
|
-
# Creates a campaign WITHOUT its first ad set / ad, on the platform of the given `accountId`. Ad sets join it later via `existingCampaignId` on the create endpoints. Platform notes: on Meta a budget here is campaign-level (CBO) by definition; omit it for ABO (each ad set carries its own budget), and `specialAdCategories` / `bidStrategy` are Meta-only (400 elsewhere). Google, X and OpenAI require a budget (422 without one; OpenAI accepts only `budgetType: lifetime`). LinkedIn creates the campaign GROUP (our campaign level) and rejects a budget, which lives on the campaign (ad set) level there; it comes back `status: DRAFT`. TikTok campaigns are created without a status and report `ENABLE`. Created `PAUSED` unless `status: ACTIVE` where the platform supports it. **Idempotency:** send an `Idempotency-Key` header to make retries safe.
|
|
240
|
+
# Creates a campaign WITHOUT its first ad set / ad, on the platform of the given `accountId`. Ad sets join it later via `existingCampaignId` on the create endpoints. Platform notes: on Meta a budget here is campaign-level (CBO) by definition; omit it for ABO (each ad set carries its own budget), and `specialAdCategories` / `bidStrategy` are Meta-only (400 elsewhere). Google, X and OpenAI require a budget (422 without one; OpenAI accepts only `budgetType: lifetime`, Google only `budgetType: daily`). LinkedIn creates the campaign GROUP (our campaign level) and rejects a budget, which lives on the campaign (ad set) level there; it comes back `status: DRAFT`. TikTok campaigns are created without a status and report `ENABLE`. Created `PAUSED` unless `status: ACTIVE` where the platform supports it. **Idempotency:** send an `Idempotency-Key` header to make retries safe.
|
|
241
241
|
# @param create_ad_campaign_request [CreateAdCampaignRequest]
|
|
242
242
|
# @param [Hash] opts the optional parameters
|
|
243
243
|
# @option opts [String] :idempotency_key Optional client-generated unique key (e.g. a UUID) that makes retries safe. Same key + same body replays the original response; same key + different body → 422; key still processing → 409. Only 2xx responses are stored, so a request that failed with a 4xx can be retried with a corrected body under the SAME key.
|
|
@@ -248,7 +248,7 @@ module Zernio
|
|
|
248
248
|
end
|
|
249
249
|
|
|
250
250
|
# Create a standalone campaign
|
|
251
|
-
# Creates a campaign WITHOUT its first ad set / ad, on the platform of the given `accountId`. Ad sets join it later via `existingCampaignId` on the create endpoints. Platform notes: on Meta a budget here is campaign-level (CBO) by definition; omit it for ABO (each ad set carries its own budget), and `specialAdCategories` / `bidStrategy` are Meta-only (400 elsewhere). Google, X and OpenAI require a budget (422 without one; OpenAI accepts only `budgetType: lifetime`). LinkedIn creates the campaign GROUP (our campaign level) and rejects a budget, which lives on the campaign (ad set) level there; it comes back `status: DRAFT`. TikTok campaigns are created without a status and report `ENABLE`. Created `PAUSED` unless `status: ACTIVE` where the platform supports it. **Idempotency:** send an `Idempotency-Key` header to make retries safe.
|
|
251
|
+
# Creates a campaign WITHOUT its first ad set / ad, on the platform of the given `accountId`. Ad sets join it later via `existingCampaignId` on the create endpoints. Platform notes: on Meta a budget here is campaign-level (CBO) by definition; omit it for ABO (each ad set carries its own budget), and `specialAdCategories` / `bidStrategy` are Meta-only (400 elsewhere). Google, X and OpenAI require a budget (422 without one; OpenAI accepts only `budgetType: lifetime`, Google only `budgetType: daily`). LinkedIn creates the campaign GROUP (our campaign level) and rejects a budget, which lives on the campaign (ad set) level there; it comes back `status: DRAFT`. TikTok campaigns are created without a status and report `ENABLE`. Created `PAUSED` unless `status: ACTIVE` where the platform supports it. **Idempotency:** send an `Idempotency-Key` header to make retries safe.
|
|
252
252
|
# @param create_ad_campaign_request [CreateAdCampaignRequest]
|
|
253
253
|
# @param [Hash] opts the optional parameters
|
|
254
254
|
# @option opts [String] :idempotency_key Optional client-generated unique key (e.g. a UUID) that makes retries safe. Same key + same body replays the original response; same key + different body → 422; key still processing → 409. Only 2xx responses are stored, so a request that failed with a 4xx can be retried with a corrected body under the SAME key.
|
|
@@ -226,7 +226,7 @@ module Zernio
|
|
|
226
226
|
# Google only
|
|
227
227
|
attr_accessor :campaign_type
|
|
228
228
|
|
|
229
|
-
# Google Search only. BROAD-match keywords on the new ad group
|
|
229
|
+
# Google Search only. BROAD-match keywords on the new ad group. Editable later via PUT /v1/ads/{adId} targeting.keywords, which also sets match types.
|
|
230
230
|
attr_accessor :keywords
|
|
231
231
|
|
|
232
232
|
# Google Search only; other platforms return 400. BROAD-match negative keywords on the new ad group. Editable later via PUT /v1/ads/{adId} targeting.negativeKeywords.
|
|
@@ -1121,6 +1121,10 @@ module Zernio
|
|
|
1121
1121
|
invalid_properties.push('invalid value for "translations", number of items must be greater than or equal to 1.')
|
|
1122
1122
|
end
|
|
1123
1123
|
|
|
1124
|
+
if !@keywords.nil? && @keywords.length > 1000
|
|
1125
|
+
invalid_properties.push('invalid value for "keywords", number of items must be less than or equal to 1000.')
|
|
1126
|
+
end
|
|
1127
|
+
|
|
1124
1128
|
if !@sitelinks.nil? && @sitelinks.length > 20
|
|
1125
1129
|
invalid_properties.push('invalid value for "sitelinks", number of items must be less than or equal to 20.')
|
|
1126
1130
|
end
|
|
@@ -1220,6 +1224,7 @@ module Zernio
|
|
|
1220
1224
|
return false if !@translations.nil? && @translations.length < 1
|
|
1221
1225
|
campaign_type_validator = EnumAttributeValidator.new('String', ["display", "search"])
|
|
1222
1226
|
return false unless campaign_type_validator.valid?(@campaign_type)
|
|
1227
|
+
return false if !@keywords.nil? && @keywords.length > 1000
|
|
1223
1228
|
return false if !@sitelinks.nil? && @sitelinks.length > 20
|
|
1224
1229
|
return false if !@sitelinks.nil? && @sitelinks.length < 2
|
|
1225
1230
|
return false if !@callouts.nil? && @callouts.length > 20
|
|
@@ -1616,6 +1621,20 @@ module Zernio
|
|
|
1616
1621
|
@campaign_type = campaign_type
|
|
1617
1622
|
end
|
|
1618
1623
|
|
|
1624
|
+
# Custom attribute writer method with validation
|
|
1625
|
+
# @param [Object] keywords Value to be assigned
|
|
1626
|
+
def keywords=(keywords)
|
|
1627
|
+
if keywords.nil?
|
|
1628
|
+
fail ArgumentError, 'keywords cannot be nil'
|
|
1629
|
+
end
|
|
1630
|
+
|
|
1631
|
+
if keywords.length > 1000
|
|
1632
|
+
fail ArgumentError, 'invalid value for "keywords", number of items must be less than or equal to 1000.'
|
|
1633
|
+
end
|
|
1634
|
+
|
|
1635
|
+
@keywords = keywords
|
|
1636
|
+
end
|
|
1637
|
+
|
|
1619
1638
|
# Custom attribute writer method with validation
|
|
1620
1639
|
# @param [Object] sitelinks Value to be assigned
|
|
1621
1640
|
def sitelinks=(sitelinks)
|
data/lib/zernio-sdk/version.rb
CHANGED
data/openapi.yaml
CHANGED
|
@@ -41171,7 +41171,8 @@ paths:
|
|
|
41171
41171
|
Platform notes: on Meta a budget here is campaign-level (CBO) by definition; omit it
|
|
41172
41172
|
for ABO (each ad set carries its own budget), and `specialAdCategories` /
|
|
41173
41173
|
`bidStrategy` are Meta-only (400 elsewhere). Google, X and OpenAI require a budget
|
|
41174
|
-
(422 without one; OpenAI accepts only `budgetType: lifetime
|
|
41174
|
+
(422 without one; OpenAI accepts only `budgetType: lifetime`, Google only
|
|
41175
|
+
`budgetType: daily`). LinkedIn creates the
|
|
41175
41176
|
campaign GROUP (our campaign level) and rejects a budget, which lives on the
|
|
41176
41177
|
campaign (ad set) level there; it comes back `status: DRAFT`. TikTok campaigns are
|
|
41177
41178
|
created without a status and report `ENABLE`. Created `PAUSED` unless
|
|
@@ -45353,7 +45354,7 @@ paths:
|
|
|
45353
45354
|
items: { type: string, enum: [mobile, desktop] }
|
|
45354
45355
|
audienceId: { type: string, description: Custom audience ID for targeting }
|
|
45355
45356
|
campaignType: { type: string, enum: [display, search], default: display, description: Google only }
|
|
45356
|
-
keywords: { type: array, items: { type: string }, description: "Google Search only. BROAD-match keywords on the new ad group
|
|
45357
|
+
keywords: { type: array, maxItems: 1000, items: { type: string, maxLength: 80 }, description: "Google Search only. BROAD-match keywords on the new ad group. Editable later via PUT /v1/ads/{adId} targeting.keywords, which also sets match types." }
|
|
45357
45358
|
negativeKeywords: { type: array, items: { type: string, maxLength: 80 }, description: "Google Search only; other platforms return 400. BROAD-match negative keywords on the new ad group. Editable later via PUT /v1/ads/{adId} targeting.negativeKeywords." }
|
|
45358
45359
|
additionalHeadlines: { type: array, items: { type: string }, description: "Google Search RSA only. Extra headlines." }
|
|
45359
45360
|
additionalDescriptions: { type: array, items: { type: string }, description: "Google Search RSA only. Extra descriptions." }
|
|
@@ -72,7 +72,7 @@ describe 'AdCampaignsApi' do
|
|
|
72
72
|
|
|
73
73
|
# unit tests for create_ad_campaign
|
|
74
74
|
# Create a standalone campaign
|
|
75
|
-
# Creates a campaign WITHOUT its first ad set / ad, on the platform of the given `accountId`. Ad sets join it later via `existingCampaignId` on the create endpoints. Platform notes: on Meta a budget here is campaign-level (CBO) by definition; omit it for ABO (each ad set carries its own budget), and `specialAdCategories` / `bidStrategy` are Meta-only (400 elsewhere). Google, X and OpenAI require a budget (422 without one; OpenAI accepts only `budgetType: lifetime`). LinkedIn creates the campaign GROUP (our campaign level) and rejects a budget, which lives on the campaign (ad set) level there; it comes back `status: DRAFT`. TikTok campaigns are created without a status and report `ENABLE`. Created `PAUSED` unless `status: ACTIVE` where the platform supports it. **Idempotency:** send an `Idempotency-Key` header to make retries safe.
|
|
75
|
+
# Creates a campaign WITHOUT its first ad set / ad, on the platform of the given `accountId`. Ad sets join it later via `existingCampaignId` on the create endpoints. Platform notes: on Meta a budget here is campaign-level (CBO) by definition; omit it for ABO (each ad set carries its own budget), and `specialAdCategories` / `bidStrategy` are Meta-only (400 elsewhere). Google, X and OpenAI require a budget (422 without one; OpenAI accepts only `budgetType: lifetime`, Google only `budgetType: daily`). LinkedIn creates the campaign GROUP (our campaign level) and rejects a budget, which lives on the campaign (ad set) level there; it comes back `status: DRAFT`. TikTok campaigns are created without a status and report `ENABLE`. Created `PAUSED` unless `status: ACTIVE` where the platform supports it. **Idempotency:** send an `Idempotency-Key` header to make retries safe.
|
|
76
76
|
# @param create_ad_campaign_request
|
|
77
77
|
# @param [Hash] opts the optional parameters
|
|
78
78
|
# @option opts [String] :idempotency_key Optional client-generated unique key (e.g. a UUID) that makes retries safe. Same key + same body replays the original response; same key + different body → 422; key still processing → 409. Only 2xx responses are stored, so a request that failed with a 4xx can be retried with a corrected body under the SAME key.
|