late-sdk 0.0.793 → 0.0.795
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/AttachCampaignAssetsRequest.md +2 -0
- data/docs/ValidateApi.md +1 -1
- data/lib/zernio-sdk/api/validate_api.rb +2 -2
- data/lib/zernio-sdk/models/attach_campaign_assets_request.rb +11 -1
- data/lib/zernio-sdk/version.rb +1 -1
- data/openapi.yaml +7 -1
- data/spec/api/validate_api_spec.rb +1 -1
- data/spec/models/attach_campaign_assets_request_spec.rb +6 -0
- data/zernio-sdk-0.0.795.gem +0 -0
- metadata +2 -2
- data/zernio-sdk-0.0.793.gem +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7365e6b4c68063c3597b09739e295c6e3298e5f13f0118be6bab70bda0ce7d6d
|
|
4
|
+
data.tar.gz: 2108d16c258cb44d5d278c65263b4294c4ac74f799ea882bbb7506fe9a511f25
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1d0a20f0aa6bc86db01702b491e96cba082cfab5f938187a194ec15afd41922e451a81b2ce0968c08def57279a314c36c7ee202046b84f48703972bbdeb70d1e
|
|
7
|
+
data.tar.gz: 940b79a884d4520553acb3a2c094c439e7de09386ab9551a1adef601510f3d4f226cfd2ab3f081cbcf5fdf1e229f6388ff2b0ecc7f6dee8551bdce38a525f68e
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
| Name | Type | Description | Notes |
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
7
|
| **account_id** | **String** | Zernio Google Ads SocialAccount id — resolves the customer id + refresh token. | |
|
|
8
|
+
| **customer_id** | **String** | Numeric Google Ads customer id. Required when the connection has multiple Google Ads accounts; optional (and inferred) when it has only one. | [optional] |
|
|
8
9
|
| **sitelinks** | [**Array<AttachCampaignAssetsRequestSitelinksInner>**](AttachCampaignAssetsRequestSitelinksInner.md) | See POST /v1/ads/create sitelinks — same shape. | [optional] |
|
|
9
10
|
| **callouts** | **Array<String>** | | [optional] |
|
|
10
11
|
| **structured_snippets** | [**Array<AttachCampaignAssetsRequestStructuredSnippetsInner>**](AttachCampaignAssetsRequestStructuredSnippetsInner.md) | | [optional] |
|
|
@@ -16,6 +17,7 @@ require 'zernio-sdk'
|
|
|
16
17
|
|
|
17
18
|
instance = Zernio::AttachCampaignAssetsRequest.new(
|
|
18
19
|
account_id: null,
|
|
20
|
+
customer_id: null,
|
|
19
21
|
sitelinks: null,
|
|
20
22
|
callouts: null,
|
|
21
23
|
structured_snippets: null
|
data/docs/ValidateApi.md
CHANGED
|
@@ -154,7 +154,7 @@ end
|
|
|
154
154
|
|
|
155
155
|
Validate character count
|
|
156
156
|
|
|
157
|
-
Check weighted character count per platform and whether the text is within each platform's limit. Twitter/X uses weighted counting (URLs = 23 chars via t.co, emojis = 2 chars). All other platforms use plain character length. Returns counts and limits for all 15 supported platform variants.
|
|
157
|
+
Check weighted character count per platform and whether the text is within each platform's limit. Twitter/X uses weighted counting (URLs = 23 chars via t.co, emojis = 2 chars). All other platforms use plain character length. Returns counts and limits for all 15 supported platform variants. X (Twitter) returns two rows and this endpoint cannot tell you which one applies to you: it takes only `text`, so it never resolves an account. `twitter` (280) is the free tier limit. `twitterPremium` (25000) applies only when the target X account has a paid X subscription, and publishing enforces 280 instead for any post carrying a poll (this endpoint has no poll input, so the `twitterPremium` row always shows 25000). A free account trusting the `twitterPremium` row can pass validation here and still fail at publish time, where the account's real limit is enforced. To validate against the per-account limit, use `POST /v1/tools/validate/post` instead: it accepts an `accountId` per platform entry, resolves X Premium status, and checks the text against the limit publishing enforces, including the poll cap. A missing, foreign, or invalid `accountId` falls back to the conservative 280.
|
|
158
158
|
|
|
159
159
|
### Examples
|
|
160
160
|
|
|
@@ -156,7 +156,7 @@ module Zernio
|
|
|
156
156
|
end
|
|
157
157
|
|
|
158
158
|
# Validate character count
|
|
159
|
-
# Check weighted character count per platform and whether the text is within each platform's limit. Twitter/X uses weighted counting (URLs = 23 chars via t.co, emojis = 2 chars). All other platforms use plain character length. Returns counts and limits for all 15 supported platform variants.
|
|
159
|
+
# Check weighted character count per platform and whether the text is within each platform's limit. Twitter/X uses weighted counting (URLs = 23 chars via t.co, emojis = 2 chars). All other platforms use plain character length. Returns counts and limits for all 15 supported platform variants. X (Twitter) returns two rows and this endpoint cannot tell you which one applies to you: it takes only `text`, so it never resolves an account. `twitter` (280) is the free tier limit. `twitterPremium` (25000) applies only when the target X account has a paid X subscription, and publishing enforces 280 instead for any post carrying a poll (this endpoint has no poll input, so the `twitterPremium` row always shows 25000). A free account trusting the `twitterPremium` row can pass validation here and still fail at publish time, where the account's real limit is enforced. To validate against the per-account limit, use `POST /v1/tools/validate/post` instead: it accepts an `accountId` per platform entry, resolves X Premium status, and checks the text against the limit publishing enforces, including the poll cap. A missing, foreign, or invalid `accountId` falls back to the conservative 280.
|
|
160
160
|
# @param validate_post_length_request [ValidatePostLengthRequest]
|
|
161
161
|
# @param [Hash] opts the optional parameters
|
|
162
162
|
# @return [ValidatePostLength200Response]
|
|
@@ -166,7 +166,7 @@ module Zernio
|
|
|
166
166
|
end
|
|
167
167
|
|
|
168
168
|
# Validate character count
|
|
169
|
-
# Check weighted character count per platform and whether the text is within each platform's limit. Twitter/X uses weighted counting (URLs = 23 chars via t.co, emojis = 2 chars). All other platforms use plain character length. Returns counts and limits for all 15 supported platform variants.
|
|
169
|
+
# Check weighted character count per platform and whether the text is within each platform's limit. Twitter/X uses weighted counting (URLs = 23 chars via t.co, emojis = 2 chars). All other platforms use plain character length. Returns counts and limits for all 15 supported platform variants. X (Twitter) returns two rows and this endpoint cannot tell you which one applies to you: it takes only `text`, so it never resolves an account. `twitter` (280) is the free tier limit. `twitterPremium` (25000) applies only when the target X account has a paid X subscription, and publishing enforces 280 instead for any post carrying a poll (this endpoint has no poll input, so the `twitterPremium` row always shows 25000). A free account trusting the `twitterPremium` row can pass validation here and still fail at publish time, where the account's real limit is enforced. To validate against the per-account limit, use `POST /v1/tools/validate/post` instead: it accepts an `accountId` per platform entry, resolves X Premium status, and checks the text against the limit publishing enforces, including the poll cap. A missing, foreign, or invalid `accountId` falls back to the conservative 280.
|
|
170
170
|
# @param validate_post_length_request [ValidatePostLengthRequest]
|
|
171
171
|
# @param [Hash] opts the optional parameters
|
|
172
172
|
# @return [Array<(ValidatePostLength200Response, Integer, Hash)>] ValidatePostLength200Response data, response status code and response headers
|
|
@@ -18,6 +18,9 @@ module Zernio
|
|
|
18
18
|
# Zernio Google Ads SocialAccount id — resolves the customer id + refresh token.
|
|
19
19
|
attr_accessor :account_id
|
|
20
20
|
|
|
21
|
+
# Numeric Google Ads customer id. Required when the connection has multiple Google Ads accounts; optional (and inferred) when it has only one.
|
|
22
|
+
attr_accessor :customer_id
|
|
23
|
+
|
|
21
24
|
# See POST /v1/ads/create sitelinks — same shape.
|
|
22
25
|
attr_accessor :sitelinks
|
|
23
26
|
|
|
@@ -29,6 +32,7 @@ module Zernio
|
|
|
29
32
|
def self.attribute_map
|
|
30
33
|
{
|
|
31
34
|
:'account_id' => :'accountId',
|
|
35
|
+
:'customer_id' => :'customerId',
|
|
32
36
|
:'sitelinks' => :'sitelinks',
|
|
33
37
|
:'callouts' => :'callouts',
|
|
34
38
|
:'structured_snippets' => :'structuredSnippets'
|
|
@@ -49,6 +53,7 @@ module Zernio
|
|
|
49
53
|
def self.openapi_types
|
|
50
54
|
{
|
|
51
55
|
:'account_id' => :'String',
|
|
56
|
+
:'customer_id' => :'String',
|
|
52
57
|
:'sitelinks' => :'Array<AttachCampaignAssetsRequestSitelinksInner>',
|
|
53
58
|
:'callouts' => :'Array<String>',
|
|
54
59
|
:'structured_snippets' => :'Array<AttachCampaignAssetsRequestStructuredSnippetsInner>'
|
|
@@ -83,6 +88,10 @@ module Zernio
|
|
|
83
88
|
self.account_id = nil
|
|
84
89
|
end
|
|
85
90
|
|
|
91
|
+
if attributes.key?(:'customer_id')
|
|
92
|
+
self.customer_id = attributes[:'customer_id']
|
|
93
|
+
end
|
|
94
|
+
|
|
86
95
|
if attributes.key?(:'sitelinks')
|
|
87
96
|
if (value = attributes[:'sitelinks']).is_a?(Array)
|
|
88
97
|
self.sitelinks = value
|
|
@@ -222,6 +231,7 @@ module Zernio
|
|
|
222
231
|
return true if self.equal?(o)
|
|
223
232
|
self.class == o.class &&
|
|
224
233
|
account_id == o.account_id &&
|
|
234
|
+
customer_id == o.customer_id &&
|
|
225
235
|
sitelinks == o.sitelinks &&
|
|
226
236
|
callouts == o.callouts &&
|
|
227
237
|
structured_snippets == o.structured_snippets
|
|
@@ -236,7 +246,7 @@ module Zernio
|
|
|
236
246
|
# Calculates hash code according to all attributes.
|
|
237
247
|
# @return [Integer] Hash code
|
|
238
248
|
def hash
|
|
239
|
-
[account_id, sitelinks, callouts, structured_snippets].hash
|
|
249
|
+
[account_id, customer_id, sitelinks, callouts, structured_snippets].hash
|
|
240
250
|
end
|
|
241
251
|
|
|
242
252
|
# Builds the object from hash
|
data/lib/zernio-sdk/version.rb
CHANGED
data/openapi.yaml
CHANGED
|
@@ -10322,6 +10322,10 @@ paths:
|
|
|
10322
10322
|
Twitter/X uses weighted counting (URLs = 23 chars via t.co, emojis = 2 chars). All other platforms use plain character length.
|
|
10323
10323
|
|
|
10324
10324
|
Returns counts and limits for all 15 supported platform variants.
|
|
10325
|
+
|
|
10326
|
+
X (Twitter) returns two rows and this endpoint cannot tell you which one applies to you: it takes only `text`, so it never resolves an account. `twitter` (280) is the free tier limit. `twitterPremium` (25000) applies only when the target X account has a paid X subscription, and publishing enforces 280 instead for any post carrying a poll (this endpoint has no poll input, so the `twitterPremium` row always shows 25000). A free account trusting the `twitterPremium` row can pass validation here and still fail at publish time, where the account's real limit is enforced.
|
|
10327
|
+
|
|
10328
|
+
To validate against the per-account limit, use `POST /v1/tools/validate/post` instead: it accepts an `accountId` per platform entry, resolves X Premium status, and checks the text against the limit publishing enforces, including the poll cap. A missing, foreign, or invalid `accountId` falls back to the conservative 280.
|
|
10325
10329
|
security:
|
|
10326
10330
|
- bearerAuth: []
|
|
10327
10331
|
requestBody:
|
|
@@ -41450,6 +41454,7 @@ paths:
|
|
|
41450
41454
|
required: [accountId]
|
|
41451
41455
|
properties:
|
|
41452
41456
|
accountId: { type: string, description: "Zernio Google Ads SocialAccount id — resolves the customer id + refresh token." }
|
|
41457
|
+
customerId: { type: string, description: "Numeric Google Ads customer id. Required when the connection has multiple Google Ads accounts; optional (and inferred) when it has only one." }
|
|
41453
41458
|
sitelinks:
|
|
41454
41459
|
type: array
|
|
41455
41460
|
minItems: 2
|
|
@@ -41496,8 +41501,9 @@ paths:
|
|
|
41496
41501
|
sitelinkAssetResourceNames: { type: array, items: { type: string } }
|
|
41497
41502
|
calloutAssetResourceNames: { type: array, items: { type: string } }
|
|
41498
41503
|
structuredSnippetAssetResourceNames: { type: array, items: { type: string } }
|
|
41499
|
-
'400': { description: "Invalid input,
|
|
41504
|
+
'400': { description: "Invalid input, Google rejected the assets, an unknown customerId (not one of this connection's Google Ads accounts), or a required customerId missing when the connection has multiple Google Ads accounts" }
|
|
41500
41505
|
'401': { $ref: '#/components/responses/Unauthorized' }
|
|
41506
|
+
'422': { description: "No Google Ads customer accounts on this connection. Reconnect Google Ads." }
|
|
41501
41507
|
'501': { description: Only supported on Google Ads }
|
|
41502
41508
|
|
|
41503
41509
|
/v1/ads/campaigns/{campaignId}/analytics:
|
|
@@ -58,7 +58,7 @@ describe 'ValidateApi' do
|
|
|
58
58
|
|
|
59
59
|
# unit tests for validate_post_length
|
|
60
60
|
# Validate character count
|
|
61
|
-
# Check weighted character count per platform and whether the text is within each platform's limit. Twitter/X uses weighted counting (URLs = 23 chars via t.co, emojis = 2 chars). All other platforms use plain character length. Returns counts and limits for all 15 supported platform variants.
|
|
61
|
+
# Check weighted character count per platform and whether the text is within each platform's limit. Twitter/X uses weighted counting (URLs = 23 chars via t.co, emojis = 2 chars). All other platforms use plain character length. Returns counts and limits for all 15 supported platform variants. X (Twitter) returns two rows and this endpoint cannot tell you which one applies to you: it takes only `text`, so it never resolves an account. `twitter` (280) is the free tier limit. `twitterPremium` (25000) applies only when the target X account has a paid X subscription, and publishing enforces 280 instead for any post carrying a poll (this endpoint has no poll input, so the `twitterPremium` row always shows 25000). A free account trusting the `twitterPremium` row can pass validation here and still fail at publish time, where the account's real limit is enforced. To validate against the per-account limit, use `POST /v1/tools/validate/post` instead: it accepts an `accountId` per platform entry, resolves X Premium status, and checks the text against the limit publishing enforces, including the poll cap. A missing, foreign, or invalid `accountId` falls back to the conservative 280.
|
|
62
62
|
# @param validate_post_length_request
|
|
63
63
|
# @param [Hash] opts the optional parameters
|
|
64
64
|
# @return [ValidatePostLength200Response]
|
|
@@ -33,6 +33,12 @@ describe Zernio::AttachCampaignAssetsRequest do
|
|
|
33
33
|
end
|
|
34
34
|
end
|
|
35
35
|
|
|
36
|
+
describe 'test attribute "customer_id"' do
|
|
37
|
+
it 'should work' do
|
|
38
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
|
|
36
42
|
describe 'test attribute "sitelinks"' do
|
|
37
43
|
it 'should work' do
|
|
38
44
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
Binary file
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: late-sdk
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.795
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- OpenAPI-Generator
|
|
@@ -5548,7 +5548,7 @@ files:
|
|
|
5548
5548
|
- spec/models/you_tube_video_retention_response_retention_curve_inner_spec.rb
|
|
5549
5549
|
- spec/models/you_tube_video_retention_response_spec.rb
|
|
5550
5550
|
- spec/spec_helper.rb
|
|
5551
|
-
- zernio-sdk-0.0.
|
|
5551
|
+
- zernio-sdk-0.0.795.gem
|
|
5552
5552
|
- zernio-sdk.gemspec
|
|
5553
5553
|
homepage: https://openapi-generator.tech
|
|
5554
5554
|
licenses:
|
data/zernio-sdk-0.0.793.gem
DELETED
|
Binary file
|