late-sdk 0.0.680 → 0.0.682
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 +2 -0
- data/docs/Ad.md +2 -0
- data/docs/AdDailyMetrics.md +6 -0
- data/docs/AdEngagementCounts.md +34 -0
- data/docs/AdFunnelCounts.md +42 -0
- data/docs/AdMetrics.md +6 -0
- data/docs/CreateCommentAutomation200ResponseAutomation.md +5 -1
- data/docs/CreateCommentAutomationRequest.md +5 -1
- data/docs/GetCampaignAnalytics200ResponseAnalyticsDailyInner.md +6 -0
- data/docs/GetCommentAutomation200ResponseAutomation.md +5 -1
- data/docs/ListCommentAutomations200ResponseAutomationsInner.md +5 -1
- data/docs/UpdateCommentAutomation200ResponseAutomation.md +5 -1
- data/docs/UpdateCommentAutomationRequest.md +5 -1
- data/docs/WebhookEventsApi.md +2 -2
- data/lib/zernio-sdk/api/webhook_events_api.rb +4 -4
- data/lib/zernio-sdk/models/ad.rb +24 -1
- data/lib/zernio-sdk/models/ad_daily_metrics.rb +29 -1
- data/lib/zernio-sdk/models/ad_engagement_counts.rb +229 -0
- data/lib/zernio-sdk/models/ad_funnel_counts.rb +269 -0
- data/lib/zernio-sdk/models/ad_metrics.rb +29 -1
- data/lib/zernio-sdk/models/create_comment_automation200_response_automation.rb +26 -3
- data/lib/zernio-sdk/models/create_comment_automation_request.rb +26 -3
- data/lib/zernio-sdk/models/get_campaign_analytics200_response_analytics_daily_inner.rb +29 -1
- data/lib/zernio-sdk/models/get_comment_automation200_response_automation.rb +26 -3
- data/lib/zernio-sdk/models/list_comment_automations200_response_automations_inner.rb +26 -3
- data/lib/zernio-sdk/models/update_comment_automation200_response_automation.rb +26 -3
- data/lib/zernio-sdk/models/update_comment_automation_request.rb +26 -3
- data/lib/zernio-sdk/version.rb +1 -1
- data/lib/zernio-sdk.rb +2 -0
- data/openapi.yaml +87 -9
- data/spec/models/ad_daily_metrics_spec.rb +18 -0
- data/spec/models/ad_engagement_counts_spec.rb +84 -0
- data/spec/models/ad_funnel_counts_spec.rb +108 -0
- data/spec/models/ad_metrics_spec.rb +18 -0
- data/spec/models/ad_spec.rb +10 -0
- data/spec/models/create_comment_automation200_response_automation_spec.rb +13 -1
- data/spec/models/create_comment_automation_request_spec.rb +13 -1
- data/spec/models/get_campaign_analytics200_response_analytics_daily_inner_spec.rb +18 -0
- data/spec/models/get_comment_automation200_response_automation_spec.rb +13 -1
- data/spec/models/list_comment_automations200_response_automations_inner_spec.rb +13 -1
- data/spec/models/update_comment_automation200_response_automation_spec.rb +13 -1
- data/spec/models/update_comment_automation_request_spec.rb +13 -1
- data/zernio-sdk-0.0.682.gem +0 -0
- metadata +1570 -1562
- data/zernio-sdk-0.0.680.gem +0 -0
data/openapi.yaml
CHANGED
|
@@ -134,7 +134,7 @@ x-documentation:
|
|
|
134
134
|
|
|
135
135
|
Receive real-time notifications for post status changes, account events, and incoming messages:
|
|
136
136
|
|
|
137
|
-
- `post.scheduled` - Post created
|
|
137
|
+
- `post.scheduled` - Post entered the scheduled state: created with a schedule, added to a queue, a draft promoted to scheduled or queued, a failed post retried, or a recycled clone created
|
|
138
138
|
- `post.published` - Post successfully published
|
|
139
139
|
- `post.failed` - Post failed on all platforms
|
|
140
140
|
- `post.partial` - Post published to some platforms, failed on others
|
|
@@ -6753,7 +6753,68 @@ components:
|
|
|
6753
6753
|
videoAvgTimeWatchedActions:
|
|
6754
6754
|
type: number
|
|
6755
6755
|
description: "Average seconds watched per play (Meta `video_avg_time_watched_actions`). Aggregated over date ranges and across children as a play-weighted average (total watch time / total plays), never a plain average of averages."
|
|
6756
|
+
costPerThruplay:
|
|
6757
|
+
type: number
|
|
6758
|
+
description: "Derived `spend / videoThruplayWatchedActions`, in ad-account native currency. Rounded to 4 decimals rather than the usual 2 because a ThruPlay routinely costs well under a cent. 0 when the ad has no ThruPlays."
|
|
6759
|
+
funnel:
|
|
6760
|
+
$ref: '#/components/schemas/AdFunnelCounts'
|
|
6761
|
+
engagementBreakdown:
|
|
6762
|
+
$ref: '#/components/schemas/AdEngagementCounts'
|
|
6756
6763
|
lastSyncedAt: { type: string, format: date-time, description: "Present on individual ads only, not on campaign aggregations" }
|
|
6764
|
+
AdFunnelCounts:
|
|
6765
|
+
type: object
|
|
6766
|
+
description: |
|
|
6767
|
+
Named conversion-funnel steps, resolved from the same data as `actions`
|
|
6768
|
+
so you never have to parse action-type strings yourself.
|
|
6769
|
+
|
|
6770
|
+
Meta reports one event under several action types at once
|
|
6771
|
+
(`offsite_conversion.fb_pixel_purchase`, `omni_purchase`, `purchase`, …).
|
|
6772
|
+
Each field below takes the FIRST family member present rather than
|
|
6773
|
+
summing them, which is what makes these counts safe to add up — summing
|
|
6774
|
+
the raw `actions` keys yourself double or triple counts. The same
|
|
6775
|
+
priority order backs `conversions`, so a purchase-optimised campaign
|
|
6776
|
+
reports the identical number in `conversions` and `funnel.purchases`.
|
|
6777
|
+
|
|
6778
|
+
Every field is 0 when that step never fired. Populated for Meta ads;
|
|
6779
|
+
other platforms report a different action taxonomy and generally leave
|
|
6780
|
+
these at 0 (read `actions` for those). At ad-set and campaign level each
|
|
6781
|
+
step is summed from its per-ad values.
|
|
6782
|
+
properties:
|
|
6783
|
+
landingPageViews: { type: integer, description: "Landing page views — the visitor actually loaded the destination, unlike a link click. Meta `landing_page_view`." }
|
|
6784
|
+
contentViews: { type: integer, description: "Content views (Meta `ViewContent` pixel event)." }
|
|
6785
|
+
searches: { type: integer, description: "On-site searches (Meta `Search` pixel event)." }
|
|
6786
|
+
wishlistAdds: { type: integer, description: "Adds to wishlist (Meta `AddToWishlist` pixel event)." }
|
|
6787
|
+
cartAdds: { type: integer, description: "Adds to cart (Meta `AddToCart` pixel event)." }
|
|
6788
|
+
checkoutsInitiated: { type: integer, description: "Checkouts started (Meta `InitiateCheckout` pixel event)." }
|
|
6789
|
+
paymentInfoAdds: { type: integer, description: "Payment details added at checkout (Meta `AddPaymentInfo` pixel event)." }
|
|
6790
|
+
purchases: { type: integer, description: "Purchases (Meta `Purchase` pixel event). Pair with `purchaseValue` for revenue." }
|
|
6791
|
+
leads: { type: integer, description: "Leads, from either the website pixel or an instant form — whichever the ad uses." }
|
|
6792
|
+
registrationsCompleted: { type: integer, description: "Completed registrations (Meta `CompleteRegistration` pixel event)." }
|
|
6793
|
+
appInstalls: { type: integer, description: "Mobile app installs attributed to the ad." }
|
|
6794
|
+
messagingConversationsStarted: { type: integer, description: "Messaging conversations started within 7 days — the headline metric for click-to-WhatsApp and click-to-Messenger ads." }
|
|
6795
|
+
messagingFirstReplies: { type: integer, description: "Messaging threads where the person sent a first reply." }
|
|
6796
|
+
AdEngagementCounts:
|
|
6797
|
+
type: object
|
|
6798
|
+
description: |
|
|
6799
|
+
The single `engagement` total split into the interactions behind it.
|
|
6800
|
+
|
|
6801
|
+
Note that `engagement` is not the sum of these: Meta's own
|
|
6802
|
+
`post_engagement` and `page_engagement` totals already contain the
|
|
6803
|
+
individual interactions, and all of them are counted into `engagement`.
|
|
6804
|
+
Use these fields when you need a specific interaction, and `engagement`
|
|
6805
|
+
only as the coarse total it has always been.
|
|
6806
|
+
|
|
6807
|
+
Meta-only; other platforms leave these at 0.
|
|
6808
|
+
properties:
|
|
6809
|
+
postEngagement: { type: integer, description: "Meta's own post-engagement total (`post_engagement`)." }
|
|
6810
|
+
pageEngagement: { type: integer, description: "Meta's own page-engagement total (`page_engagement`)." }
|
|
6811
|
+
reactions: { type: integer, description: "Reactions on the ad's post (`post_reaction`)." }
|
|
6812
|
+
comments: { type: integer, description: "Comments on the ad's post." }
|
|
6813
|
+
shares: { type: integer, description: "Shares of the ad's post. Meta reports these under the action type literally named `post`." }
|
|
6814
|
+
saves: { type: integer, description: "Saves of the ad's post (`onsite_conversion.post_save`)." }
|
|
6815
|
+
pageLikes: { type: integer, description: "New Page likes attributed to the ad (`like`)." }
|
|
6816
|
+
videoViews: { type: integer, description: "3-second video views (`video_view`). For completion-based counts use `videoThruplayWatchedActions`." }
|
|
6817
|
+
linkClicks: { type: integer, description: "Attributed link clicks (`link_click`). This is the attribution-window count, which differs from the in-session `inline_link_clicks` reported by `GET /v1/ads/{adId}/analytics`." }
|
|
6757
6818
|
AdDailyMetrics:
|
|
6758
6819
|
description: |
|
|
6759
6820
|
One day of metrics. Same fields as `AdMetrics` plus the `date` they
|
|
@@ -7095,6 +7156,11 @@ components:
|
|
|
7095
7156
|
allOf: [{ $ref: '#/components/schemas/AdReviewStatus' }]
|
|
7096
7157
|
description: "Platform review state of this ad, independent of delivery `status` / `configuredStatus`. Absent when the platform reports no review signal."
|
|
7097
7158
|
adType: { type: string, enum: [boost, standalone] }
|
|
7159
|
+
creativeType:
|
|
7160
|
+
type: [string, "null"]
|
|
7161
|
+
enum: [carousel, video, document, image, null]
|
|
7162
|
+
description: "Creative format, classified from the media the creative carries. `null` when the creative carries no media to classify — an unsynced creative and a genuine text-only ad are indistinguishable, so neither is guessed at. Returned by `GET /v1/ads`, `GET /v1/ads/{adId}` and the ad nodes of `GET /v1/ads/tree`."
|
|
7163
|
+
example: video
|
|
7098
7164
|
goal: { type: string, enum: [engagement, traffic, awareness, video_views, lead_generation, lead_conversion, conversions, app_promotion, catalog_sales, job_applicants], description: "Available goals vary by platform. Meta (Facebook/Instagram) supports all 9 (incl. `lead_conversion` = website pixel lead optimization and `catalog_sales` = Advantage+ catalog ads). TikTok supports the 7 non-`lead_conversion` goals. LinkedIn supports all except app_promotion / lead_conversion. Twitter/X supports engagement, traffic, awareness, video_views, app_promotion. Pinterest and Google Ads support only engagement, traffic, awareness, video_views." }
|
|
7099
7165
|
isExternal: { type: boolean, description: True for ads synced from platform ad managers }
|
|
7100
7166
|
budget:
|
|
@@ -7733,7 +7799,7 @@ webhooks:
|
|
|
7733
7799
|
post:
|
|
7734
7800
|
operationId: onPostScheduled
|
|
7735
7801
|
summary: Post scheduled event
|
|
7736
|
-
description: Fired
|
|
7802
|
+
description: 'Fired whenever a post enters the scheduled state: created with a schedule, added to a queue, a draft promoted to scheduled or queued, a failed or partial post retried, or a recycled clone created. Not fired when an already-scheduled post is edited or rescheduled.'
|
|
7737
7803
|
tags: [Webhook Events]
|
|
7738
7804
|
requestBody:
|
|
7739
7805
|
required: true
|
|
@@ -7808,7 +7874,7 @@ webhooks:
|
|
|
7808
7874
|
post:
|
|
7809
7875
|
operationId: onPostRecycled
|
|
7810
7876
|
summary: Post recycled event
|
|
7811
|
-
description: Fired when a post is recycled (cloned and re-scheduled for publishing).
|
|
7877
|
+
description: 'Fired when a post is recycled (cloned and re-scheduled for publishing). The new clone also fires a post.scheduled event.'
|
|
7812
7878
|
tags: [Webhook Events]
|
|
7813
7879
|
requestBody:
|
|
7814
7880
|
required: true
|
|
@@ -35641,7 +35707,9 @@ paths:
|
|
|
35641
35707
|
platformPostId: { type: string }
|
|
35642
35708
|
postTitle: { type: string }
|
|
35643
35709
|
keywords: { type: array, items: { type: string } }
|
|
35644
|
-
matchMode: { type: string, enum: [exact, contains] }
|
|
35710
|
+
matchMode: { type: string, enum: [exact, contains, word], description: "How a keyword is compared with the comment. 'contains' (default) matches anywhere, even inside another word (keyword 'app' fires on 'happy'). 'word' matches the keyword only as a standalone word. 'exact' requires the whole comment to be exactly the keyword." }
|
|
35711
|
+
excludeKeywords: { type: array, items: { type: string }, description: "Comments containing one of these never trigger the automation, even when a trigger keyword also matches. Compared using the same matchMode." }
|
|
35712
|
+
typoTolerance: { type: boolean, description: "Only with matchMode=word: also fire on close misspellings of a keyword (one edit for 4-7 character keywords, two from 8 up). Keywords shorter than 4 characters are never fuzzy-matched." }
|
|
35645
35713
|
dmMessage: { type: string }
|
|
35646
35714
|
buttons:
|
|
35647
35715
|
type: array
|
|
@@ -35716,7 +35784,9 @@ paths:
|
|
|
35716
35784
|
type: array
|
|
35717
35785
|
items: { type: string }
|
|
35718
35786
|
description: Trigger keywords (empty = any comment triggers)
|
|
35719
|
-
matchMode: { type: string, enum: [exact, contains], default: contains }
|
|
35787
|
+
matchMode: { type: string, enum: [exact, contains, word], default: contains, description: "How a keyword is compared with the comment. 'contains' (default) matches anywhere, even inside another word (keyword 'app' fires on 'happy'). 'word' matches the keyword only as a standalone word. 'exact' requires the whole comment to be exactly the keyword." }
|
|
35788
|
+
excludeKeywords: { type: array, items: { type: string }, description: "Comments containing one of these never trigger the automation, even when a trigger keyword also matches. Compared using the same matchMode." }
|
|
35789
|
+
typoTolerance: { type: boolean, description: "Only with matchMode=word: also fire on close misspellings of a keyword (one edit for 4-7 character keywords, two from 8 up). Keywords shorter than 4 characters are never fuzzy-matched." }
|
|
35720
35790
|
dmMessage: { type: string, description: "DM text to send to commenter. Max 640 chars when buttons are set, otherwise ~1000." }
|
|
35721
35791
|
buttons:
|
|
35722
35792
|
type: array
|
|
@@ -35754,7 +35824,9 @@ paths:
|
|
|
35754
35824
|
trigger: { type: string, enum: [comment, story_reply] }
|
|
35755
35825
|
platformPostId: { type: string }
|
|
35756
35826
|
keywords: { type: array, items: { type: string } }
|
|
35757
|
-
matchMode: { type: string, enum: [exact, contains] }
|
|
35827
|
+
matchMode: { type: string, enum: [exact, contains, word], description: "How a keyword is compared with the comment. 'contains' (default) matches anywhere, even inside another word (keyword 'app' fires on 'happy'). 'word' matches the keyword only as a standalone word. 'exact' requires the whole comment to be exactly the keyword." }
|
|
35828
|
+
excludeKeywords: { type: array, items: { type: string }, description: "Comments containing one of these never trigger the automation, even when a trigger keyword also matches. Compared using the same matchMode." }
|
|
35829
|
+
typoTolerance: { type: boolean, description: "Only with matchMode=word: also fire on close misspellings of a keyword (one edit for 4-7 character keywords, two from 8 up). Keywords shorter than 4 characters are never fuzzy-matched." }
|
|
35758
35830
|
dmMessage: { type: string }
|
|
35759
35831
|
buttons:
|
|
35760
35832
|
type: array
|
|
@@ -35804,7 +35876,9 @@ paths:
|
|
|
35804
35876
|
postId: { type: string }
|
|
35805
35877
|
postTitle: { type: string }
|
|
35806
35878
|
keywords: { type: array, items: { type: string } }
|
|
35807
|
-
matchMode: { type: string, enum: [exact, contains] }
|
|
35879
|
+
matchMode: { type: string, enum: [exact, contains, word], description: "How a keyword is compared with the comment. 'contains' (default) matches anywhere, even inside another word (keyword 'app' fires on 'happy'). 'word' matches the keyword only as a standalone word. 'exact' requires the whole comment to be exactly the keyword." }
|
|
35880
|
+
excludeKeywords: { type: array, items: { type: string }, description: "Comments containing one of these never trigger the automation, even when a trigger keyword also matches. Compared using the same matchMode." }
|
|
35881
|
+
typoTolerance: { type: boolean, description: "Only with matchMode=word: also fire on close misspellings of a keyword (one edit for 4-7 character keywords, two from 8 up). Keywords shorter than 4 characters are never fuzzy-matched." }
|
|
35808
35882
|
dmMessage: { type: string }
|
|
35809
35883
|
buttons:
|
|
35810
35884
|
type: array
|
|
@@ -35857,7 +35931,9 @@ paths:
|
|
|
35857
35931
|
properties:
|
|
35858
35932
|
name: { type: string }
|
|
35859
35933
|
keywords: { type: array, items: { type: string } }
|
|
35860
|
-
matchMode: { type: string, enum: [exact, contains] }
|
|
35934
|
+
matchMode: { type: string, enum: [exact, contains, word], description: "How a keyword is compared with the comment. 'contains' (default) matches anywhere, even inside another word (keyword 'app' fires on 'happy'). 'word' matches the keyword only as a standalone word. 'exact' requires the whole comment to be exactly the keyword." }
|
|
35935
|
+
excludeKeywords: { type: array, items: { type: string }, description: "Comments containing one of these never trigger the automation, even when a trigger keyword also matches. Compared using the same matchMode." }
|
|
35936
|
+
typoTolerance: { type: boolean, description: "Only with matchMode=word: also fire on close misspellings of a keyword (one edit for 4-7 character keywords, two from 8 up). Keywords shorter than 4 characters are never fuzzy-matched." }
|
|
35861
35937
|
dmMessage: { type: string }
|
|
35862
35938
|
buttons:
|
|
35863
35939
|
type: array
|
|
@@ -35893,7 +35969,9 @@ paths:
|
|
|
35893
35969
|
id: { type: string }
|
|
35894
35970
|
name: { type: string }
|
|
35895
35971
|
keywords: { type: array, items: { type: string } }
|
|
35896
|
-
matchMode: { type: string, enum: [exact, contains] }
|
|
35972
|
+
matchMode: { type: string, enum: [exact, contains, word], description: "How a keyword is compared with the comment. 'contains' (default) matches anywhere, even inside another word (keyword 'app' fires on 'happy'). 'word' matches the keyword only as a standalone word. 'exact' requires the whole comment to be exactly the keyword." }
|
|
35973
|
+
excludeKeywords: { type: array, items: { type: string }, description: "Comments containing one of these never trigger the automation, even when a trigger keyword also matches. Compared using the same matchMode." }
|
|
35974
|
+
typoTolerance: { type: boolean, description: "Only with matchMode=word: also fire on close misspellings of a keyword (one edit for 4-7 character keywords, two from 8 up). Keywords shorter than 4 characters are never fuzzy-matched." }
|
|
35897
35975
|
dmMessage: { type: string }
|
|
35898
35976
|
buttons:
|
|
35899
35977
|
type: array
|
|
@@ -165,6 +165,24 @@ describe Zernio::AdDailyMetrics do
|
|
|
165
165
|
end
|
|
166
166
|
end
|
|
167
167
|
|
|
168
|
+
describe 'test attribute "cost_per_thruplay"' do
|
|
169
|
+
it 'should work' do
|
|
170
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
171
|
+
end
|
|
172
|
+
end
|
|
173
|
+
|
|
174
|
+
describe 'test attribute "funnel"' do
|
|
175
|
+
it 'should work' do
|
|
176
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
177
|
+
end
|
|
178
|
+
end
|
|
179
|
+
|
|
180
|
+
describe 'test attribute "engagement_breakdown"' do
|
|
181
|
+
it 'should work' do
|
|
182
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
183
|
+
end
|
|
184
|
+
end
|
|
185
|
+
|
|
168
186
|
describe 'test attribute "last_synced_at"' do
|
|
169
187
|
it 'should work' do
|
|
170
188
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Zernio API
|
|
3
|
+
|
|
4
|
+
#API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.4
|
|
7
|
+
Contact: support@zernio.com
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.19.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
require 'date'
|
|
16
|
+
|
|
17
|
+
# Unit tests for Zernio::AdEngagementCounts
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe Zernio::AdEngagementCounts do
|
|
21
|
+
#let(:instance) { Zernio::AdEngagementCounts.new }
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of AdEngagementCounts' do
|
|
24
|
+
it 'should create an instance of AdEngagementCounts' do
|
|
25
|
+
# uncomment below to test the instance creation
|
|
26
|
+
#expect(instance).to be_instance_of(Zernio::AdEngagementCounts)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test attribute "post_engagement"' 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 "page_engagement"' 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
|
+
describe 'test attribute "reactions"' do
|
|
43
|
+
it 'should work' do
|
|
44
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
describe 'test attribute "comments"' do
|
|
49
|
+
it 'should work' do
|
|
50
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
describe 'test attribute "shares"' do
|
|
55
|
+
it 'should work' do
|
|
56
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
57
|
+
end
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
describe 'test attribute "saves"' do
|
|
61
|
+
it 'should work' do
|
|
62
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
63
|
+
end
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
describe 'test attribute "page_likes"' do
|
|
67
|
+
it 'should work' do
|
|
68
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
69
|
+
end
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
describe 'test attribute "video_views"' do
|
|
73
|
+
it 'should work' do
|
|
74
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
75
|
+
end
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
describe 'test attribute "link_clicks"' do
|
|
79
|
+
it 'should work' do
|
|
80
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
81
|
+
end
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
end
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Zernio API
|
|
3
|
+
|
|
4
|
+
#API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.4
|
|
7
|
+
Contact: support@zernio.com
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.19.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
require 'date'
|
|
16
|
+
|
|
17
|
+
# Unit tests for Zernio::AdFunnelCounts
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe Zernio::AdFunnelCounts do
|
|
21
|
+
#let(:instance) { Zernio::AdFunnelCounts.new }
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of AdFunnelCounts' do
|
|
24
|
+
it 'should create an instance of AdFunnelCounts' do
|
|
25
|
+
# uncomment below to test the instance creation
|
|
26
|
+
#expect(instance).to be_instance_of(Zernio::AdFunnelCounts)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test attribute "landing_page_views"' 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 "content_views"' 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
|
+
describe 'test attribute "searches"' do
|
|
43
|
+
it 'should work' do
|
|
44
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
describe 'test attribute "wishlist_adds"' do
|
|
49
|
+
it 'should work' do
|
|
50
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
describe 'test attribute "cart_adds"' do
|
|
55
|
+
it 'should work' do
|
|
56
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
57
|
+
end
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
describe 'test attribute "checkouts_initiated"' do
|
|
61
|
+
it 'should work' do
|
|
62
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
63
|
+
end
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
describe 'test attribute "payment_info_adds"' do
|
|
67
|
+
it 'should work' do
|
|
68
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
69
|
+
end
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
describe 'test attribute "purchases"' do
|
|
73
|
+
it 'should work' do
|
|
74
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
75
|
+
end
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
describe 'test attribute "leads"' do
|
|
79
|
+
it 'should work' do
|
|
80
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
81
|
+
end
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
describe 'test attribute "registrations_completed"' 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
|
+
|
|
90
|
+
describe 'test attribute "app_installs"' 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
|
+
|
|
96
|
+
describe 'test attribute "messaging_conversations_started"' do
|
|
97
|
+
it 'should work' do
|
|
98
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
99
|
+
end
|
|
100
|
+
end
|
|
101
|
+
|
|
102
|
+
describe 'test attribute "messaging_first_replies"' do
|
|
103
|
+
it 'should work' do
|
|
104
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
105
|
+
end
|
|
106
|
+
end
|
|
107
|
+
|
|
108
|
+
end
|
|
@@ -165,6 +165,24 @@ describe Zernio::AdMetrics do
|
|
|
165
165
|
end
|
|
166
166
|
end
|
|
167
167
|
|
|
168
|
+
describe 'test attribute "cost_per_thruplay"' do
|
|
169
|
+
it 'should work' do
|
|
170
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
171
|
+
end
|
|
172
|
+
end
|
|
173
|
+
|
|
174
|
+
describe 'test attribute "funnel"' do
|
|
175
|
+
it 'should work' do
|
|
176
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
177
|
+
end
|
|
178
|
+
end
|
|
179
|
+
|
|
180
|
+
describe 'test attribute "engagement_breakdown"' do
|
|
181
|
+
it 'should work' do
|
|
182
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
183
|
+
end
|
|
184
|
+
end
|
|
185
|
+
|
|
168
186
|
describe 'test attribute "last_synced_at"' do
|
|
169
187
|
it 'should work' do
|
|
170
188
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
data/spec/models/ad_spec.rb
CHANGED
|
@@ -77,6 +77,16 @@ describe Zernio::Ad do
|
|
|
77
77
|
end
|
|
78
78
|
end
|
|
79
79
|
|
|
80
|
+
describe 'test attribute "creative_type"' do
|
|
81
|
+
it 'should work' do
|
|
82
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
83
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["carousel", "video", "document", "image"])
|
|
84
|
+
# validator.allowable_values.each do |value|
|
|
85
|
+
# expect { instance.creative_type = value }.not_to raise_error
|
|
86
|
+
# end
|
|
87
|
+
end
|
|
88
|
+
end
|
|
89
|
+
|
|
80
90
|
describe 'test attribute "goal"' do
|
|
81
91
|
it 'should work' do
|
|
82
92
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
@@ -70,13 +70,25 @@ describe Zernio::CreateCommentAutomation200ResponseAutomation do
|
|
|
70
70
|
describe 'test attribute "match_mode"' do
|
|
71
71
|
it 'should work' do
|
|
72
72
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
73
|
-
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["exact", "contains"])
|
|
73
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["exact", "contains", "word"])
|
|
74
74
|
# validator.allowable_values.each do |value|
|
|
75
75
|
# expect { instance.match_mode = value }.not_to raise_error
|
|
76
76
|
# end
|
|
77
77
|
end
|
|
78
78
|
end
|
|
79
79
|
|
|
80
|
+
describe 'test attribute "exclude_keywords"' do
|
|
81
|
+
it 'should work' do
|
|
82
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
83
|
+
end
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
describe 'test attribute "typo_tolerance"' do
|
|
87
|
+
it 'should work' do
|
|
88
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
89
|
+
end
|
|
90
|
+
end
|
|
91
|
+
|
|
80
92
|
describe 'test attribute "dm_message"' do
|
|
81
93
|
it 'should work' do
|
|
82
94
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
@@ -82,13 +82,25 @@ describe Zernio::CreateCommentAutomationRequest do
|
|
|
82
82
|
describe 'test attribute "match_mode"' do
|
|
83
83
|
it 'should work' do
|
|
84
84
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
85
|
-
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["exact", "contains"])
|
|
85
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["exact", "contains", "word"])
|
|
86
86
|
# validator.allowable_values.each do |value|
|
|
87
87
|
# expect { instance.match_mode = value }.not_to raise_error
|
|
88
88
|
# end
|
|
89
89
|
end
|
|
90
90
|
end
|
|
91
91
|
|
|
92
|
+
describe 'test attribute "exclude_keywords"' do
|
|
93
|
+
it 'should work' do
|
|
94
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
95
|
+
end
|
|
96
|
+
end
|
|
97
|
+
|
|
98
|
+
describe 'test attribute "typo_tolerance"' do
|
|
99
|
+
it 'should work' do
|
|
100
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
101
|
+
end
|
|
102
|
+
end
|
|
103
|
+
|
|
92
104
|
describe 'test attribute "dm_message"' do
|
|
93
105
|
it 'should work' do
|
|
94
106
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
@@ -165,6 +165,24 @@ describe Zernio::GetCampaignAnalytics200ResponseAnalyticsDailyInner do
|
|
|
165
165
|
end
|
|
166
166
|
end
|
|
167
167
|
|
|
168
|
+
describe 'test attribute "cost_per_thruplay"' do
|
|
169
|
+
it 'should work' do
|
|
170
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
171
|
+
end
|
|
172
|
+
end
|
|
173
|
+
|
|
174
|
+
describe 'test attribute "funnel"' do
|
|
175
|
+
it 'should work' do
|
|
176
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
177
|
+
end
|
|
178
|
+
end
|
|
179
|
+
|
|
180
|
+
describe 'test attribute "engagement_breakdown"' do
|
|
181
|
+
it 'should work' do
|
|
182
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
183
|
+
end
|
|
184
|
+
end
|
|
185
|
+
|
|
168
186
|
describe 'test attribute "last_synced_at"' do
|
|
169
187
|
it 'should work' do
|
|
170
188
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
@@ -88,13 +88,25 @@ describe Zernio::GetCommentAutomation200ResponseAutomation do
|
|
|
88
88
|
describe 'test attribute "match_mode"' do
|
|
89
89
|
it 'should work' do
|
|
90
90
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
91
|
-
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["exact", "contains"])
|
|
91
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["exact", "contains", "word"])
|
|
92
92
|
# validator.allowable_values.each do |value|
|
|
93
93
|
# expect { instance.match_mode = value }.not_to raise_error
|
|
94
94
|
# end
|
|
95
95
|
end
|
|
96
96
|
end
|
|
97
97
|
|
|
98
|
+
describe 'test attribute "exclude_keywords"' do
|
|
99
|
+
it 'should work' do
|
|
100
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
101
|
+
end
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
describe 'test attribute "typo_tolerance"' do
|
|
105
|
+
it 'should work' do
|
|
106
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
107
|
+
end
|
|
108
|
+
end
|
|
109
|
+
|
|
98
110
|
describe 'test attribute "dm_message"' do
|
|
99
111
|
it 'should work' do
|
|
100
112
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
@@ -86,13 +86,25 @@ describe Zernio::ListCommentAutomations200ResponseAutomationsInner do
|
|
|
86
86
|
describe 'test attribute "match_mode"' do
|
|
87
87
|
it 'should work' do
|
|
88
88
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
89
|
-
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["exact", "contains"])
|
|
89
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["exact", "contains", "word"])
|
|
90
90
|
# validator.allowable_values.each do |value|
|
|
91
91
|
# expect { instance.match_mode = value }.not_to raise_error
|
|
92
92
|
# end
|
|
93
93
|
end
|
|
94
94
|
end
|
|
95
95
|
|
|
96
|
+
describe 'test attribute "exclude_keywords"' do
|
|
97
|
+
it 'should work' do
|
|
98
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
99
|
+
end
|
|
100
|
+
end
|
|
101
|
+
|
|
102
|
+
describe 'test attribute "typo_tolerance"' do
|
|
103
|
+
it 'should work' do
|
|
104
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
105
|
+
end
|
|
106
|
+
end
|
|
107
|
+
|
|
96
108
|
describe 'test attribute "dm_message"' do
|
|
97
109
|
it 'should work' do
|
|
98
110
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
@@ -48,13 +48,25 @@ describe Zernio::UpdateCommentAutomation200ResponseAutomation do
|
|
|
48
48
|
describe 'test attribute "match_mode"' do
|
|
49
49
|
it 'should work' do
|
|
50
50
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
51
|
-
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["exact", "contains"])
|
|
51
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["exact", "contains", "word"])
|
|
52
52
|
# validator.allowable_values.each do |value|
|
|
53
53
|
# expect { instance.match_mode = value }.not_to raise_error
|
|
54
54
|
# end
|
|
55
55
|
end
|
|
56
56
|
end
|
|
57
57
|
|
|
58
|
+
describe 'test attribute "exclude_keywords"' do
|
|
59
|
+
it 'should work' do
|
|
60
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
61
|
+
end
|
|
62
|
+
end
|
|
63
|
+
|
|
64
|
+
describe 'test attribute "typo_tolerance"' do
|
|
65
|
+
it 'should work' do
|
|
66
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
67
|
+
end
|
|
68
|
+
end
|
|
69
|
+
|
|
58
70
|
describe 'test attribute "dm_message"' do
|
|
59
71
|
it 'should work' do
|
|
60
72
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
@@ -42,13 +42,25 @@ describe Zernio::UpdateCommentAutomationRequest do
|
|
|
42
42
|
describe 'test attribute "match_mode"' do
|
|
43
43
|
it 'should work' do
|
|
44
44
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
45
|
-
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["exact", "contains"])
|
|
45
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["exact", "contains", "word"])
|
|
46
46
|
# validator.allowable_values.each do |value|
|
|
47
47
|
# expect { instance.match_mode = value }.not_to raise_error
|
|
48
48
|
# end
|
|
49
49
|
end
|
|
50
50
|
end
|
|
51
51
|
|
|
52
|
+
describe 'test attribute "exclude_keywords"' do
|
|
53
|
+
it 'should work' do
|
|
54
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
55
|
+
end
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
describe 'test attribute "typo_tolerance"' do
|
|
59
|
+
it 'should work' do
|
|
60
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
61
|
+
end
|
|
62
|
+
end
|
|
63
|
+
|
|
52
64
|
describe 'test attribute "dm_message"' do
|
|
53
65
|
it 'should work' do
|
|
54
66
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
Binary file
|