zernio-sdk 0.0.1689 → 0.0.1690
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/WebhookPayloadAdReviewReview.md +1 -1
- data/lib/zernio-sdk/models/webhook_payload_ad_delivery_issue.rb +1 -1
- data/lib/zernio-sdk/models/webhook_payload_ad_review.rb +1 -1
- data/lib/zernio-sdk/models/webhook_payload_ad_review_review.rb +1 -1
- data/lib/zernio-sdk/version.rb +1 -1
- data/openapi.yaml +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0ae2b22d3324956f7124263833c7855f957deca75434fd991a6837a20fa6f62d
|
|
4
|
+
data.tar.gz: de2c12e7aad6bf3672df73d303eccdbcdccde4b9d0c75259baf7f16a0f8dc7ea
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 515d60197491c9b6ae09eff4bad3dabc74a4478743314aa4e9715bf58298ca74612ad34c7d3667ea70dc1b22fcd30f7b4040356108705318571188bb6957eed9
|
|
7
|
+
data.tar.gz: 21f78911dc7b9ead2c48912708fa043dd54d0a8f321ba37db84fd6dc276b5336c265db6ba9926491aaa6d2be1020d1a787eb7af3846e1558ab5b1fb50e48e67f
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
7
|
| **status** | **String** | | |
|
|
8
8
|
| **raw** | **String** | Platform-native status string, forwarded verbatim (Meta `ACTIVE` / `DISAPPROVED`, TikTok `DISABLE`, ...). | |
|
|
9
|
-
| **reasons** | [**Array<WebhookPayloadAdReviewReviewReasonsInner>**](WebhookPayloadAdReviewReviewReasonsInner.md) | Why the platform rejected the ad, when it says. Always empty on `approved`.
|
|
9
|
+
| **reasons** | [**Array<WebhookPayloadAdReviewReviewReasonsInner>**](WebhookPayloadAdReviewReviewReasonsInner.md) | Why the platform rejected the ad, when it says. Always empty on `approved`. Pinterest, LinkedIn and Reddit send their own reasons, X sends none, and most other networks only return a generic message. | |
|
|
10
10
|
|
|
11
11
|
## Example
|
|
12
12
|
|
|
@@ -14,7 +14,7 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module Zernio
|
|
17
|
-
# Webhook payload for the `ad.delivery_issue` event. Fires when an ad Zernio already tracked moves into the platform's error state: - Meta `WITH_ISSUES` (payment, policy and account problems) - TikTok account punishment or missing balance -
|
|
17
|
+
# Webhook payload for the `ad.delivery_issue` event. Fires when an ad Zernio already tracked moves into the platform's error state: - Meta `WITH_ISSUES` (payment, policy and account problems) - TikTok account punishment or missing balance - any platform status Zernio does not recognize yet (check `issue.raw`) Ads seen for the first time by a sync never fire it. Detected by Zernio's own ad sync, so it arrives within one sync cycle. Each ad fires at most once per 24 hours. On Meta, `ad.status_changed` with `WITH_ISSUES` can also fire for the same problem, straight from Meta's webhook.
|
|
18
18
|
class WebhookPayloadAdDeliveryIssue < ApiModelBase
|
|
19
19
|
# Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery.
|
|
20
20
|
attr_accessor :id
|
|
@@ -14,7 +14,7 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module Zernio
|
|
17
|
-
# Webhook payload for the `ad.review.approved` and `ad.review.rejected` events. Emitted for every ad network Zernio syncs (Meta, Google, TikTok, LinkedIn, Pinterest, X and the rest). Fires when an ad Zernio already tracked changes review outcome: - `approved`: it leaves review as deliverable, or a rejection is overturned. - `rejected`: the platform rejects it. Ads seen for the first time by a sync, including the history loaded when an account is connected, never fire it. An ad that leaves review paused (for example
|
|
17
|
+
# Webhook payload for the `ad.review.approved` and `ad.review.rejected` events. Emitted for every ad network Zernio syncs (Meta, Google, TikTok, LinkedIn, Pinterest, X, Reddit and the rest). Fires when an ad Zernio already tracked changes review outcome: - `approved`: it leaves review as deliverable, or a rejection is overturned. - `rejected`: the platform rejects it. Ads seen for the first time by a sync, including the history loaded when an account is connected, never fire it. On X, Pinterest and LinkedIn, Zernio reads the review apart from the delivery status. An ad that leaves review while paused (for example under a paused campaign) still sends `approved`. On the other networks the review shows only in the delivery status, so an ad that leaves review paused sends no `approved` event. Detected by Zernio's own ad sync (and, for Meta, the review poll), so it arrives within one sync cycle of the platform's decision, not instantly. Each outcome is delivered at most once per ad per 24 hours.
|
|
18
18
|
class WebhookPayloadAdReview < ApiModelBase
|
|
19
19
|
# Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery.
|
|
20
20
|
attr_accessor :id
|
|
@@ -20,7 +20,7 @@ module Zernio
|
|
|
20
20
|
# Platform-native status string, forwarded verbatim (Meta `ACTIVE` / `DISAPPROVED`, TikTok `DISABLE`, ...).
|
|
21
21
|
attr_accessor :raw
|
|
22
22
|
|
|
23
|
-
# Why the platform rejected the ad, when it says. Always empty on `approved`.
|
|
23
|
+
# Why the platform rejected the ad, when it says. Always empty on `approved`. Pinterest, LinkedIn and Reddit send their own reasons, X sends none, and most other networks only return a generic message.
|
|
24
24
|
attr_accessor :reasons
|
|
25
25
|
|
|
26
26
|
class EnumAttributeValidator
|
data/lib/zernio-sdk/version.rb
CHANGED