late-sdk 0.0.551 → 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 +5 -1
- data/docs/AdCampaignsApi.md +3 -3
- data/docs/BoostPostRequestTracking.md +1 -1
- data/docs/{CreateLeadFormRequestQuestionsInnerOptionsInner.md → BoostPostRequestTrackingUrlTagsInner.md} +2 -2
- 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/CreateLeadFormRequestQuestionsInner.md +1 -1
- 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/boost_post_request_tracking.rb +5 -2
- data/lib/zernio-sdk/models/{create_lead_form_request_questions_inner_options_inner.rb → boost_post_request_tracking_url_tags_inner.rb} +3 -3
- 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_lead_form_request_questions_inner.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 +4 -1
- data/openapi.yaml +173 -66
- 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/{create_lead_form_request_questions_inner_options_inner_spec.rb → boost_post_request_tracking_url_tags_inner_spec.rb} +6 -6
- 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
- data/zernio-sdk-0.0.553.gem +0 -0
- metadata +18 -6
- data/zernio-sdk-0.0.551.gem +0 -0
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Zernio API
|
|
3
|
+
|
|
4
|
+
#API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api
|
|
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 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module Zernio
|
|
17
|
+
class GetTrackingTag200Response < ApiModelBase
|
|
18
|
+
attr_accessor :platform
|
|
19
|
+
|
|
20
|
+
attr_accessor :tag
|
|
21
|
+
|
|
22
|
+
class EnumAttributeValidator
|
|
23
|
+
attr_reader :datatype
|
|
24
|
+
attr_reader :allowable_values
|
|
25
|
+
|
|
26
|
+
def initialize(datatype, allowable_values)
|
|
27
|
+
@allowable_values = allowable_values.map do |value|
|
|
28
|
+
case datatype.to_s
|
|
29
|
+
when /Integer/i
|
|
30
|
+
value.to_i
|
|
31
|
+
when /Float/i
|
|
32
|
+
value.to_f
|
|
33
|
+
else
|
|
34
|
+
value
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
def valid?(value)
|
|
40
|
+
!value || allowable_values.include?(value)
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
45
|
+
def self.attribute_map
|
|
46
|
+
{
|
|
47
|
+
:'platform' => :'platform',
|
|
48
|
+
:'tag' => :'tag'
|
|
49
|
+
}
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
# Returns attribute mapping this model knows about
|
|
53
|
+
def self.acceptable_attribute_map
|
|
54
|
+
attribute_map
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
# Returns all the JSON keys this model knows about
|
|
58
|
+
def self.acceptable_attributes
|
|
59
|
+
acceptable_attribute_map.values
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
# Attribute type mapping.
|
|
63
|
+
def self.openapi_types
|
|
64
|
+
{
|
|
65
|
+
:'platform' => :'String',
|
|
66
|
+
:'tag' => :'TrackingTag'
|
|
67
|
+
}
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
# List of attributes with nullable: true
|
|
71
|
+
def self.openapi_nullable
|
|
72
|
+
Set.new([
|
|
73
|
+
])
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
# Initializes the object
|
|
77
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
78
|
+
def initialize(attributes = {})
|
|
79
|
+
if (!attributes.is_a?(Hash))
|
|
80
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Zernio::GetTrackingTag200Response` initialize method"
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
84
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
85
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
86
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
87
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Zernio::GetTrackingTag200Response`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
88
|
+
end
|
|
89
|
+
h[k.to_sym] = v
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
if attributes.key?(:'platform')
|
|
93
|
+
self.platform = attributes[:'platform']
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
if attributes.key?(:'tag')
|
|
97
|
+
self.tag = attributes[:'tag']
|
|
98
|
+
end
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
102
|
+
# @return Array for valid properties with the reasons
|
|
103
|
+
def list_invalid_properties
|
|
104
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
105
|
+
invalid_properties = Array.new
|
|
106
|
+
invalid_properties
|
|
107
|
+
end
|
|
108
|
+
|
|
109
|
+
# Check to see if the all the properties in the model are valid
|
|
110
|
+
# @return true if the model is valid
|
|
111
|
+
def valid?
|
|
112
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
113
|
+
platform_validator = EnumAttributeValidator.new('String', ["metaads"])
|
|
114
|
+
return false unless platform_validator.valid?(@platform)
|
|
115
|
+
true
|
|
116
|
+
end
|
|
117
|
+
|
|
118
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
119
|
+
# @param [Object] platform Object to be assigned
|
|
120
|
+
def platform=(platform)
|
|
121
|
+
validator = EnumAttributeValidator.new('String', ["metaads"])
|
|
122
|
+
unless validator.valid?(platform)
|
|
123
|
+
fail ArgumentError, "invalid value for \"platform\", must be one of #{validator.allowable_values}."
|
|
124
|
+
end
|
|
125
|
+
@platform = platform
|
|
126
|
+
end
|
|
127
|
+
|
|
128
|
+
# Checks equality by comparing each attribute.
|
|
129
|
+
# @param [Object] Object to be compared
|
|
130
|
+
def ==(o)
|
|
131
|
+
return true if self.equal?(o)
|
|
132
|
+
self.class == o.class &&
|
|
133
|
+
platform == o.platform &&
|
|
134
|
+
tag == o.tag
|
|
135
|
+
end
|
|
136
|
+
|
|
137
|
+
# @see the `==` method
|
|
138
|
+
# @param [Object] Object to be compared
|
|
139
|
+
def eql?(o)
|
|
140
|
+
self == o
|
|
141
|
+
end
|
|
142
|
+
|
|
143
|
+
# Calculates hash code according to all attributes.
|
|
144
|
+
# @return [Integer] Hash code
|
|
145
|
+
def hash
|
|
146
|
+
[platform, tag].hash
|
|
147
|
+
end
|
|
148
|
+
|
|
149
|
+
# Builds the object from hash
|
|
150
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
151
|
+
# @return [Object] Returns the model itself
|
|
152
|
+
def self.build_from_hash(attributes)
|
|
153
|
+
return nil unless attributes.is_a?(Hash)
|
|
154
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
155
|
+
transformed_hash = {}
|
|
156
|
+
openapi_types.each_pair do |key, type|
|
|
157
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
158
|
+
transformed_hash["#{key}"] = nil
|
|
159
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
160
|
+
# check to ensure the input is an array given that the attribute
|
|
161
|
+
# is documented as an array but the input is not
|
|
162
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
163
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
164
|
+
end
|
|
165
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
166
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
167
|
+
end
|
|
168
|
+
end
|
|
169
|
+
new(transformed_hash)
|
|
170
|
+
end
|
|
171
|
+
|
|
172
|
+
# Returns the object in the form of hash
|
|
173
|
+
# @return [Hash] Returns the object in the form of hash
|
|
174
|
+
def to_hash
|
|
175
|
+
hash = {}
|
|
176
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
177
|
+
value = self.send(attr)
|
|
178
|
+
if value.nil?
|
|
179
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
180
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
181
|
+
end
|
|
182
|
+
|
|
183
|
+
hash[param] = _to_hash(value)
|
|
184
|
+
end
|
|
185
|
+
hash
|
|
186
|
+
end
|
|
187
|
+
|
|
188
|
+
end
|
|
189
|
+
|
|
190
|
+
end
|
|
@@ -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
|
@@ -103,6 +103,7 @@ require 'zernio-sdk/models/boost_post_request_targeting_cities_inner'
|
|
|
103
103
|
require 'zernio-sdk/models/boost_post_request_targeting_custom_locations_inner'
|
|
104
104
|
require 'zernio-sdk/models/boost_post_request_targeting_regions_inner'
|
|
105
105
|
require 'zernio-sdk/models/boost_post_request_tracking'
|
|
106
|
+
require 'zernio-sdk/models/boost_post_request_tracking_url_tags_inner'
|
|
106
107
|
require 'zernio-sdk/models/bulk_create_contacts200_response'
|
|
107
108
|
require 'zernio-sdk/models/bulk_create_contacts_request'
|
|
108
109
|
require 'zernio-sdk/models/bulk_create_contacts_request_contacts_inner'
|
|
@@ -139,6 +140,8 @@ require 'zernio-sdk/models/connect_ads200_response_one_of'
|
|
|
139
140
|
require 'zernio-sdk/models/connect_ads200_response_one_of1'
|
|
140
141
|
require 'zernio-sdk/models/connect_bluesky_credentials200_response'
|
|
141
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'
|
|
142
145
|
require 'zernio-sdk/models/connect_whats_app_credentials200_response'
|
|
143
146
|
require 'zernio-sdk/models/connect_whats_app_credentials200_response_account'
|
|
144
147
|
require 'zernio-sdk/models/connect_whats_app_credentials_request'
|
|
@@ -214,7 +217,6 @@ require 'zernio-sdk/models/create_invite_token_request'
|
|
|
214
217
|
require 'zernio-sdk/models/create_lead_form200_response'
|
|
215
218
|
require 'zernio-sdk/models/create_lead_form_request'
|
|
216
219
|
require 'zernio-sdk/models/create_lead_form_request_questions_inner'
|
|
217
|
-
require 'zernio-sdk/models/create_lead_form_request_questions_inner_options_inner'
|
|
218
220
|
require 'zernio-sdk/models/create_messaging_ad_request'
|
|
219
221
|
require 'zernio-sdk/models/create_phone_number_kyc_link200_response'
|
|
220
222
|
require 'zernio-sdk/models/create_phone_number_kyc_link_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'
|