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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d00c3a6b1f5b13962014366c01021773b738b76a5ce1bcd7da59965010e01658
4
- data.tar.gz: 700ba4960587ea06b4dafceecc4a5750f70bdf387932a46ea131a64b4ea48a76
3
+ metadata.gz: 2704fbe4e4e43b27cde8b7469f2ec6dae825dde42e2f34481eb982c453792432
4
+ data.tar.gz: 1c1b93bce1714ec20b43ce1d0548e470a6cda694e8a19cbac855443e92e7e51f
5
5
  SHA512:
6
- metadata.gz: 7f7d60c272ea1f7d05ed79e9d47b11c4a186ab9c3ae82f5c9f2507efc47e1a5934da50a4975f9694a25fbddd79f149f764ba2cb183b80753d18feff29da0f913
7
- data.tar.gz: c6dc43c19776f4b9a7f0de5c129cfd2935c23f0b8f747419fbbc3cc459e539fbae39ef039c44e6fad1165639989af6d0de7cac7ab607f1d8420c7faeabf9e1e3
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 promotion status returned by Graph API. Common values: \"active\" (organic post currently boosted), \"ineligible\" (dark post or ad creative, not promotable because it already is an ad). | [optional] |
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 via a Graph API lookup of the parent post's promotion_status. Absent for comments on organic posts that are not currently promoted.
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 promotion status returned by Graph API. Common values: \"active\" (organic post currently boosted), \"ineligible\" (dark post or ad creative, not promotable because it already is an ad).
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
@@ -11,5 +11,5 @@ Generator version: 7.19.0
11
11
  =end
12
12
 
13
13
  module Zernio
14
- VERSION = '0.0.1377'
14
+ VERSION = '0.0.1378'
15
15
  end