late-sdk 0.0.853 → 0.0.855
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 +3 -0
- data/docs/AdCampaignsApi.md +1 -1
- data/docs/AdDailyMetrics.md +2 -0
- data/docs/AdLibraryApi.md +109 -0
- data/docs/AdMetrics.md +2 -0
- data/docs/AdsTimelineResponseRowsInner.md +2 -0
- data/docs/CampaignAnalyticsResponseAnalyticsDailyInner.md +2 -0
- data/docs/SearchAdLibrary200Response.md +22 -0
- data/docs/SearchAdLibrary200ResponsePaging.md +20 -0
- data/lib/zernio-sdk/api/ad_campaigns_api.rb +2 -2
- data/lib/zernio-sdk/api/ad_library_api.rb +163 -0
- data/lib/zernio-sdk/models/ad_daily_metrics.rb +11 -1
- data/lib/zernio-sdk/models/ad_metrics.rb +11 -1
- data/lib/zernio-sdk/models/ads_timeline_response_rows_inner.rb +11 -1
- data/lib/zernio-sdk/models/campaign_analytics_response_analytics_daily_inner.rb +11 -1
- data/lib/zernio-sdk/models/search_ad_library200_response.rb +242 -0
- data/lib/zernio-sdk/models/search_ad_library200_response_paging.rb +159 -0
- data/lib/zernio-sdk/version.rb +1 -1
- data/lib/zernio-sdk.rb +3 -0
- data/openapi.yaml +135 -0
- data/spec/api/ad_campaigns_api_spec.rb +1 -1
- data/spec/api/ad_library_api_spec.rb +62 -0
- data/spec/models/ad_daily_metrics_spec.rb +6 -0
- data/spec/models/ad_metrics_spec.rb +6 -0
- data/spec/models/ads_timeline_response_rows_inner_spec.rb +6 -0
- data/spec/models/campaign_analytics_response_analytics_daily_inner_spec.rb +6 -0
- data/spec/models/search_ad_library200_response_paging_spec.rb +42 -0
- data/spec/models/search_ad_library200_response_spec.rb +52 -0
- data/zernio-sdk-0.0.855.gem +0 -0
- metadata +14 -2
- data/zernio-sdk-0.0.853.gem +0 -0
data/openapi.yaml
CHANGED
|
@@ -389,6 +389,10 @@ tags:
|
|
|
389
389
|
Targeting discovery: search interests/behaviors/geo/demographics, estimate reach, and (LinkedIn)
|
|
390
390
|
bid pricing and supply forecasts. Feeds the targeting fields on create.
|
|
391
391
|
Requires the Ads add-on.
|
|
392
|
+
- name: Ad Library
|
|
393
|
+
description: |
|
|
394
|
+
Competitor and market research over the public ad archives (Meta Ad Library, LinkedIn Ad Library),
|
|
395
|
+
searched with the customer's own connected token. Requires the Ads add-on.
|
|
392
396
|
- name: Ad Insights
|
|
393
397
|
description: |
|
|
394
398
|
Measurement: cached aggregate analytics per ad/campaign, plus live Meta Graph insight queries
|
|
@@ -8171,6 +8175,9 @@ components:
|
|
|
8171
8175
|
cpc: { type: number, description: "Cost per click in native currency." }
|
|
8172
8176
|
cpm: { type: number, description: "Cost per 1000 impressions in native currency." }
|
|
8173
8177
|
conversions: { type: number, description: "Sum of conversion events over the range. Fractional values are normal (attribution splitting + Google modeled conversions). Meta: events matching the campaign optimization goal. Google: tracked conversions. X / LinkedIn: reported website/lead conversions (added 2026-07)." }
|
|
8178
|
+
allConversions:
|
|
8179
|
+
type: number
|
|
8180
|
+
description: 'All conversions, including actions excluded from the Conversions column (Google metrics.all_conversions). 0 on platforms without the concept.'
|
|
8174
8181
|
costPerConversion: { type: number }
|
|
8175
8182
|
actions:
|
|
8176
8183
|
type: object
|
|
@@ -8264,6 +8271,9 @@ components:
|
|
|
8264
8271
|
conversions:
|
|
8265
8272
|
type: number
|
|
8266
8273
|
description: "Count of conversion events over the requested date range. FRACTIONAL: attribution splits one conversion across touchpoints and Google additionally reports modeled conversions, so values like 0.347 are normal. Meta: events matching the campaign's promoted_object.custom_event_type (PURCHASE, LEAD, etc.). Google: the account's tracked conversions. X and LinkedIn: their reported website/lead conversions (added 2026-07). 0 for non-conversion campaigns or when no events have fired."
|
|
8274
|
+
allConversions:
|
|
8275
|
+
type: number
|
|
8276
|
+
description: 'All conversions, including actions excluded from the Conversions column (Google metrics.all_conversions). 0 on platforms without the concept.'
|
|
8267
8277
|
costPerConversion:
|
|
8268
8278
|
type: number
|
|
8269
8279
|
description: "Derived spend / conversions in the same currency as spend. 0 when conversions is 0."
|
|
@@ -30088,6 +30098,18 @@ paths:
|
|
|
30088
30098
|
type: "platform_error"
|
|
30089
30099
|
code: "platform_api_error"
|
|
30090
30100
|
platform: "instagram"
|
|
30101
|
+
declinedByMeta:
|
|
30102
|
+
summary: "Meta declined the private reply on this media (subcode 2534066, reply NOT consumed)"
|
|
30103
|
+
value:
|
|
30104
|
+
error: "Instagram declined this private reply (Meta error 2534066). Despite Meta's wording, the token and permissions are fine and the comment ID is valid, so reconnecting the account or retrying this comment will not change the result."
|
|
30105
|
+
type: "platform_error"
|
|
30106
|
+
code: "platform_api_error"
|
|
30107
|
+
platform: "instagram"
|
|
30108
|
+
platformError:
|
|
30109
|
+
code: 200
|
|
30110
|
+
error_subcode: 2534066
|
|
30111
|
+
type: "IGApiException"
|
|
30112
|
+
message: "Please check if access token has enough IG permissions granular scopes for IG private reply. Or, verify if the comment ID is valid"
|
|
30091
30113
|
missingMessage:
|
|
30092
30114
|
summary: Missing message
|
|
30093
30115
|
value:
|
|
@@ -42279,6 +42301,8 @@ paths:
|
|
|
42279
42301
|
than the ingested history return a `202` immediately with the covered part
|
|
42280
42302
|
and `backfillPending: true` while the rest is backfilled in the background;
|
|
42281
42303
|
repeat the request shortly until it returns 200 with full data.
|
|
42304
|
+
|
|
42305
|
+
With adAccountId set to a Google customer id this is the customer-level performance report (clicks, cost, impressions, conversions, all conversions per day).
|
|
42282
42306
|
security:
|
|
42283
42307
|
- bearerAuth: []
|
|
42284
42308
|
parameters:
|
|
@@ -46652,6 +46676,117 @@ paths:
|
|
|
46652
46676
|
'404':
|
|
46653
46677
|
description: Account not found, or the platform does not support the requested dimension
|
|
46654
46678
|
|
|
46679
|
+
/v1/ads/library:
|
|
46680
|
+
get:
|
|
46681
|
+
x-resource-group: "ads"
|
|
46682
|
+
operationId: searchAdLibrary
|
|
46683
|
+
tags: ["Ad Library"]
|
|
46684
|
+
x-platforms: ["meta", "linkedin"]
|
|
46685
|
+
summary: Search the public Ad Library
|
|
46686
|
+
description: |-
|
|
46687
|
+
Competitor and market research over the platform's public ad archive, searched with the
|
|
46688
|
+
customer's own connected token (no extra scope): Meta's Ad Library (`GET /ads_archive`) for
|
|
46689
|
+
a `facebook` / `instagram` / `metaads` account, LinkedIn's Ad Library (`GET /rest/adLibrary`)
|
|
46690
|
+
for a `linkedin` / `linkedinads` account. Rows are returned in the platform's raw shape under
|
|
46691
|
+
`data`; `paging.after` is an opaque cursor on both (`null` when exhausted).
|
|
46692
|
+
|
|
46693
|
+
**Meta coverage.** Political and social-issue ads are searchable worldwide. Every other ad is
|
|
46694
|
+
in the archive only if it was delivered to the EU or UK within the last year, so a US-only
|
|
46695
|
+
commercial advertiser is invisible. Spend, impressions and demographics are political-only
|
|
46696
|
+
fields and are left out of the default projection; request them via `fields`. Meta serves the
|
|
46697
|
+
archive only to people who confirmed their identity and location at facebook.com/ID: until the
|
|
46698
|
+
Facebook user behind the connection has done so, the call fails with
|
|
46699
|
+
`meta_identity_confirmation_required` (403).
|
|
46700
|
+
|
|
46701
|
+
**LinkedIn coverage.** Ads served after June 1 2023, worldwide, kept for a year after their
|
|
46702
|
+
last impression. EU-delivered ads carry impression ranges and the disclosed targeting facets.
|
|
46703
|
+
Pages are capped at 25 ads (`limit` > 25 is a 400); `after` is the next offset.
|
|
46704
|
+
|
|
46705
|
+
Which params apply: `q`, `countries`, `since`, `until`, `limit`, `after` on both; `pageIds`,
|
|
46706
|
+
`adType`, `status`, `platforms`, `mediaType`, `languages`, `searchType`, `fields` are Meta-only;
|
|
46707
|
+
`advertiser` is LinkedIn-only. Passing a param the account's platform does not support is a 400
|
|
46708
|
+
naming the param.
|
|
46709
|
+
security:
|
|
46710
|
+
- bearerAuth: []
|
|
46711
|
+
parameters:
|
|
46712
|
+
- { name: accountId, in: query, required: true, schema: { type: string }, description: "Zernio SocialAccount id (facebook / instagram / metaads for Meta, linkedin / linkedinads for LinkedIn). Its token is the one that searches." }
|
|
46713
|
+
- { name: q, in: query, schema: { type: string, maxLength: 100 }, description: "Keyword search. Meta does not translate it, so write it in the ads' language. Required unless pageIds (Meta) or advertiser (LinkedIn) is given." }
|
|
46714
|
+
- { name: pageIds, in: query, schema: { type: string }, description: "Meta only. Comma-separated Facebook Page ids (max 10) whose ads to list." }
|
|
46715
|
+
- { name: advertiser, in: query, schema: { type: string, maxLength: 100 }, description: "LinkedIn only. Advertiser (Page) name to search." }
|
|
46716
|
+
- { name: countries, in: query, schema: { type: string }, description: "Comma-separated ISO 3166-1 alpha-2 codes the ads reached. Meta defaults to ALL (an explicit ALL is Meta-only); LinkedIn searches every market when omitted." }
|
|
46717
|
+
- { name: adType, in: query, schema: { type: string, enum: [ALL, POLITICAL_AND_ISSUE_ADS, HOUSING_ADS, EMPLOYMENT_ADS, FINANCIAL_PRODUCTS_AND_SERVICES_ADS], default: ALL }, description: "Meta only." }
|
|
46718
|
+
- { name: status, in: query, schema: { type: string, enum: [ACTIVE, INACTIVE, ALL], default: ACTIVE }, description: "Meta only. ACTIVE = eligible for delivery right now." }
|
|
46719
|
+
- { name: platforms, in: query, schema: { type: string }, description: "Meta only. Comma-separated publisher platforms: FACEBOOK, INSTAGRAM, AUDIENCE_NETWORK, MESSENGER, WHATSAPP, OCULUS, THREADS, STREAMING_SERVICES." }
|
|
46720
|
+
- { name: mediaType, in: query, schema: { type: string, enum: [ALL, IMAGE, MEME, VIDEO, NONE] }, description: "Meta only." }
|
|
46721
|
+
- { name: languages, in: query, schema: { type: string }, description: "Meta only. Comma-separated ISO 639-1 codes of the ad text." }
|
|
46722
|
+
- { name: since, in: query, schema: { type: string, format: date }, description: "Earliest delivery date (YYYY-MM-DD)." }
|
|
46723
|
+
- { name: until, in: query, schema: { type: string, format: date }, description: "Latest delivery date (YYYY-MM-DD)." }
|
|
46724
|
+
- { name: searchType, in: query, schema: { type: string, enum: [KEYWORD_UNORDERED, KEYWORD_EXACT_PHRASE], default: KEYWORD_UNORDERED }, description: "Meta only. Whether q matches words in any order or as an exact phrase (comma-separate phrases to match all of them)." }
|
|
46725
|
+
- { name: fields, in: query, schema: { type: string }, description: "Meta only. Raw Graph projection override, e.g. add spend,impressions,demographic_distribution for political ads." }
|
|
46726
|
+
- { name: limit, in: query, schema: { type: integer, minimum: 1, maximum: 100, default: 25 }, description: "Rows per page. LinkedIn accepts at most 25." }
|
|
46727
|
+
- { name: after, in: query, schema: { type: string }, description: "paging.after of the previous page." }
|
|
46728
|
+
responses:
|
|
46729
|
+
'200':
|
|
46730
|
+
description: Archived ads (raw platform shape)
|
|
46731
|
+
content:
|
|
46732
|
+
application/json:
|
|
46733
|
+
schema:
|
|
46734
|
+
type: object
|
|
46735
|
+
required: [platform, data, paging]
|
|
46736
|
+
properties:
|
|
46737
|
+
platform: { type: string, enum: [meta, linkedin] }
|
|
46738
|
+
data:
|
|
46739
|
+
type: array
|
|
46740
|
+
items:
|
|
46741
|
+
type: object
|
|
46742
|
+
description: "Meta: an ArchivedAd (id, page_id, page_name, ad_creation_time, ad_delivery_start_time, ad_delivery_stop_time, ad_creative_bodies[], ad_creative_link_titles[], ad_creative_link_descriptions[], ad_creative_link_captions[], ad_snapshot_url, publisher_platforms[], languages[], plus eu_total_reach, beneficiary_payers, target_ages, target_gender, target_locations, age_country_gender_reach_breakdown, total_reach_by_location on EU/UK ads). LinkedIn: { adUrl, isRestricted, details: { type, advertiser: { advertiserName, advertiserUrl, adPayer }, adStatistics: { firstImpressionAt, latestImpressionAt, totalImpressions: { from, to }, impressionsDistributionByCountry[] }, adTargeting: [{ facetName, includedSegments[], excludedSegments[] }] } } (adStatistics and adTargeting only on EU-delivered ads)."
|
|
46743
|
+
paging:
|
|
46744
|
+
type: object
|
|
46745
|
+
properties:
|
|
46746
|
+
after: { type: [string, "null"], description: "Cursor for the next page; null when exhausted." }
|
|
46747
|
+
total: { type: integer, description: "LinkedIn only. Total matching ads." }
|
|
46748
|
+
examples:
|
|
46749
|
+
meta:
|
|
46750
|
+
summary: Meta, an EU-delivered ad
|
|
46751
|
+
value:
|
|
46752
|
+
platform: meta
|
|
46753
|
+
data:
|
|
46754
|
+
- id: "1234567890"
|
|
46755
|
+
page_id: "811889972008357"
|
|
46756
|
+
page_name: "Zernio"
|
|
46757
|
+
ad_creation_time: "2026-08-02"
|
|
46758
|
+
ad_delivery_start_time: "2026-08-03"
|
|
46759
|
+
ad_creative_bodies: ["Schedule posts and run ads from one API."]
|
|
46760
|
+
ad_creative_link_titles: ["Zernio for developers"]
|
|
46761
|
+
ad_snapshot_url: "https://www.facebook.com/ads/archive/render_ad/?id=1234567890&access_token=..."
|
|
46762
|
+
publisher_platforms: ["facebook", "instagram"]
|
|
46763
|
+
languages: ["en"]
|
|
46764
|
+
eu_total_reach: 18400
|
|
46765
|
+
target_ages: ["25", "54"]
|
|
46766
|
+
target_gender: "All"
|
|
46767
|
+
paging: { after: "QVFIUm..." }
|
|
46768
|
+
linkedin:
|
|
46769
|
+
summary: LinkedIn, an EU-delivered ad
|
|
46770
|
+
value:
|
|
46771
|
+
platform: linkedin
|
|
46772
|
+
data:
|
|
46773
|
+
- isRestricted: false
|
|
46774
|
+
adUrl: "https://www.linkedin.com/ad-library/detail/1521996423"
|
|
46775
|
+
details:
|
|
46776
|
+
type: SPONSORED_STATUS_UPDATE
|
|
46777
|
+
advertiser: { advertiserName: "CEE Microsoft Dynamics Partners", advertiserUrl: "https://www.linkedin.com/company/71491884", adPayer: "UAB Companial" }
|
|
46778
|
+
adStatistics: { firstImpressionAt: 1788623666998, latestImpressionAt: 1788780782520, totalImpressions: { from: 5000, to: 10000 }, impressionsDistributionByCountry: [] }
|
|
46779
|
+
adTargeting:
|
|
46780
|
+
- { facetName: Language, includedSegments: [polski], excludedSegments: [] }
|
|
46781
|
+
- { facetName: Location, includedSegments: [Polska], excludedSegments: [] }
|
|
46782
|
+
paging: { after: "25", total: 27147 }
|
|
46783
|
+
'400': { $ref: '#/components/responses/BadRequest' }
|
|
46784
|
+
'401': { $ref: '#/components/responses/Unauthorized' }
|
|
46785
|
+
'403':
|
|
46786
|
+
description: "Ads access required (legacy plans need the Ads add-on), or, on Meta, `meta_identity_confirmation_required`: the Facebook user behind the connection has not confirmed identity and location at facebook.com/ID."
|
|
46787
|
+
'404': { description: Account not found }
|
|
46788
|
+
'501': { description: Only supported on Meta and LinkedIn accounts }
|
|
46789
|
+
|
|
46655
46790
|
/v1/ads/targeting/reach-estimate:
|
|
46656
46791
|
post:
|
|
46657
46792
|
x-resource-group: "ads"
|
|
@@ -231,7 +231,7 @@ describe 'AdCampaignsApi' do
|
|
|
231
231
|
|
|
232
232
|
# unit tests for get_ads_timeline
|
|
233
233
|
# Get daily account metrics
|
|
234
|
-
# Returns daily aggregate metrics across all ads in a SocialAccount as a single time series — one row per calendar day in the requested range. Use this for dashboards that draw a daily-spend or daily-conversions chart, instead of calling `/v1/ads/tree` once per day. `accountId` is required. The lookup is sibling-expanded so passing the `metaads` ID also includes ads under the linked `facebook` / `instagram` posting account (and vice-versa) — same convention as `/v1/ads/tree` and `/v1/ads`. Date range defaults to the last 90 days. Capped at 730 days. Ranges older than the ingested history return a `202` immediately with the covered part and `backfillPending: true` while the rest is backfilled in the background; repeat the request shortly until it returns 200 with full data.
|
|
234
|
+
# Returns daily aggregate metrics across all ads in a SocialAccount as a single time series — one row per calendar day in the requested range. Use this for dashboards that draw a daily-spend or daily-conversions chart, instead of calling `/v1/ads/tree` once per day. `accountId` is required. The lookup is sibling-expanded so passing the `metaads` ID also includes ads under the linked `facebook` / `instagram` posting account (and vice-versa) — same convention as `/v1/ads/tree` and `/v1/ads`. Date range defaults to the last 90 days. Capped at 730 days. Ranges older than the ingested history return a `202` immediately with the covered part and `backfillPending: true` while the rest is backfilled in the background; repeat the request shortly until it returns 200 with full data. With adAccountId set to a Google customer id this is the customer-level performance report (clicks, cost, impressions, conversions, all conversions per day).
|
|
235
235
|
# @param account_id Social account ID. Sibling-expanded to its linked posting↔ads pair.
|
|
236
236
|
# @param [Hash] opts the optional parameters
|
|
237
237
|
# @option opts [String] :ad_account_id Optional platform-native ad account ID (e.g. Meta `act_…`, TikTok advertiser ID). Use when the connection wraps multiple platform ad accounts and the chart should show one only. Note: rows ingested before 2026-05-13 don't carry this column; the recurring 7-day re-sync repopulates them naturally.
|
|
@@ -0,0 +1,62 @@
|
|
|
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 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
|
|
16
|
+
# Unit tests for Zernio::AdLibraryApi
|
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
18
|
+
# Please update as you see appropriate
|
|
19
|
+
describe 'AdLibraryApi' do
|
|
20
|
+
before do
|
|
21
|
+
# run before each test
|
|
22
|
+
@api_instance = Zernio::AdLibraryApi.new
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
after do
|
|
26
|
+
# run after each test
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
describe 'test an instance of AdLibraryApi' do
|
|
30
|
+
it 'should create an instance of AdLibraryApi' do
|
|
31
|
+
expect(@api_instance).to be_instance_of(Zernio::AdLibraryApi)
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# unit tests for search_ad_library
|
|
36
|
+
# Search the public Ad Library
|
|
37
|
+
# Competitor and market research over the platform's public ad archive, searched with the customer's own connected token (no extra scope): Meta's Ad Library (`GET /ads_archive`) for a `facebook` / `instagram` / `metaads` account, LinkedIn's Ad Library (`GET /rest/adLibrary`) for a `linkedin` / `linkedinads` account. Rows are returned in the platform's raw shape under `data`; `paging.after` is an opaque cursor on both (`null` when exhausted). **Meta coverage.** Political and social-issue ads are searchable worldwide. Every other ad is in the archive only if it was delivered to the EU or UK within the last year, so a US-only commercial advertiser is invisible. Spend, impressions and demographics are political-only fields and are left out of the default projection; request them via `fields`. Meta serves the archive only to people who confirmed their identity and location at facebook.com/ID: until the Facebook user behind the connection has done so, the call fails with `meta_identity_confirmation_required` (403). **LinkedIn coverage.** Ads served after June 1 2023, worldwide, kept for a year after their last impression. EU-delivered ads carry impression ranges and the disclosed targeting facets. Pages are capped at 25 ads (`limit` > 25 is a 400); `after` is the next offset. Which params apply: `q`, `countries`, `since`, `until`, `limit`, `after` on both; `pageIds`, `adType`, `status`, `platforms`, `mediaType`, `languages`, `searchType`, `fields` are Meta-only; `advertiser` is LinkedIn-only. Passing a param the account's platform does not support is a 400 naming the param.
|
|
38
|
+
# @param account_id Zernio SocialAccount id (facebook / instagram / metaads for Meta, linkedin / linkedinads for LinkedIn). Its token is the one that searches.
|
|
39
|
+
# @param [Hash] opts the optional parameters
|
|
40
|
+
# @option opts [String] :q Keyword search. Meta does not translate it, so write it in the ads' language. Required unless pageIds (Meta) or advertiser (LinkedIn) is given.
|
|
41
|
+
# @option opts [String] :page_ids Meta only. Comma-separated Facebook Page ids (max 10) whose ads to list.
|
|
42
|
+
# @option opts [String] :advertiser LinkedIn only. Advertiser (Page) name to search.
|
|
43
|
+
# @option opts [String] :countries Comma-separated ISO 3166-1 alpha-2 codes the ads reached. Meta defaults to ALL (an explicit ALL is Meta-only); LinkedIn searches every market when omitted.
|
|
44
|
+
# @option opts [String] :ad_type Meta only.
|
|
45
|
+
# @option opts [String] :status Meta only. ACTIVE = eligible for delivery right now.
|
|
46
|
+
# @option opts [String] :platforms Meta only. Comma-separated publisher platforms: FACEBOOK, INSTAGRAM, AUDIENCE_NETWORK, MESSENGER, WHATSAPP, OCULUS, THREADS, STREAMING_SERVICES.
|
|
47
|
+
# @option opts [String] :media_type Meta only.
|
|
48
|
+
# @option opts [String] :languages Meta only. Comma-separated ISO 639-1 codes of the ad text.
|
|
49
|
+
# @option opts [Date] :since Earliest delivery date (YYYY-MM-DD).
|
|
50
|
+
# @option opts [Date] :_until Latest delivery date (YYYY-MM-DD).
|
|
51
|
+
# @option opts [String] :search_type Meta only. Whether q matches words in any order or as an exact phrase (comma-separate phrases to match all of them).
|
|
52
|
+
# @option opts [String] :fields Meta only. Raw Graph projection override, e.g. add spend,impressions,demographic_distribution for political ads.
|
|
53
|
+
# @option opts [Integer] :limit Rows per page. LinkedIn accepts at most 25.
|
|
54
|
+
# @option opts [String] :after paging.after of the previous page.
|
|
55
|
+
# @return [SearchAdLibrary200Response]
|
|
56
|
+
describe 'search_ad_library test' do
|
|
57
|
+
it 'should work' do
|
|
58
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
59
|
+
end
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
end
|
|
@@ -81,6 +81,12 @@ describe Zernio::AdDailyMetrics do
|
|
|
81
81
|
end
|
|
82
82
|
end
|
|
83
83
|
|
|
84
|
+
describe 'test attribute "all_conversions"' do
|
|
85
|
+
it 'should work' do
|
|
86
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
87
|
+
end
|
|
88
|
+
end
|
|
89
|
+
|
|
84
90
|
describe 'test attribute "cost_per_conversion"' do
|
|
85
91
|
it 'should work' do
|
|
86
92
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
@@ -81,6 +81,12 @@ describe Zernio::AdMetrics do
|
|
|
81
81
|
end
|
|
82
82
|
end
|
|
83
83
|
|
|
84
|
+
describe 'test attribute "all_conversions"' do
|
|
85
|
+
it 'should work' do
|
|
86
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
87
|
+
end
|
|
88
|
+
end
|
|
89
|
+
|
|
84
90
|
describe 'test attribute "cost_per_conversion"' do
|
|
85
91
|
it 'should work' do
|
|
86
92
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
@@ -87,6 +87,12 @@ describe Zernio::AdsTimelineResponseRowsInner do
|
|
|
87
87
|
end
|
|
88
88
|
end
|
|
89
89
|
|
|
90
|
+
describe 'test attribute "all_conversions"' do
|
|
91
|
+
it 'should work' do
|
|
92
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
93
|
+
end
|
|
94
|
+
end
|
|
95
|
+
|
|
90
96
|
describe 'test attribute "cost_per_conversion"' do
|
|
91
97
|
it 'should work' do
|
|
92
98
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
@@ -81,6 +81,12 @@ describe Zernio::CampaignAnalyticsResponseAnalyticsDailyInner do
|
|
|
81
81
|
end
|
|
82
82
|
end
|
|
83
83
|
|
|
84
|
+
describe 'test attribute "all_conversions"' do
|
|
85
|
+
it 'should work' do
|
|
86
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
87
|
+
end
|
|
88
|
+
end
|
|
89
|
+
|
|
84
90
|
describe 'test attribute "cost_per_conversion"' do
|
|
85
91
|
it 'should work' do
|
|
86
92
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
@@ -0,0 +1,42 @@
|
|
|
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 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
require 'date'
|
|
16
|
+
|
|
17
|
+
# Unit tests for Zernio::SearchAdLibrary200ResponsePaging
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe Zernio::SearchAdLibrary200ResponsePaging do
|
|
21
|
+
#let(:instance) { Zernio::SearchAdLibrary200ResponsePaging.new }
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of SearchAdLibrary200ResponsePaging' do
|
|
24
|
+
it 'should create an instance of SearchAdLibrary200ResponsePaging' do
|
|
25
|
+
# uncomment below to test the instance creation
|
|
26
|
+
#expect(instance).to be_instance_of(Zernio::SearchAdLibrary200ResponsePaging)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test attribute "after"' do
|
|
31
|
+
it 'should work' do
|
|
32
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
describe 'test attribute "total"' 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
|
+
|
|
42
|
+
end
|
|
@@ -0,0 +1,52 @@
|
|
|
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 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
require 'date'
|
|
16
|
+
|
|
17
|
+
# Unit tests for Zernio::SearchAdLibrary200Response
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe Zernio::SearchAdLibrary200Response do
|
|
21
|
+
#let(:instance) { Zernio::SearchAdLibrary200Response.new }
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of SearchAdLibrary200Response' do
|
|
24
|
+
it 'should create an instance of SearchAdLibrary200Response' do
|
|
25
|
+
# uncomment below to test the instance creation
|
|
26
|
+
#expect(instance).to be_instance_of(Zernio::SearchAdLibrary200Response)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test attribute "platform"' do
|
|
31
|
+
it 'should work' do
|
|
32
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
33
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["meta", "linkedin"])
|
|
34
|
+
# validator.allowable_values.each do |value|
|
|
35
|
+
# expect { instance.platform = value }.not_to raise_error
|
|
36
|
+
# end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
describe 'test attribute "data"' do
|
|
41
|
+
it 'should work' do
|
|
42
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
describe 'test attribute "paging"' do
|
|
47
|
+
it 'should work' do
|
|
48
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
end
|
|
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.855
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- OpenAPI-Generator
|
|
@@ -94,6 +94,7 @@ files:
|
|
|
94
94
|
- docs/AdEngagementCounts.md
|
|
95
95
|
- docs/AdFunnelCounts.md
|
|
96
96
|
- docs/AdInsightsApi.md
|
|
97
|
+
- docs/AdLibraryApi.md
|
|
97
98
|
- docs/AdMetrics.md
|
|
98
99
|
- docs/AdPromotedObject.md
|
|
99
100
|
- docs/AdReviewStatus.md
|
|
@@ -1340,6 +1341,8 @@ files:
|
|
|
1340
1341
|
- docs/ScheduleBroadcastRequest.md
|
|
1341
1342
|
- docs/SearchAdInterests200Response.md
|
|
1342
1343
|
- docs/SearchAdInterests200ResponseInterestsInner.md
|
|
1344
|
+
- docs/SearchAdLibrary200Response.md
|
|
1345
|
+
- docs/SearchAdLibrary200ResponsePaging.md
|
|
1343
1346
|
- docs/SearchAdTargeting200Response.md
|
|
1344
1347
|
- docs/SearchAdTargeting200ResponseResultsInner.md
|
|
1345
1348
|
- docs/SearchAvailablePhoneNumbers200Response.md
|
|
@@ -1922,6 +1925,7 @@ files:
|
|
|
1922
1925
|
- lib/zernio-sdk/api/ad_campaigns_api.rb
|
|
1923
1926
|
- lib/zernio-sdk/api/ad_creatives_api.rb
|
|
1924
1927
|
- lib/zernio-sdk/api/ad_insights_api.rb
|
|
1928
|
+
- lib/zernio-sdk/api/ad_library_api.rb
|
|
1925
1929
|
- lib/zernio-sdk/api/ad_targeting_api.rb
|
|
1926
1930
|
- lib/zernio-sdk/api/analytics_api.rb
|
|
1927
1931
|
- lib/zernio-sdk/api/api_keys_api.rb
|
|
@@ -3208,6 +3212,8 @@ files:
|
|
|
3208
3212
|
- lib/zernio-sdk/models/schedule_broadcast_request.rb
|
|
3209
3213
|
- lib/zernio-sdk/models/search_ad_interests200_response.rb
|
|
3210
3214
|
- lib/zernio-sdk/models/search_ad_interests200_response_interests_inner.rb
|
|
3215
|
+
- lib/zernio-sdk/models/search_ad_library200_response.rb
|
|
3216
|
+
- lib/zernio-sdk/models/search_ad_library200_response_paging.rb
|
|
3211
3217
|
- lib/zernio-sdk/models/search_ad_targeting200_response.rb
|
|
3212
3218
|
- lib/zernio-sdk/models/search_ad_targeting200_response_results_inner.rb
|
|
3213
3219
|
- lib/zernio-sdk/models/search_available_phone_numbers200_response.rb
|
|
@@ -3771,6 +3777,7 @@ files:
|
|
|
3771
3777
|
- spec/api/ad_campaigns_api_spec.rb
|
|
3772
3778
|
- spec/api/ad_creatives_api_spec.rb
|
|
3773
3779
|
- spec/api/ad_insights_api_spec.rb
|
|
3780
|
+
- spec/api/ad_library_api_spec.rb
|
|
3774
3781
|
- spec/api/ad_targeting_api_spec.rb
|
|
3775
3782
|
- spec/api/analytics_api_spec.rb
|
|
3776
3783
|
- spec/api/api_keys_api_spec.rb
|
|
@@ -5052,6 +5059,8 @@ files:
|
|
|
5052
5059
|
- spec/models/schedule_broadcast_request_spec.rb
|
|
5053
5060
|
- spec/models/search_ad_interests200_response_interests_inner_spec.rb
|
|
5054
5061
|
- spec/models/search_ad_interests200_response_spec.rb
|
|
5062
|
+
- spec/models/search_ad_library200_response_paging_spec.rb
|
|
5063
|
+
- spec/models/search_ad_library200_response_spec.rb
|
|
5055
5064
|
- spec/models/search_ad_targeting200_response_results_inner_spec.rb
|
|
5056
5065
|
- spec/models/search_ad_targeting200_response_spec.rb
|
|
5057
5066
|
- spec/models/search_available_phone_numbers200_response_numbers_inner_spec.rb
|
|
@@ -5605,7 +5614,7 @@ files:
|
|
|
5605
5614
|
- spec/models/you_tube_video_retention_response_retention_curve_inner_spec.rb
|
|
5606
5615
|
- spec/models/you_tube_video_retention_response_spec.rb
|
|
5607
5616
|
- spec/spec_helper.rb
|
|
5608
|
-
- zernio-sdk-0.0.
|
|
5617
|
+
- zernio-sdk-0.0.855.gem
|
|
5609
5618
|
- zernio-sdk.gemspec
|
|
5610
5619
|
homepage: https://openapi-generator.tech
|
|
5611
5620
|
licenses:
|
|
@@ -5637,6 +5646,7 @@ test_files:
|
|
|
5637
5646
|
- spec/api/phone_numbers_api_spec.rb
|
|
5638
5647
|
- spec/api/ad_accounts_api_spec.rb
|
|
5639
5648
|
- spec/api/media_api_spec.rb
|
|
5649
|
+
- spec/api/ad_library_api_spec.rb
|
|
5640
5650
|
- spec/api/lead_gen_api_spec.rb
|
|
5641
5651
|
- spec/api/twitter_engagement_api_spec.rb
|
|
5642
5652
|
- spec/api/account_settings_api_spec.rb
|
|
@@ -5937,6 +5947,7 @@ test_files:
|
|
|
5937
5947
|
- spec/models/delete_google_business_media200_response_spec.rb
|
|
5938
5948
|
- spec/models/get_inbox_post_comments200_response_meta_ad_comments_spec.rb
|
|
5939
5949
|
- spec/models/webhook_payload_post_platform_spec.rb
|
|
5950
|
+
- spec/models/search_ad_library200_response_spec.rb
|
|
5940
5951
|
- spec/models/on_whats_app_number_verification_required_request_spec.rb
|
|
5941
5952
|
- spec/models/webhook_payload_message_message_sender_spec.rb
|
|
5942
5953
|
- spec/models/purchase_phone_number200_response_one_of1_phone_number_spec.rb
|
|
@@ -6694,6 +6705,7 @@ test_files:
|
|
|
6694
6705
|
- spec/models/create_rf_prediction_request_spec.rb
|
|
6695
6706
|
- spec/models/get_tik_tok_creator_info200_response_posting_limits_interaction_settings_allow_duet_spec.rb
|
|
6696
6707
|
- spec/models/create_sip_trunk201_response_termination_spec.rb
|
|
6708
|
+
- spec/models/search_ad_library200_response_paging_spec.rb
|
|
6697
6709
|
- spec/models/create_discord_scheduled_event200_response_spec.rb
|
|
6698
6710
|
- spec/models/instagram_account_insights_response_metrics_value_spec.rb
|
|
6699
6711
|
- spec/models/adjust_conversions200_response_failures_inner_spec.rb
|
data/zernio-sdk-0.0.853.gem
DELETED
|
Binary file
|