zernio-sdk 0.0.552 → 0.0.553
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 +4 -0
- data/docs/AdCampaignsApi.md +3 -3
- data/docs/ConnectApi.md +70 -0
- data/docs/ConnectOpenAIAdsCredentials200Response.md +22 -0
- data/docs/ConnectOpenAIAdsCredentialsRequest.md +24 -0
- data/docs/ConversionEvent.md +1 -1
- data/docs/ConversionsApi.md +5 -5
- data/docs/CreateStandaloneAdRequest.md +8 -8
- data/docs/CreateTrackingTagRequest.md +1 -1
- data/docs/GetTrackingTag200Response.md +20 -0
- data/docs/ListConversionDestinations200ResponseDestinationsInner.md +1 -1
- data/docs/SendConversions200Response.md +1 -1
- data/docs/SendConversionsRequest.md +3 -3
- data/docs/TrackingTagsApi.md +17 -17
- data/docs/UpdateAdRequestBudget.md +1 -1
- data/lib/zernio-sdk/api/ad_campaigns_api.rb +10 -10
- data/lib/zernio-sdk/api/connect_api.rb +68 -0
- data/lib/zernio-sdk/api/conversions_api.rb +8 -8
- data/lib/zernio-sdk/api/tracking_tags_api.rb +18 -18
- data/lib/zernio-sdk/models/account_with_follower_stats.rb +2 -2
- data/lib/zernio-sdk/models/ad.rb +2 -2
- data/lib/zernio-sdk/models/ad_campaign.rb +2 -2
- data/lib/zernio-sdk/models/ad_tree_campaign.rb +2 -2
- data/lib/zernio-sdk/models/bulk_update_ad_campaign_status_request_campaigns_inner.rb +2 -2
- data/lib/zernio-sdk/models/connect_open_ai_ads_credentials200_response.rb +165 -0
- data/lib/zernio-sdk/models/connect_open_ai_ads_credentials_request.rb +212 -0
- data/lib/zernio-sdk/models/conversion_event.rb +1 -1
- data/lib/zernio-sdk/models/create_standalone_ad_request.rb +8 -8
- data/lib/zernio-sdk/models/create_tracking_tag201_response.rb +2 -2
- data/lib/zernio-sdk/models/create_tracking_tag_request.rb +1 -1
- data/lib/zernio-sdk/models/get_tracking_tag200_response.rb +190 -0
- data/lib/zernio-sdk/models/list_conversion_destinations200_response.rb +2 -2
- data/lib/zernio-sdk/models/list_conversion_destinations200_response_destinations_inner.rb +1 -1
- data/lib/zernio-sdk/models/list_tracking_tags200_response.rb +2 -2
- data/lib/zernio-sdk/models/send_conversions200_response.rb +3 -3
- data/lib/zernio-sdk/models/send_conversions_request.rb +3 -3
- data/lib/zernio-sdk/models/social_account.rb +2 -2
- data/lib/zernio-sdk/models/update_ad_campaign_status_request.rb +2 -2
- data/lib/zernio-sdk/models/update_ad_request_budget.rb +1 -0
- data/lib/zernio-sdk/models/update_ad_set_request.rb +2 -2
- data/lib/zernio-sdk/version.rb +1 -1
- data/lib/zernio-sdk.rb +3 -0
- data/openapi.yaml +165 -65
- data/spec/api/ad_campaigns_api_spec.rb +3 -3
- data/spec/api/connect_api_spec.rb +12 -0
- data/spec/api/conversions_api_spec.rb +4 -4
- data/spec/api/tracking_tags_api_spec.rb +8 -8
- data/spec/models/account_with_follower_stats_spec.rb +1 -1
- data/spec/models/ad_campaign_spec.rb +1 -1
- data/spec/models/ad_spec.rb +1 -1
- data/spec/models/ad_tree_campaign_spec.rb +1 -1
- data/spec/models/bulk_update_ad_campaign_status_request_campaigns_inner_spec.rb +1 -1
- data/spec/models/connect_open_ai_ads_credentials200_response_spec.rb +48 -0
- data/spec/models/connect_open_ai_ads_credentials_request_spec.rb +54 -0
- data/spec/models/create_tracking_tag201_response_spec.rb +1 -1
- data/spec/models/get_tracking_tag200_response_spec.rb +46 -0
- data/spec/models/list_conversion_destinations200_response_spec.rb +1 -1
- data/spec/models/list_tracking_tags200_response_spec.rb +1 -1
- data/spec/models/send_conversions200_response_spec.rb +1 -1
- data/spec/models/social_account_spec.rb +1 -1
- data/spec/models/update_ad_campaign_status_request_spec.rb +1 -1
- data/spec/models/update_ad_set_request_spec.rb +1 -1
- metadata +13 -1
|
@@ -112,7 +112,7 @@ module Zernio
|
|
|
112
112
|
# @return true if the model is valid
|
|
113
113
|
def valid?
|
|
114
114
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
115
|
-
platform_validator = EnumAttributeValidator.new('String', ["metaads", "googleads", "linkedinads", "tiktokads"])
|
|
115
|
+
platform_validator = EnumAttributeValidator.new('String', ["metaads", "googleads", "linkedinads", "tiktokads", "openaiads"])
|
|
116
116
|
return false unless platform_validator.valid?(@platform)
|
|
117
117
|
true
|
|
118
118
|
end
|
|
@@ -120,7 +120,7 @@ module Zernio
|
|
|
120
120
|
# Custom attribute writer method checking allowed values (enum).
|
|
121
121
|
# @param [Object] platform Object to be assigned
|
|
122
122
|
def platform=(platform)
|
|
123
|
-
validator = EnumAttributeValidator.new('String', ["metaads", "googleads", "linkedinads", "tiktokads"])
|
|
123
|
+
validator = EnumAttributeValidator.new('String', ["metaads", "googleads", "linkedinads", "tiktokads", "openaiads"])
|
|
124
124
|
unless validator.valid?(platform)
|
|
125
125
|
fail ArgumentError, "invalid value for \"platform\", must be one of #{validator.allowable_values}."
|
|
126
126
|
end
|
|
@@ -15,7 +15,7 @@ require 'time'
|
|
|
15
15
|
|
|
16
16
|
module Zernio
|
|
17
17
|
class ListConversionDestinations200ResponseDestinationsInner < ApiModelBase
|
|
18
|
-
# Destination identifier. Meta: pixel ID. Google: conversion action resource name. LinkedIn: numeric conversion rule ID.
|
|
18
|
+
# Destination identifier. Meta: pixel ID. Google: conversion action resource name. LinkedIn: numeric conversion rule ID. OpenAI Ads: pixel wire id.
|
|
19
19
|
attr_accessor :id
|
|
20
20
|
|
|
21
21
|
attr_accessor :name
|
|
@@ -112,7 +112,7 @@ module Zernio
|
|
|
112
112
|
# @return true if the model is valid
|
|
113
113
|
def valid?
|
|
114
114
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
115
|
-
platform_validator = EnumAttributeValidator.new('String', ["metaads"])
|
|
115
|
+
platform_validator = EnumAttributeValidator.new('String', ["metaads", "openaiads"])
|
|
116
116
|
return false unless platform_validator.valid?(@platform)
|
|
117
117
|
true
|
|
118
118
|
end
|
|
@@ -120,7 +120,7 @@ module Zernio
|
|
|
120
120
|
# Custom attribute writer method checking allowed values (enum).
|
|
121
121
|
# @param [Object] platform Object to be assigned
|
|
122
122
|
def platform=(platform)
|
|
123
|
-
validator = EnumAttributeValidator.new('String', ["metaads"])
|
|
123
|
+
validator = EnumAttributeValidator.new('String', ["metaads", "openaiads"])
|
|
124
124
|
unless validator.valid?(platform)
|
|
125
125
|
fail ArgumentError, "invalid value for \"platform\", must be one of #{validator.allowable_values}."
|
|
126
126
|
end
|
|
@@ -25,7 +25,7 @@ module Zernio
|
|
|
25
25
|
|
|
26
26
|
attr_accessor :failures
|
|
27
27
|
|
|
28
|
-
# Platform trace ID for debugging. fbtrace_id for Meta, requestId for Google. Absent for LinkedIn (LinkedIn's conversionEvents endpoint does not surface a trace ID).
|
|
28
|
+
# Platform trace ID for debugging. fbtrace_id for Meta, requestId for Google. Absent for LinkedIn (LinkedIn's conversionEvents endpoint does not surface a trace ID) and OpenAI Ads (no trace ID surfaced).
|
|
29
29
|
attr_accessor :trace_id
|
|
30
30
|
|
|
31
31
|
class EnumAttributeValidator
|
|
@@ -139,7 +139,7 @@ module Zernio
|
|
|
139
139
|
# @return true if the model is valid
|
|
140
140
|
def valid?
|
|
141
141
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
142
|
-
platform_validator = EnumAttributeValidator.new('String', ["metaads", "googleads", "linkedinads", "tiktokads"])
|
|
142
|
+
platform_validator = EnumAttributeValidator.new('String', ["metaads", "googleads", "linkedinads", "tiktokads", "openaiads"])
|
|
143
143
|
return false unless platform_validator.valid?(@platform)
|
|
144
144
|
true
|
|
145
145
|
end
|
|
@@ -147,7 +147,7 @@ module Zernio
|
|
|
147
147
|
# Custom attribute writer method checking allowed values (enum).
|
|
148
148
|
# @param [Object] platform Object to be assigned
|
|
149
149
|
def platform=(platform)
|
|
150
|
-
validator = EnumAttributeValidator.new('String', ["metaads", "googleads", "linkedinads", "tiktokads"])
|
|
150
|
+
validator = EnumAttributeValidator.new('String', ["metaads", "googleads", "linkedinads", "tiktokads", "openaiads"])
|
|
151
151
|
unless validator.valid?(platform)
|
|
152
152
|
fail ArgumentError, "invalid value for \"platform\", must be one of #{validator.allowable_values}."
|
|
153
153
|
end
|
|
@@ -15,15 +15,15 @@ require 'time'
|
|
|
15
15
|
|
|
16
16
|
module Zernio
|
|
17
17
|
class SendConversionsRequest < ApiModelBase
|
|
18
|
-
# SocialAccount ID (metaads, googleads, linkedinads, or
|
|
18
|
+
# SocialAccount ID (metaads, googleads, linkedinads, tiktokads, or openaiads).
|
|
19
19
|
attr_accessor :account_id
|
|
20
20
|
|
|
21
|
-
# Platform destination identifier. For Meta, the pixel/dataset ID. For Google, the conversion action resource name. For LinkedIn, the conversion rule ID or full `urn:lla:llaPartnerConversion:{id}` URN.
|
|
21
|
+
# Platform destination identifier. For Meta, the pixel/dataset ID. For Google, the conversion action resource name. For LinkedIn, the conversion rule ID or full `urn:lla:llaPartnerConversion:{id}` URN. For OpenAI Ads, the pixel wire id.
|
|
22
22
|
attr_accessor :destination_id
|
|
23
23
|
|
|
24
24
|
attr_accessor :events
|
|
25
25
|
|
|
26
|
-
# Meta `test_event_code` passthrough. Ignored by Google and
|
|
26
|
+
# Meta `test_event_code` passthrough. Ignored by Google, LinkedIn, and OpenAI Ads.
|
|
27
27
|
attr_accessor :test_code
|
|
28
28
|
|
|
29
29
|
attr_accessor :consent
|
|
@@ -242,7 +242,7 @@ module Zernio
|
|
|
242
242
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
243
243
|
return false if @_id.nil?
|
|
244
244
|
return false if @platform.nil?
|
|
245
|
-
platform_validator = EnumAttributeValidator.new('String', ["tiktok", "instagram", "facebook", "youtube", "linkedin", "twitter", "threads", "pinterest", "reddit", "bluesky", "googlebusiness", "telegram", "snapchat", "discord", "whatsapp", "linkedinads", "metaads", "pinterestads", "tiktokads", "xads", "googleads"])
|
|
245
|
+
platform_validator = EnumAttributeValidator.new('String', ["tiktok", "instagram", "facebook", "youtube", "linkedin", "twitter", "threads", "pinterest", "reddit", "bluesky", "googlebusiness", "telegram", "snapchat", "discord", "whatsapp", "linkedinads", "metaads", "pinterestads", "tiktokads", "xads", "googleads", "openaiads"])
|
|
246
246
|
return false unless platform_validator.valid?(@platform)
|
|
247
247
|
return false if @profile_id.nil?
|
|
248
248
|
return false if @is_active.nil?
|
|
@@ -262,7 +262,7 @@ module Zernio
|
|
|
262
262
|
# Custom attribute writer method checking allowed values (enum).
|
|
263
263
|
# @param [Object] platform Object to be assigned
|
|
264
264
|
def platform=(platform)
|
|
265
|
-
validator = EnumAttributeValidator.new('String', ["tiktok", "instagram", "facebook", "youtube", "linkedin", "twitter", "threads", "pinterest", "reddit", "bluesky", "googlebusiness", "telegram", "snapchat", "discord", "whatsapp", "linkedinads", "metaads", "pinterestads", "tiktokads", "xads", "googleads"])
|
|
265
|
+
validator = EnumAttributeValidator.new('String', ["tiktok", "instagram", "facebook", "youtube", "linkedin", "twitter", "threads", "pinterest", "reddit", "bluesky", "googlebusiness", "telegram", "snapchat", "discord", "whatsapp", "linkedinads", "metaads", "pinterestads", "tiktokads", "xads", "googleads", "openaiads"])
|
|
266
266
|
unless validator.valid?(platform)
|
|
267
267
|
fail ArgumentError, "invalid value for \"platform\", must be one of #{validator.allowable_values}."
|
|
268
268
|
end
|
|
@@ -126,7 +126,7 @@ module Zernio
|
|
|
126
126
|
status_validator = EnumAttributeValidator.new('String', ["active", "paused"])
|
|
127
127
|
return false unless status_validator.valid?(@status)
|
|
128
128
|
return false if @platform.nil?
|
|
129
|
-
platform_validator = EnumAttributeValidator.new('String', ["facebook", "instagram", "tiktok", "linkedin", "pinterest", "google", "twitter"])
|
|
129
|
+
platform_validator = EnumAttributeValidator.new('String', ["facebook", "instagram", "tiktok", "linkedin", "pinterest", "google", "twitter", "openai"])
|
|
130
130
|
return false unless platform_validator.valid?(@platform)
|
|
131
131
|
true
|
|
132
132
|
end
|
|
@@ -144,7 +144,7 @@ module Zernio
|
|
|
144
144
|
# Custom attribute writer method checking allowed values (enum).
|
|
145
145
|
# @param [Object] platform Object to be assigned
|
|
146
146
|
def platform=(platform)
|
|
147
|
-
validator = EnumAttributeValidator.new('String', ["facebook", "instagram", "tiktok", "linkedin", "pinterest", "google", "twitter"])
|
|
147
|
+
validator = EnumAttributeValidator.new('String', ["facebook", "instagram", "tiktok", "linkedin", "pinterest", "google", "twitter", "openai"])
|
|
148
148
|
unless validator.valid?(platform)
|
|
149
149
|
fail ArgumentError, "invalid value for \"platform\", must be one of #{validator.allowable_values}."
|
|
150
150
|
end
|
|
@@ -174,7 +174,7 @@ module Zernio
|
|
|
174
174
|
def valid?
|
|
175
175
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
176
176
|
return false if @platform.nil?
|
|
177
|
-
platform_validator = EnumAttributeValidator.new('String', ["facebook", "instagram", "tiktok", "linkedin", "pinterest", "google", "twitter"])
|
|
177
|
+
platform_validator = EnumAttributeValidator.new('String', ["facebook", "instagram", "tiktok", "linkedin", "pinterest", "google", "twitter", "openai"])
|
|
178
178
|
return false unless platform_validator.valid?(@platform)
|
|
179
179
|
status_validator = EnumAttributeValidator.new('String', ["active", "paused"])
|
|
180
180
|
return false unless status_validator.valid?(@status)
|
|
@@ -185,7 +185,7 @@ module Zernio
|
|
|
185
185
|
# Custom attribute writer method checking allowed values (enum).
|
|
186
186
|
# @param [Object] platform Object to be assigned
|
|
187
187
|
def platform=(platform)
|
|
188
|
-
validator = EnumAttributeValidator.new('String', ["facebook", "instagram", "tiktok", "linkedin", "pinterest", "google", "twitter"])
|
|
188
|
+
validator = EnumAttributeValidator.new('String', ["facebook", "instagram", "tiktok", "linkedin", "pinterest", "google", "twitter", "openai"])
|
|
189
189
|
unless validator.valid?(platform)
|
|
190
190
|
fail ArgumentError, "invalid value for \"platform\", must be one of #{validator.allowable_values}."
|
|
191
191
|
end
|
data/lib/zernio-sdk/version.rb
CHANGED
data/lib/zernio-sdk.rb
CHANGED
|
@@ -140,6 +140,8 @@ require 'zernio-sdk/models/connect_ads200_response_one_of'
|
|
|
140
140
|
require 'zernio-sdk/models/connect_ads200_response_one_of1'
|
|
141
141
|
require 'zernio-sdk/models/connect_bluesky_credentials200_response'
|
|
142
142
|
require 'zernio-sdk/models/connect_bluesky_credentials_request'
|
|
143
|
+
require 'zernio-sdk/models/connect_open_ai_ads_credentials200_response'
|
|
144
|
+
require 'zernio-sdk/models/connect_open_ai_ads_credentials_request'
|
|
143
145
|
require 'zernio-sdk/models/connect_whats_app_credentials200_response'
|
|
144
146
|
require 'zernio-sdk/models/connect_whats_app_credentials200_response_account'
|
|
145
147
|
require 'zernio-sdk/models/connect_whats_app_credentials_request'
|
|
@@ -647,6 +649,7 @@ require 'zernio-sdk/models/get_tik_tok_creator_info200_response_commercial_conte
|
|
|
647
649
|
require 'zernio-sdk/models/get_tik_tok_creator_info200_response_creator'
|
|
648
650
|
require 'zernio-sdk/models/get_tik_tok_creator_info200_response_posting_limits'
|
|
649
651
|
require 'zernio-sdk/models/get_tik_tok_creator_info200_response_privacy_levels_inner'
|
|
652
|
+
require 'zernio-sdk/models/get_tracking_tag200_response'
|
|
650
653
|
require 'zernio-sdk/models/get_tracking_tag_stats200_response'
|
|
651
654
|
require 'zernio-sdk/models/get_tracking_tag_stats200_response_stats'
|
|
652
655
|
require 'zernio-sdk/models/get_usage200_response'
|