late-sdk 0.0.900 → 0.0.902
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 +60 -6
- data/docs/AdAccountsApi.md +657 -19
- data/docs/AdCampaignsApi.md +521 -9
- data/docs/AdCreative.md +6 -0
- data/docs/AddAccountCalloutsRequest.md +3 -3
- data/docs/AddAccountSitelinks201Response.md +20 -0
- data/docs/AddAccountSitelinks201ResponseSitelinksInner.md +26 -0
- data/docs/AddAccountSitelinksRequest.md +22 -0
- data/docs/AddAccountStructuredSnippets201Response.md +20 -0
- data/docs/AddAccountStructuredSnippets201ResponseStructuredSnippetsInner.md +22 -0
- data/docs/AddAccountStructuredSnippetsRequest.md +22 -0
- data/docs/AttachAdGroupAssets201Response.md +24 -0
- data/docs/AttachCampaignAssetsRequest.md +4 -4
- data/docs/CreateStandaloneAdRequest.md +4 -4
- data/docs/CreateStandaloneAdRequestAdditionalDescriptionsInner.md +49 -0
- data/docs/CreateStandaloneAdRequestAdditionalHeadlinesInner.md +49 -0
- data/docs/GetAd200Response.md +5 -1
- data/docs/GoogleAssetUpdate.md +26 -0
- data/docs/GoogleRsaDescription.md +20 -0
- data/docs/GoogleRsaHeadline.md +20 -0
- data/docs/{AttachCampaignAssetsRequestSitelinksInner.md → GoogleSitelink.md} +2 -2
- data/docs/{AttachCampaignAssetsRequestStructuredSnippetsInner.md → GoogleStructuredSnippet.md} +2 -2
- data/docs/ListAccountCallouts200Response.md +2 -2
- data/docs/ListAccountCallouts200ResponseCalloutsInner.md +3 -3
- data/docs/ListAccountSitelinks200Response.md +24 -0
- data/docs/ListAccountSitelinks200ResponseSitelinksInner.md +32 -0
- data/docs/ListAccountStructuredSnippets200Response.md +24 -0
- data/docs/ListAccountStructuredSnippets200ResponseStructuredSnippetsInner.md +28 -0
- data/docs/ListAdGroupAssets200Response.md +28 -0
- data/docs/ListAdGroupAssets200ResponseCalloutsInner.md +22 -0
- data/docs/ListAdGroupAssets200ResponseSitelinksInner.md +28 -0
- data/docs/ListAdGroupAssets200ResponseStructuredSnippetsInner.md +24 -0
- data/docs/ListCampaignAssets200Response.md +28 -0
- data/docs/ListCampaignAssets200ResponseCalloutsInner.md +22 -0
- data/docs/ListCampaignAssets200ResponseSitelinksInner.md +28 -0
- data/docs/ListCampaignAssets200ResponseStructuredSnippetsInner.md +24 -0
- data/docs/RemoveAccountCalloutRequest.md +3 -3
- data/docs/RemoveAdGroupAssetsRequest.md +24 -0
- data/docs/RemoveCampaignAssets200Response.md +18 -0
- data/docs/RemoveCampaignAssetsRequest.md +24 -0
- data/docs/UpdateAccountCallouts200Response.md +20 -0
- data/docs/UpdateAccountCalloutsRequest.md +22 -0
- data/docs/UpdateAccountCalloutsRequestUpdatesInner.md +20 -0
- data/docs/UpdateAccountCalloutsRequestUpdatesInnerCalloutAsset.md +18 -0
- data/docs/UpdateAccountSitelinksRequest.md +22 -0
- data/docs/UpdateAccountSitelinksRequestUpdatesInner.md +22 -0
- data/docs/UpdateAccountSitelinksRequestUpdatesInnerSitelinkAsset.md +24 -0
- data/docs/UpdateAccountStructuredSnippetsRequest.md +22 -0
- data/docs/UpdateAccountStructuredSnippetsRequestUpdatesInner.md +20 -0
- data/docs/UpdateAdRequest.md +6 -0
- data/docs/UpdateCampaignAssets200Response.md +18 -0
- data/docs/UpdateCampaignAssetsRequest.md +22 -0
- data/docs/WebhookEventsApi.md +2 -2
- data/lib/zernio-sdk/api/ad_accounts_api.rb +656 -16
- data/lib/zernio-sdk/api/ad_campaigns_api.rb +586 -10
- data/lib/zernio-sdk/api/webhook_events_api.rb +4 -4
- data/lib/zernio-sdk/models/ad_creative.rb +112 -1
- data/lib/zernio-sdk/models/add_account_callouts_request.rb +34 -3
- data/lib/zernio-sdk/models/add_account_sitelinks201_response.rb +158 -0
- data/lib/zernio-sdk/models/add_account_sitelinks201_response_sitelinks_inner.rb +267 -0
- data/lib/zernio-sdk/models/add_account_sitelinks_request.rb +253 -0
- data/lib/zernio-sdk/models/add_account_structured_snippets201_response.rb +158 -0
- data/lib/zernio-sdk/models/add_account_structured_snippets201_response_structured_snippets_inner.rb +229 -0
- data/lib/zernio-sdk/models/add_account_structured_snippets_request.rb +253 -0
- data/lib/zernio-sdk/models/attach_ad_group_assets201_response.rb +180 -0
- data/lib/zernio-sdk/models/attach_campaign_assets_request.rb +37 -5
- data/lib/zernio-sdk/models/create_standalone_ad_request.rb +4 -4
- data/lib/zernio-sdk/models/create_standalone_ad_request_additional_descriptions_inner.rb +104 -0
- data/lib/zernio-sdk/models/create_standalone_ad_request_additional_headlines_inner.rb +104 -0
- data/lib/zernio-sdk/models/get_ad200_response.rb +25 -4
- data/lib/zernio-sdk/models/google_asset_update.rb +234 -0
- data/lib/zernio-sdk/models/google_rsa_description.rb +226 -0
- data/lib/zernio-sdk/models/google_rsa_headline.rb +226 -0
- data/lib/zernio-sdk/models/{attach_campaign_assets_request_sitelinks_inner.rb → google_sitelink.rb} +3 -3
- data/lib/zernio-sdk/models/{attach_campaign_assets_request_structured_snippets_inner.rb → google_structured_snippet.rb} +3 -3
- data/lib/zernio-sdk/models/list_account_callouts200_response.rb +2 -2
- data/lib/zernio-sdk/models/list_account_callouts200_response_callouts_inner.rb +13 -14
- data/lib/zernio-sdk/models/list_account_sitelinks200_response.rb +179 -0
- data/lib/zernio-sdk/models/list_account_sitelinks200_response_sitelinks_inner.rb +210 -0
- data/lib/zernio-sdk/models/list_account_structured_snippets200_response.rb +179 -0
- data/lib/zernio-sdk/models/list_account_structured_snippets200_response_structured_snippets_inner.rb +194 -0
- data/lib/zernio-sdk/models/list_ad_group_assets200_response.rb +201 -0
- data/lib/zernio-sdk/models/list_ad_group_assets200_response_callouts_inner.rb +165 -0
- data/lib/zernio-sdk/models/list_ad_group_assets200_response_sitelinks_inner.rb +192 -0
- data/lib/zernio-sdk/models/list_ad_group_assets200_response_structured_snippets_inner.rb +176 -0
- data/lib/zernio-sdk/models/list_campaign_assets200_response.rb +201 -0
- data/lib/zernio-sdk/models/list_campaign_assets200_response_callouts_inner.rb +165 -0
- data/lib/zernio-sdk/models/list_campaign_assets200_response_sitelinks_inner.rb +192 -0
- data/lib/zernio-sdk/models/list_campaign_assets200_response_structured_snippets_inner.rb +176 -0
- data/lib/zernio-sdk/models/remove_account_callout_request.rb +45 -3
- data/lib/zernio-sdk/models/remove_ad_group_assets_request.rb +281 -0
- data/lib/zernio-sdk/models/remove_campaign_assets200_response.rb +147 -0
- data/lib/zernio-sdk/models/remove_campaign_assets_request.rb +281 -0
- data/lib/zernio-sdk/models/update_account_callouts200_response.rb +156 -0
- data/lib/zernio-sdk/models/update_account_callouts_request.rb +253 -0
- data/lib/zernio-sdk/models/update_account_callouts_request_updates_inner.rb +186 -0
- data/lib/zernio-sdk/models/update_account_callouts_request_updates_inner_callout_asset.rb +182 -0
- data/lib/zernio-sdk/models/update_account_sitelinks_request.rb +253 -0
- data/lib/zernio-sdk/models/update_account_sitelinks_request_updates_inner.rb +216 -0
- data/lib/zernio-sdk/models/update_account_sitelinks_request_updates_inner_sitelink_asset.rb +241 -0
- data/lib/zernio-sdk/models/update_account_structured_snippets_request.rb +253 -0
- data/lib/zernio-sdk/models/update_account_structured_snippets_request_updates_inner.rb +186 -0
- data/lib/zernio-sdk/models/update_ad_request.rb +112 -1
- data/lib/zernio-sdk/models/update_campaign_assets200_response.rb +147 -0
- data/lib/zernio-sdk/models/update_campaign_assets_request.rb +253 -0
- data/lib/zernio-sdk/models/webhook_payload_post_platform.rb +1 -1
- data/lib/zernio-sdk/version.rb +1 -1
- data/lib/zernio-sdk.rb +40 -2
- data/openapi.yaml +2027 -329
- data/spec/api/ad_accounts_api_spec.rb +118 -8
- data/spec/api/ad_campaigns_api_spec.rb +98 -5
- data/spec/models/ad_creative_spec.rb +18 -0
- data/spec/models/add_account_sitelinks201_response_sitelinks_inner_spec.rb +60 -0
- data/spec/models/add_account_sitelinks201_response_spec.rb +42 -0
- data/spec/models/add_account_sitelinks_request_spec.rb +48 -0
- data/spec/models/add_account_structured_snippets201_response_spec.rb +42 -0
- data/spec/models/add_account_structured_snippets201_response_structured_snippets_inner_spec.rb +52 -0
- data/spec/models/add_account_structured_snippets_request_spec.rb +48 -0
- data/spec/models/attach_ad_group_assets201_response_spec.rb +54 -0
- data/spec/models/create_standalone_ad_request_additional_descriptions_inner_spec.rb +32 -0
- data/spec/models/create_standalone_ad_request_additional_headlines_inner_spec.rb +32 -0
- data/spec/models/get_ad200_response_spec.rb +12 -0
- data/spec/models/google_asset_update_spec.rb +60 -0
- data/spec/models/google_rsa_description_spec.rb +46 -0
- data/spec/models/google_rsa_headline_spec.rb +46 -0
- data/spec/models/{attach_campaign_assets_request_sitelinks_inner_spec.rb → google_sitelink_spec.rb} +6 -6
- data/spec/models/{attach_campaign_assets_request_structured_snippets_inner_spec.rb → google_structured_snippet_spec.rb} +6 -6
- data/spec/models/list_account_callouts200_response_callouts_inner_spec.rb +2 -2
- data/spec/models/list_account_sitelinks200_response_sitelinks_inner_spec.rb +78 -0
- data/spec/models/list_account_sitelinks200_response_spec.rb +54 -0
- data/spec/models/list_account_structured_snippets200_response_spec.rb +54 -0
- data/spec/models/list_account_structured_snippets200_response_structured_snippets_inner_spec.rb +66 -0
- data/spec/models/list_ad_group_assets200_response_callouts_inner_spec.rb +48 -0
- data/spec/models/list_ad_group_assets200_response_sitelinks_inner_spec.rb +66 -0
- data/spec/models/list_ad_group_assets200_response_spec.rb +66 -0
- data/spec/models/list_ad_group_assets200_response_structured_snippets_inner_spec.rb +54 -0
- data/spec/models/list_campaign_assets200_response_callouts_inner_spec.rb +48 -0
- data/spec/models/list_campaign_assets200_response_sitelinks_inner_spec.rb +66 -0
- data/spec/models/list_campaign_assets200_response_spec.rb +66 -0
- data/spec/models/list_campaign_assets200_response_structured_snippets_inner_spec.rb +54 -0
- data/spec/models/remove_ad_group_assets_request_spec.rb +54 -0
- data/spec/models/remove_campaign_assets200_response_spec.rb +36 -0
- data/spec/models/remove_campaign_assets_request_spec.rb +54 -0
- data/spec/models/update_account_callouts200_response_spec.rb +42 -0
- data/spec/models/update_account_callouts_request_spec.rb +48 -0
- data/spec/models/update_account_callouts_request_updates_inner_callout_asset_spec.rb +36 -0
- data/spec/models/update_account_callouts_request_updates_inner_spec.rb +42 -0
- data/spec/models/update_account_sitelinks_request_spec.rb +48 -0
- data/spec/models/update_account_sitelinks_request_updates_inner_sitelink_asset_spec.rb +54 -0
- data/spec/models/update_account_sitelinks_request_updates_inner_spec.rb +48 -0
- data/spec/models/update_account_structured_snippets_request_spec.rb +48 -0
- data/spec/models/update_account_structured_snippets_request_updates_inner_spec.rb +42 -0
- data/spec/models/update_ad_request_spec.rb +18 -0
- data/spec/models/update_campaign_assets200_response_spec.rb +36 -0
- data/spec/models/update_campaign_assets_request_spec.rb +48 -0
- data/zernio-sdk-0.0.902.gem +0 -0
- metadata +163 -11
- data/zernio-sdk-0.0.900.gem +0 -0
|
@@ -0,0 +1,147 @@
|
|
|
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 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module Zernio
|
|
17
|
+
class UpdateCampaignAssets200Response < ApiModelBase
|
|
18
|
+
attr_accessor :updated
|
|
19
|
+
|
|
20
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
21
|
+
def self.attribute_map
|
|
22
|
+
{
|
|
23
|
+
:'updated' => :'updated'
|
|
24
|
+
}
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
# Returns attribute mapping this model knows about
|
|
28
|
+
def self.acceptable_attribute_map
|
|
29
|
+
attribute_map
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
# Returns all the JSON keys this model knows about
|
|
33
|
+
def self.acceptable_attributes
|
|
34
|
+
acceptable_attribute_map.values
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
# Attribute type mapping.
|
|
38
|
+
def self.openapi_types
|
|
39
|
+
{
|
|
40
|
+
:'updated' => :'Integer'
|
|
41
|
+
}
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
# List of attributes with nullable: true
|
|
45
|
+
def self.openapi_nullable
|
|
46
|
+
Set.new([
|
|
47
|
+
])
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
# Initializes the object
|
|
51
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
52
|
+
def initialize(attributes = {})
|
|
53
|
+
if (!attributes.is_a?(Hash))
|
|
54
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Zernio::UpdateCampaignAssets200Response` initialize method"
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
58
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
59
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
60
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
61
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Zernio::UpdateCampaignAssets200Response`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
62
|
+
end
|
|
63
|
+
h[k.to_sym] = v
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
if attributes.key?(:'updated')
|
|
67
|
+
self.updated = attributes[:'updated']
|
|
68
|
+
end
|
|
69
|
+
end
|
|
70
|
+
|
|
71
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
72
|
+
# @return Array for valid properties with the reasons
|
|
73
|
+
def list_invalid_properties
|
|
74
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
75
|
+
invalid_properties = Array.new
|
|
76
|
+
invalid_properties
|
|
77
|
+
end
|
|
78
|
+
|
|
79
|
+
# Check to see if the all the properties in the model are valid
|
|
80
|
+
# @return true if the model is valid
|
|
81
|
+
def valid?
|
|
82
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
83
|
+
true
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
# Checks equality by comparing each attribute.
|
|
87
|
+
# @param [Object] Object to be compared
|
|
88
|
+
def ==(o)
|
|
89
|
+
return true if self.equal?(o)
|
|
90
|
+
self.class == o.class &&
|
|
91
|
+
updated == o.updated
|
|
92
|
+
end
|
|
93
|
+
|
|
94
|
+
# @see the `==` method
|
|
95
|
+
# @param [Object] Object to be compared
|
|
96
|
+
def eql?(o)
|
|
97
|
+
self == o
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
# Calculates hash code according to all attributes.
|
|
101
|
+
# @return [Integer] Hash code
|
|
102
|
+
def hash
|
|
103
|
+
[updated].hash
|
|
104
|
+
end
|
|
105
|
+
|
|
106
|
+
# Builds the object from hash
|
|
107
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
108
|
+
# @return [Object] Returns the model itself
|
|
109
|
+
def self.build_from_hash(attributes)
|
|
110
|
+
return nil unless attributes.is_a?(Hash)
|
|
111
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
112
|
+
transformed_hash = {}
|
|
113
|
+
openapi_types.each_pair do |key, type|
|
|
114
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
115
|
+
transformed_hash["#{key}"] = nil
|
|
116
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
117
|
+
# check to ensure the input is an array given that the attribute
|
|
118
|
+
# is documented as an array but the input is not
|
|
119
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
120
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
121
|
+
end
|
|
122
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
123
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
124
|
+
end
|
|
125
|
+
end
|
|
126
|
+
new(transformed_hash)
|
|
127
|
+
end
|
|
128
|
+
|
|
129
|
+
# Returns the object in the form of hash
|
|
130
|
+
# @return [Hash] Returns the object in the form of hash
|
|
131
|
+
def to_hash
|
|
132
|
+
hash = {}
|
|
133
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
134
|
+
value = self.send(attr)
|
|
135
|
+
if value.nil?
|
|
136
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
137
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
138
|
+
end
|
|
139
|
+
|
|
140
|
+
hash[param] = _to_hash(value)
|
|
141
|
+
end
|
|
142
|
+
hash
|
|
143
|
+
end
|
|
144
|
+
|
|
145
|
+
end
|
|
146
|
+
|
|
147
|
+
end
|
|
@@ -0,0 +1,253 @@
|
|
|
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 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module Zernio
|
|
17
|
+
class UpdateCampaignAssetsRequest < ApiModelBase
|
|
18
|
+
# Zernio Google Ads connection id.
|
|
19
|
+
attr_accessor :account_id
|
|
20
|
+
|
|
21
|
+
# Google customer id without dashes. Required when the connection has multiple customers.
|
|
22
|
+
attr_accessor :customer_id
|
|
23
|
+
|
|
24
|
+
attr_accessor :updates
|
|
25
|
+
|
|
26
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
27
|
+
def self.attribute_map
|
|
28
|
+
{
|
|
29
|
+
:'account_id' => :'accountId',
|
|
30
|
+
:'customer_id' => :'customerId',
|
|
31
|
+
:'updates' => :'updates'
|
|
32
|
+
}
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# Returns attribute mapping this model knows about
|
|
36
|
+
def self.acceptable_attribute_map
|
|
37
|
+
attribute_map
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
# Returns all the JSON keys this model knows about
|
|
41
|
+
def self.acceptable_attributes
|
|
42
|
+
acceptable_attribute_map.values
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
# Attribute type mapping.
|
|
46
|
+
def self.openapi_types
|
|
47
|
+
{
|
|
48
|
+
:'account_id' => :'String',
|
|
49
|
+
:'customer_id' => :'String',
|
|
50
|
+
:'updates' => :'Array<GoogleAssetUpdate>'
|
|
51
|
+
}
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
# List of attributes with nullable: true
|
|
55
|
+
def self.openapi_nullable
|
|
56
|
+
Set.new([
|
|
57
|
+
])
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
# Initializes the object
|
|
61
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
62
|
+
def initialize(attributes = {})
|
|
63
|
+
if (!attributes.is_a?(Hash))
|
|
64
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Zernio::UpdateCampaignAssetsRequest` initialize method"
|
|
65
|
+
end
|
|
66
|
+
|
|
67
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
68
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
69
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
70
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
71
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Zernio::UpdateCampaignAssetsRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
72
|
+
end
|
|
73
|
+
h[k.to_sym] = v
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
if attributes.key?(:'account_id')
|
|
77
|
+
self.account_id = attributes[:'account_id']
|
|
78
|
+
else
|
|
79
|
+
self.account_id = nil
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
if attributes.key?(:'customer_id')
|
|
83
|
+
self.customer_id = attributes[:'customer_id']
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
if attributes.key?(:'updates')
|
|
87
|
+
if (value = attributes[:'updates']).is_a?(Array)
|
|
88
|
+
self.updates = value
|
|
89
|
+
end
|
|
90
|
+
else
|
|
91
|
+
self.updates = nil
|
|
92
|
+
end
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
96
|
+
# @return Array for valid properties with the reasons
|
|
97
|
+
def list_invalid_properties
|
|
98
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
99
|
+
invalid_properties = Array.new
|
|
100
|
+
if @account_id.nil?
|
|
101
|
+
invalid_properties.push('invalid value for "account_id", account_id cannot be nil.')
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
pattern = Regexp.new(/^[a-fA-F0-9]{24}$/)
|
|
105
|
+
if @account_id !~ pattern
|
|
106
|
+
invalid_properties.push("invalid value for \"account_id\", must conform to the pattern #{pattern}.")
|
|
107
|
+
end
|
|
108
|
+
|
|
109
|
+
pattern = Regexp.new(/^\d+$/)
|
|
110
|
+
if !@customer_id.nil? && @customer_id !~ pattern
|
|
111
|
+
invalid_properties.push("invalid value for \"customer_id\", must conform to the pattern #{pattern}.")
|
|
112
|
+
end
|
|
113
|
+
|
|
114
|
+
if @updates.nil?
|
|
115
|
+
invalid_properties.push('invalid value for "updates", updates cannot be nil.')
|
|
116
|
+
end
|
|
117
|
+
|
|
118
|
+
if @updates.length > 20
|
|
119
|
+
invalid_properties.push('invalid value for "updates", number of items must be less than or equal to 20.')
|
|
120
|
+
end
|
|
121
|
+
|
|
122
|
+
if @updates.length < 1
|
|
123
|
+
invalid_properties.push('invalid value for "updates", number of items must be greater than or equal to 1.')
|
|
124
|
+
end
|
|
125
|
+
|
|
126
|
+
invalid_properties
|
|
127
|
+
end
|
|
128
|
+
|
|
129
|
+
# Check to see if the all the properties in the model are valid
|
|
130
|
+
# @return true if the model is valid
|
|
131
|
+
def valid?
|
|
132
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
133
|
+
return false if @account_id.nil?
|
|
134
|
+
return false if @account_id !~ Regexp.new(/^[a-fA-F0-9]{24}$/)
|
|
135
|
+
return false if !@customer_id.nil? && @customer_id !~ Regexp.new(/^\d+$/)
|
|
136
|
+
return false if @updates.nil?
|
|
137
|
+
return false if @updates.length > 20
|
|
138
|
+
return false if @updates.length < 1
|
|
139
|
+
true
|
|
140
|
+
end
|
|
141
|
+
|
|
142
|
+
# Custom attribute writer method with validation
|
|
143
|
+
# @param [Object] account_id Value to be assigned
|
|
144
|
+
def account_id=(account_id)
|
|
145
|
+
if account_id.nil?
|
|
146
|
+
fail ArgumentError, 'account_id cannot be nil'
|
|
147
|
+
end
|
|
148
|
+
|
|
149
|
+
pattern = Regexp.new(/^[a-fA-F0-9]{24}$/)
|
|
150
|
+
if account_id !~ pattern
|
|
151
|
+
fail ArgumentError, "invalid value for \"account_id\", must conform to the pattern #{pattern}."
|
|
152
|
+
end
|
|
153
|
+
|
|
154
|
+
@account_id = account_id
|
|
155
|
+
end
|
|
156
|
+
|
|
157
|
+
# Custom attribute writer method with validation
|
|
158
|
+
# @param [Object] customer_id Value to be assigned
|
|
159
|
+
def customer_id=(customer_id)
|
|
160
|
+
if customer_id.nil?
|
|
161
|
+
fail ArgumentError, 'customer_id cannot be nil'
|
|
162
|
+
end
|
|
163
|
+
|
|
164
|
+
pattern = Regexp.new(/^\d+$/)
|
|
165
|
+
if customer_id !~ pattern
|
|
166
|
+
fail ArgumentError, "invalid value for \"customer_id\", must conform to the pattern #{pattern}."
|
|
167
|
+
end
|
|
168
|
+
|
|
169
|
+
@customer_id = customer_id
|
|
170
|
+
end
|
|
171
|
+
|
|
172
|
+
# Custom attribute writer method with validation
|
|
173
|
+
# @param [Object] updates Value to be assigned
|
|
174
|
+
def updates=(updates)
|
|
175
|
+
if updates.nil?
|
|
176
|
+
fail ArgumentError, 'updates cannot be nil'
|
|
177
|
+
end
|
|
178
|
+
|
|
179
|
+
if updates.length > 20
|
|
180
|
+
fail ArgumentError, 'invalid value for "updates", number of items must be less than or equal to 20.'
|
|
181
|
+
end
|
|
182
|
+
|
|
183
|
+
if updates.length < 1
|
|
184
|
+
fail ArgumentError, 'invalid value for "updates", number of items must be greater than or equal to 1.'
|
|
185
|
+
end
|
|
186
|
+
|
|
187
|
+
@updates = updates
|
|
188
|
+
end
|
|
189
|
+
|
|
190
|
+
# Checks equality by comparing each attribute.
|
|
191
|
+
# @param [Object] Object to be compared
|
|
192
|
+
def ==(o)
|
|
193
|
+
return true if self.equal?(o)
|
|
194
|
+
self.class == o.class &&
|
|
195
|
+
account_id == o.account_id &&
|
|
196
|
+
customer_id == o.customer_id &&
|
|
197
|
+
updates == o.updates
|
|
198
|
+
end
|
|
199
|
+
|
|
200
|
+
# @see the `==` method
|
|
201
|
+
# @param [Object] Object to be compared
|
|
202
|
+
def eql?(o)
|
|
203
|
+
self == o
|
|
204
|
+
end
|
|
205
|
+
|
|
206
|
+
# Calculates hash code according to all attributes.
|
|
207
|
+
# @return [Integer] Hash code
|
|
208
|
+
def hash
|
|
209
|
+
[account_id, customer_id, updates].hash
|
|
210
|
+
end
|
|
211
|
+
|
|
212
|
+
# Builds the object from hash
|
|
213
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
214
|
+
# @return [Object] Returns the model itself
|
|
215
|
+
def self.build_from_hash(attributes)
|
|
216
|
+
return nil unless attributes.is_a?(Hash)
|
|
217
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
218
|
+
transformed_hash = {}
|
|
219
|
+
openapi_types.each_pair do |key, type|
|
|
220
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
221
|
+
transformed_hash["#{key}"] = nil
|
|
222
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
223
|
+
# check to ensure the input is an array given that the attribute
|
|
224
|
+
# is documented as an array but the input is not
|
|
225
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
226
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
227
|
+
end
|
|
228
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
229
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
230
|
+
end
|
|
231
|
+
end
|
|
232
|
+
new(transformed_hash)
|
|
233
|
+
end
|
|
234
|
+
|
|
235
|
+
# Returns the object in the form of hash
|
|
236
|
+
# @return [Hash] Returns the object in the form of hash
|
|
237
|
+
def to_hash
|
|
238
|
+
hash = {}
|
|
239
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
240
|
+
value = self.send(attr)
|
|
241
|
+
if value.nil?
|
|
242
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
243
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
244
|
+
end
|
|
245
|
+
|
|
246
|
+
hash[param] = _to_hash(value)
|
|
247
|
+
end
|
|
248
|
+
hash
|
|
249
|
+
end
|
|
250
|
+
|
|
251
|
+
end
|
|
252
|
+
|
|
253
|
+
end
|
|
@@ -14,7 +14,7 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module Zernio
|
|
17
|
-
# Webhook payload for the per-platform terminal events `post.platform.published` and `post.platform.failed`, for `post.platform.deleted` (same shape, fired when Zernio's background sync detects that a platform target published through Zernio was later deleted on the platform; poll-driven ~hourly, not real-time), and for `post.tiktok.url_resolved` (same shape, fired when a published TikTok post's public URL is backfilled). Terminal events fire once per platform target inside a post as that platform reaches a terminal state (published or permanent failure). The `post` envelope mirrors the shape of `WebhookPayloadPost` so consumers can reuse rendering logic; the `platform` block identifies which specific platform transitioned; the `account` block identifies the connected account behind that platform-write.
|
|
17
|
+
# Webhook payload for the per-platform terminal events `post.platform.published` and `post.platform.failed`, for `post.platform.deleted` (same shape, fired when Zernio's background sync detects that a platform target published through Zernio was later deleted on the platform; poll-driven ~hourly, not real-time), and for `post.tiktok.url_resolved` (same shape, fired when a published TikTok post's public URL is backfilled). Terminal events fire once per platform target inside a post as that platform reaches a terminal state (published or permanent failure), except that a target which later fails background reconciliation emits `post.platform.failed` a second time, after its own `post.platform.published`. The `post` envelope mirrors the shape of `WebhookPayloadPost` so consumers can reuse rendering logic; the `platform` block identifies which specific platform transitioned; the `account` block identifies the connected account behind that platform-write.
|
|
18
18
|
class WebhookPayloadPostPlatform < ApiModelBase
|
|
19
19
|
# Stable webhook event ID.
|
|
20
20
|
attr_accessor :id
|
data/lib/zernio-sdk/version.rb
CHANGED
data/lib/zernio-sdk.rb
CHANGED
|
@@ -58,6 +58,12 @@ require 'zernio-sdk/models/ad_tree_response'
|
|
|
58
58
|
require 'zernio-sdk/models/add_account_callouts201_response'
|
|
59
59
|
require 'zernio-sdk/models/add_account_callouts201_response_callouts_inner'
|
|
60
60
|
require 'zernio-sdk/models/add_account_callouts_request'
|
|
61
|
+
require 'zernio-sdk/models/add_account_sitelinks201_response'
|
|
62
|
+
require 'zernio-sdk/models/add_account_sitelinks201_response_sitelinks_inner'
|
|
63
|
+
require 'zernio-sdk/models/add_account_sitelinks_request'
|
|
64
|
+
require 'zernio-sdk/models/add_account_structured_snippets201_response'
|
|
65
|
+
require 'zernio-sdk/models/add_account_structured_snippets201_response_structured_snippets_inner'
|
|
66
|
+
require 'zernio-sdk/models/add_account_structured_snippets_request'
|
|
61
67
|
require 'zernio-sdk/models/add_ad_keywords201_response'
|
|
62
68
|
require 'zernio-sdk/models/add_ad_keywords_request'
|
|
63
69
|
require 'zernio-sdk/models/add_ad_keywords_request_keywords_inner'
|
|
@@ -104,10 +110,9 @@ require 'zernio-sdk/models/archive_lead_form200_response'
|
|
|
104
110
|
require 'zernio-sdk/models/assign_google_business_location200_response'
|
|
105
111
|
require 'zernio-sdk/models/assign_google_business_location200_response_account'
|
|
106
112
|
require 'zernio-sdk/models/assign_google_business_location_request'
|
|
113
|
+
require 'zernio-sdk/models/attach_ad_group_assets201_response'
|
|
107
114
|
require 'zernio-sdk/models/attach_campaign_assets201_response'
|
|
108
115
|
require 'zernio-sdk/models/attach_campaign_assets_request'
|
|
109
|
-
require 'zernio-sdk/models/attach_campaign_assets_request_sitelinks_inner'
|
|
110
|
-
require 'zernio-sdk/models/attach_campaign_assets_request_structured_snippets_inner'
|
|
111
116
|
require 'zernio-sdk/models/attach_number_to_sip_trunk200_response'
|
|
112
117
|
require 'zernio-sdk/models/attach_number_to_sip_trunk_request'
|
|
113
118
|
require 'zernio-sdk/models/batch_get_google_business_reviews200_response'
|
|
@@ -382,6 +387,8 @@ require 'zernio-sdk/models/create_standalone_ad201_response'
|
|
|
382
387
|
require 'zernio-sdk/models/create_standalone_ad201_response_one_of'
|
|
383
388
|
require 'zernio-sdk/models/create_standalone_ad201_response_one_of1'
|
|
384
389
|
require 'zernio-sdk/models/create_standalone_ad_request'
|
|
390
|
+
require 'zernio-sdk/models/create_standalone_ad_request_additional_descriptions_inner'
|
|
391
|
+
require 'zernio-sdk/models/create_standalone_ad_request_additional_headlines_inner'
|
|
385
392
|
require 'zernio-sdk/models/create_standalone_ad_request_attribution_spec_inner'
|
|
386
393
|
require 'zernio-sdk/models/create_standalone_ad_request_behaviors_inner'
|
|
387
394
|
require 'zernio-sdk/models/create_standalone_ad_request_brand_identity'
|
|
@@ -905,6 +912,7 @@ require 'zernio-sdk/models/get_youtube_captions200_response_available_tracks_inn
|
|
|
905
912
|
require 'zernio-sdk/models/get_youtube_captions200_response_cues_inner'
|
|
906
913
|
require 'zernio-sdk/models/get_youtube_playlists200_response'
|
|
907
914
|
require 'zernio-sdk/models/get_youtube_playlists200_response_playlists_inner'
|
|
915
|
+
require 'zernio-sdk/models/google_asset_update'
|
|
908
916
|
require 'zernio-sdk/models/google_business_platform_data'
|
|
909
917
|
require 'zernio-sdk/models/google_business_platform_data_call_to_action'
|
|
910
918
|
require 'zernio-sdk/models/google_business_platform_data_event'
|
|
@@ -917,6 +925,10 @@ require 'zernio-sdk/models/google_business_platform_data_offer'
|
|
|
917
925
|
require 'zernio-sdk/models/google_business_review'
|
|
918
926
|
require 'zernio-sdk/models/google_business_review_review_reply'
|
|
919
927
|
require 'zernio-sdk/models/google_business_review_reviewer'
|
|
928
|
+
require 'zernio-sdk/models/google_rsa_description'
|
|
929
|
+
require 'zernio-sdk/models/google_rsa_headline'
|
|
930
|
+
require 'zernio-sdk/models/google_sitelink'
|
|
931
|
+
require 'zernio-sdk/models/google_structured_snippet'
|
|
920
932
|
require 'zernio-sdk/models/handle_o_auth_callback_request'
|
|
921
933
|
require 'zernio-sdk/models/hide_ad_comment200_response'
|
|
922
934
|
require 'zernio-sdk/models/hide_ad_comment_request'
|
|
@@ -995,6 +1007,10 @@ require 'zernio-sdk/models/list_account_callouts200_response'
|
|
|
995
1007
|
require 'zernio-sdk/models/list_account_callouts200_response_callouts_inner'
|
|
996
1008
|
require 'zernio-sdk/models/list_account_groups200_response'
|
|
997
1009
|
require 'zernio-sdk/models/list_account_groups200_response_groups_inner'
|
|
1010
|
+
require 'zernio-sdk/models/list_account_sitelinks200_response'
|
|
1011
|
+
require 'zernio-sdk/models/list_account_sitelinks200_response_sitelinks_inner'
|
|
1012
|
+
require 'zernio-sdk/models/list_account_structured_snippets200_response'
|
|
1013
|
+
require 'zernio-sdk/models/list_account_structured_snippets200_response_structured_snippets_inner'
|
|
998
1014
|
require 'zernio-sdk/models/list_ad_accounts200_response'
|
|
999
1015
|
require 'zernio-sdk/models/list_ad_accounts200_response_accounts_inner'
|
|
1000
1016
|
require 'zernio-sdk/models/list_ad_audiences200_response'
|
|
@@ -1005,6 +1021,10 @@ require 'zernio-sdk/models/list_ad_catalog_product_sets200_response_product_sets
|
|
|
1005
1021
|
require 'zernio-sdk/models/list_ad_catalogs200_response'
|
|
1006
1022
|
require 'zernio-sdk/models/list_ad_catalogs200_response_catalogs_inner'
|
|
1007
1023
|
require 'zernio-sdk/models/list_ad_creatives200_response'
|
|
1024
|
+
require 'zernio-sdk/models/list_ad_group_assets200_response'
|
|
1025
|
+
require 'zernio-sdk/models/list_ad_group_assets200_response_callouts_inner'
|
|
1026
|
+
require 'zernio-sdk/models/list_ad_group_assets200_response_sitelinks_inner'
|
|
1027
|
+
require 'zernio-sdk/models/list_ad_group_assets200_response_structured_snippets_inner'
|
|
1008
1028
|
require 'zernio-sdk/models/list_ad_images200_response'
|
|
1009
1029
|
require 'zernio-sdk/models/list_ad_keywords200_response'
|
|
1010
1030
|
require 'zernio-sdk/models/list_ad_labels200_response'
|
|
@@ -1041,6 +1061,10 @@ require 'zernio-sdk/models/list_business_agent_ui_skills200_response'
|
|
|
1041
1061
|
require 'zernio-sdk/models/list_business_agent_websites200_response'
|
|
1042
1062
|
require 'zernio-sdk/models/list_calls200_response'
|
|
1043
1063
|
require 'zernio-sdk/models/list_calls200_response_calls_inner'
|
|
1064
|
+
require 'zernio-sdk/models/list_campaign_assets200_response'
|
|
1065
|
+
require 'zernio-sdk/models/list_campaign_assets200_response_callouts_inner'
|
|
1066
|
+
require 'zernio-sdk/models/list_campaign_assets200_response_sitelinks_inner'
|
|
1067
|
+
require 'zernio-sdk/models/list_campaign_assets200_response_structured_snippets_inner'
|
|
1044
1068
|
require 'zernio-sdk/models/list_campaign_negative_keywords200_response'
|
|
1045
1069
|
require 'zernio-sdk/models/list_campaign_negative_keywords200_response_keywords_inner'
|
|
1046
1070
|
require 'zernio-sdk/models/list_comment_automation_logs200_response'
|
|
@@ -1306,8 +1330,11 @@ require 'zernio-sdk/models/remediate_phone_number_request_documents_inner'
|
|
|
1306
1330
|
require 'zernio-sdk/models/remediate_phone_number_request_documents_inner_one_of'
|
|
1307
1331
|
require 'zernio-sdk/models/remove_account_callout200_response'
|
|
1308
1332
|
require 'zernio-sdk/models/remove_account_callout_request'
|
|
1333
|
+
require 'zernio-sdk/models/remove_ad_group_assets_request'
|
|
1309
1334
|
require 'zernio-sdk/models/remove_ad_keyword200_response'
|
|
1310
1335
|
require 'zernio-sdk/models/remove_bookmark200_response'
|
|
1336
|
+
require 'zernio-sdk/models/remove_campaign_assets200_response'
|
|
1337
|
+
require 'zernio-sdk/models/remove_campaign_assets_request'
|
|
1311
1338
|
require 'zernio-sdk/models/remove_conversion_associations200_response'
|
|
1312
1339
|
require 'zernio-sdk/models/remove_discord_member_role200_response'
|
|
1313
1340
|
require 'zernio-sdk/models/remove_message_reaction200_response'
|
|
@@ -1578,10 +1605,19 @@ require 'zernio-sdk/models/unpublish_post200_response'
|
|
|
1578
1605
|
require 'zernio-sdk/models/unpublish_post_request'
|
|
1579
1606
|
require 'zernio-sdk/models/update_account200_response'
|
|
1580
1607
|
require 'zernio-sdk/models/update_account200_response_x_capabilities'
|
|
1608
|
+
require 'zernio-sdk/models/update_account_callouts200_response'
|
|
1609
|
+
require 'zernio-sdk/models/update_account_callouts_request'
|
|
1610
|
+
require 'zernio-sdk/models/update_account_callouts_request_updates_inner'
|
|
1611
|
+
require 'zernio-sdk/models/update_account_callouts_request_updates_inner_callout_asset'
|
|
1581
1612
|
require 'zernio-sdk/models/update_account_group200_response'
|
|
1582
1613
|
require 'zernio-sdk/models/update_account_group_request'
|
|
1583
1614
|
require 'zernio-sdk/models/update_account_request'
|
|
1584
1615
|
require 'zernio-sdk/models/update_account_request_x_capabilities'
|
|
1616
|
+
require 'zernio-sdk/models/update_account_sitelinks_request'
|
|
1617
|
+
require 'zernio-sdk/models/update_account_sitelinks_request_updates_inner'
|
|
1618
|
+
require 'zernio-sdk/models/update_account_sitelinks_request_updates_inner_sitelink_asset'
|
|
1619
|
+
require 'zernio-sdk/models/update_account_structured_snippets_request'
|
|
1620
|
+
require 'zernio-sdk/models/update_account_structured_snippets_request_updates_inner'
|
|
1585
1621
|
require 'zernio-sdk/models/update_ad200_response'
|
|
1586
1622
|
require 'zernio-sdk/models/update_ad_account200_response'
|
|
1587
1623
|
require 'zernio-sdk/models/update_ad_account200_response_dsa_defaults'
|
|
@@ -1635,6 +1671,8 @@ require 'zernio-sdk/models/update_business_agent_settings_request'
|
|
|
1635
1671
|
require 'zernio-sdk/models/update_business_agent_settings_request_followup'
|
|
1636
1672
|
require 'zernio-sdk/models/update_business_agent_settings_request_handoff'
|
|
1637
1673
|
require 'zernio-sdk/models/update_business_agent_settings_request_rollout'
|
|
1674
|
+
require 'zernio-sdk/models/update_campaign_assets200_response'
|
|
1675
|
+
require 'zernio-sdk/models/update_campaign_assets_request'
|
|
1638
1676
|
require 'zernio-sdk/models/update_campaign_targeting200_response'
|
|
1639
1677
|
require 'zernio-sdk/models/update_campaign_targeting200_response_devices_inner'
|
|
1640
1678
|
require 'zernio-sdk/models/update_campaign_targeting200_response_languages_inner'
|