late-sdk 0.0.1377 → 0.0.1378
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/WebhookPayloadCommentCommentAd.md +4 -2
- data/lib/zernio-sdk/models/webhook_payload_comment_comment_ad.rb +16 -6
- data/lib/zernio-sdk/version.rb +1 -1
- data/openapi.yaml +1 -1
- data/spec/models/webhook_payload_comment_comment_ad_spec.rb +6 -0
- data/zernio-sdk-0.0.1378.gem +0 -0
- metadata +2 -2
- data/zernio-sdk-0.0.1377.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: 2704fbe4e4e43b27cde8b7469f2ec6dae825dde42e2f34481eb982c453792432
|
|
4
|
+
data.tar.gz: 1c1b93bce1714ec20b43ce1d0548e470a6cda694e8a19cbac855443e92e7e51f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ad799f15da45d83da46cedae25e569f49ec4d7509e518a5a5d19fd6a41a31be3aa4bdf68339a4f4438981a3d41bceba33b937c9546423f48559b184bb1f0c45b
|
|
7
|
+
data.tar.gz: 40f492ef2fcf8ec2b1234739817c15dd12afe694220cf1c265f4a6e22e47eba2db83b80ca237d079a74506037ef73d498a62b1c0e0e59410da795b2f2639880a
|
|
@@ -7,7 +7,8 @@
|
|
|
7
7
|
| **id** | **String** | Meta ad ID (Instagram only). | [optional] |
|
|
8
8
|
| **title** | **String** | Ad creative title (Instagram only). | [optional] |
|
|
9
9
|
| **original_media_id** | **String** | Original media ID that Meta reports for the ad (Instagram only). | [optional] |
|
|
10
|
-
| **promotion_status** | **String** | Facebook
|
|
10
|
+
| **promotion_status** | **String** | Facebook only. The parent post's promotion_status as the Graph API returns it, for example \"active\" (organic post currently boosted). Ad dark posts usually report \"inactive\" and sometimes \"ineligible\", so use isDarkPost, not this value, to tell an ad comment apart. | [optional] |
|
|
11
|
+
| **is_dark_post** | **Boolean** | Facebook only: true when the post is an unpublished ad creative (dark post), false for a boosted organic post. | [optional] |
|
|
11
12
|
|
|
12
13
|
## Example
|
|
13
14
|
|
|
@@ -18,7 +19,8 @@ instance = Zernio::WebhookPayloadCommentCommentAd.new(
|
|
|
18
19
|
id: null,
|
|
19
20
|
title: null,
|
|
20
21
|
original_media_id: null,
|
|
21
|
-
promotion_status: null
|
|
22
|
+
promotion_status: null,
|
|
23
|
+
is_dark_post: null
|
|
22
24
|
)
|
|
23
25
|
```
|
|
24
26
|
|
|
@@ -14,7 +14,7 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module Zernio
|
|
17
|
-
# Ad context. Present only when the comment was made on paid content. Instagram: populated from the webhook payload's value.media.ad_id, value.media.ad_title and value.media.original_media_id, each only when Meta includes it. Facebook: populated
|
|
17
|
+
# Ad context. Present only when the comment was made on paid content. Instagram: populated from the webhook payload's value.media.ad_id, value.media.ad_title and value.media.original_media_id, each only when Meta includes it. Facebook: populated from a Graph API lookup of the parent post. Present when the post is an ad dark post (isDarkPost true, whatever its promotionStatus) or an organic post that is or was boosted (promotionStatus \"active\", \"extendable\" or \"finished\"). Meta does not link a dark post back to its ad, so id and title are never set on Facebook. Absent for comments on organic posts that are not promoted.
|
|
18
18
|
class WebhookPayloadCommentCommentAd < ApiModelBase
|
|
19
19
|
# Meta ad ID (Instagram only).
|
|
20
20
|
attr_accessor :id
|
|
@@ -25,16 +25,20 @@ module Zernio
|
|
|
25
25
|
# Original media ID that Meta reports for the ad (Instagram only).
|
|
26
26
|
attr_accessor :original_media_id
|
|
27
27
|
|
|
28
|
-
# Facebook
|
|
28
|
+
# Facebook only. The parent post's promotion_status as the Graph API returns it, for example \"active\" (organic post currently boosted). Ad dark posts usually report \"inactive\" and sometimes \"ineligible\", so use isDarkPost, not this value, to tell an ad comment apart.
|
|
29
29
|
attr_accessor :promotion_status
|
|
30
30
|
|
|
31
|
+
# Facebook only: true when the post is an unpublished ad creative (dark post), false for a boosted organic post.
|
|
32
|
+
attr_accessor :is_dark_post
|
|
33
|
+
|
|
31
34
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
32
35
|
def self.attribute_map
|
|
33
36
|
{
|
|
34
37
|
:'id' => :'id',
|
|
35
38
|
:'title' => :'title',
|
|
36
39
|
:'original_media_id' => :'originalMediaId',
|
|
37
|
-
:'promotion_status' => :'promotionStatus'
|
|
40
|
+
:'promotion_status' => :'promotionStatus',
|
|
41
|
+
:'is_dark_post' => :'isDarkPost'
|
|
38
42
|
}
|
|
39
43
|
end
|
|
40
44
|
|
|
@@ -54,7 +58,8 @@ module Zernio
|
|
|
54
58
|
:'id' => :'String',
|
|
55
59
|
:'title' => :'String',
|
|
56
60
|
:'original_media_id' => :'String',
|
|
57
|
-
:'promotion_status' => :'String'
|
|
61
|
+
:'promotion_status' => :'String',
|
|
62
|
+
:'is_dark_post' => :'Boolean'
|
|
58
63
|
}
|
|
59
64
|
end
|
|
60
65
|
|
|
@@ -95,6 +100,10 @@ module Zernio
|
|
|
95
100
|
if attributes.key?(:'promotion_status')
|
|
96
101
|
self.promotion_status = attributes[:'promotion_status']
|
|
97
102
|
end
|
|
103
|
+
|
|
104
|
+
if attributes.key?(:'is_dark_post')
|
|
105
|
+
self.is_dark_post = attributes[:'is_dark_post']
|
|
106
|
+
end
|
|
98
107
|
end
|
|
99
108
|
|
|
100
109
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -120,7 +129,8 @@ module Zernio
|
|
|
120
129
|
id == o.id &&
|
|
121
130
|
title == o.title &&
|
|
122
131
|
original_media_id == o.original_media_id &&
|
|
123
|
-
promotion_status == o.promotion_status
|
|
132
|
+
promotion_status == o.promotion_status &&
|
|
133
|
+
is_dark_post == o.is_dark_post
|
|
124
134
|
end
|
|
125
135
|
|
|
126
136
|
# @see the `==` method
|
|
@@ -132,7 +142,7 @@ module Zernio
|
|
|
132
142
|
# Calculates hash code according to all attributes.
|
|
133
143
|
# @return [Integer] Hash code
|
|
134
144
|
def hash
|
|
135
|
-
[id, title, original_media_id, promotion_status].hash
|
|
145
|
+
[id, title, original_media_id, promotion_status, is_dark_post].hash
|
|
136
146
|
end
|
|
137
147
|
|
|
138
148
|
# Builds the object from hash
|
data/lib/zernio-sdk/version.rb
CHANGED