facebookbusiness 22.0.1 → 22.0.2
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b612d34593f8901bda82f6cb1cdb86e7030d0e5f7e0926a6bf176c791a48d1e8
|
4
|
+
data.tar.gz: d9a7c42091910025354ce3aefa3556c3e7b0cf5ab500a1211d1b9b8b870e31d9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8df5261a68e1fd1f7e357bd9bd49607f332881b9c820a0bbcda34978ef3eba87d5f465d1e5d3c9469486e25c26dc3de67713ea8bf4b5ef37228ff78913bb6434
|
7
|
+
data.tar.gz: 71e8bcd60c99bdb03a499c6fe6f017af5a811182852c53953a62ea4f149fe95807dae8a797dc03157ae78dedc43c766395e7595ffaf5525fb60fc3e054696fe6
|
@@ -46,6 +46,9 @@ module FacebookAds
|
|
46
46
|
# Attribution woindow in days.
|
47
47
|
attr_accessor :attr_window
|
48
48
|
|
49
|
+
# The share of value generated by this click-conversion pair that is attributed to Meta.
|
50
|
+
attr_accessor :attribution_value
|
51
|
+
|
49
52
|
|
50
53
|
|
51
54
|
# @param [String] scope
|
@@ -56,7 +59,8 @@ module FacebookAds
|
|
56
59
|
# @param [Float] attribution_share
|
57
60
|
# @param [String] attribution_model
|
58
61
|
# @param [String] attr_window
|
59
|
-
|
62
|
+
# @param [Float] attribution_value
|
63
|
+
def initialize(scope: nil, visit_time: nil, ad_id: nil, adset_id: nil, campaign_id: nil, attribution_share: nil, attribution_model: nil, attr_window: nil, attribution_value: nil)
|
60
64
|
unless scope.nil?
|
61
65
|
self.scope = scope
|
62
66
|
end
|
@@ -81,6 +85,9 @@ module FacebookAds
|
|
81
85
|
unless attr_window.nil?
|
82
86
|
self.attr_window = attr_window
|
83
87
|
end
|
88
|
+
unless attribution_value.nil?
|
89
|
+
self.attribution_value = attribution_value
|
90
|
+
end
|
84
91
|
end
|
85
92
|
|
86
93
|
# build the object using the input hash
|
@@ -122,6 +129,10 @@ module FacebookAds
|
|
122
129
|
if attributes.has_key?(:'attr_window')
|
123
130
|
self.attr_window = attributes[:'attr_window']
|
124
131
|
end
|
132
|
+
|
133
|
+
if attributes.has_key?(:'attribution_value')
|
134
|
+
self.attribution_share = attributes[:'attribution_value']
|
135
|
+
end
|
125
136
|
end
|
126
137
|
|
127
138
|
# Checks equality by comparing each attribute.
|
@@ -135,7 +146,8 @@ module FacebookAds
|
|
135
146
|
campaign_id == o.campaign_id &&
|
136
147
|
attribution_share == o.attribution_share &&
|
137
148
|
attribution_model == o.attribution_model &&
|
138
|
-
attr_window == o.attr_window
|
149
|
+
attr_window == o.attr_window &&
|
150
|
+
attribution_value == o.attribution_value
|
139
151
|
end
|
140
152
|
|
141
153
|
# @see the `==` method
|
@@ -147,7 +159,7 @@ module FacebookAds
|
|
147
159
|
# @return [Fixnum] Hash code
|
148
160
|
def hash
|
149
161
|
[
|
150
|
-
scope, visit_time, ad_id, adset_id, campaign_id, attribution_share, attribution_model, attr_window
|
162
|
+
scope, visit_time, ad_id, adset_id, campaign_id, attribution_share, attribution_model, attr_window, attribution_value
|
151
163
|
].hash
|
152
164
|
end
|
153
165
|
|
@@ -177,6 +189,9 @@ module FacebookAds
|
|
177
189
|
unless attr_window.nil?
|
178
190
|
hash['attr_window'] = attr_window
|
179
191
|
end
|
192
|
+
unless attribution_value.nil?
|
193
|
+
hash['attribution_value'] = attribution_value
|
194
|
+
end
|
180
195
|
hash.to_s
|
181
196
|
end
|
182
197
|
|
@@ -208,6 +223,9 @@ module FacebookAds
|
|
208
223
|
unless attr_window.nil?
|
209
224
|
hash['attr_window'] = attr_window
|
210
225
|
end
|
226
|
+
unless attribution_value.nil?
|
227
|
+
hash['attribution_value'] = attribution_value
|
228
|
+
end
|
211
229
|
hash
|
212
230
|
end
|
213
231
|
|
@@ -25,6 +25,10 @@ module FacebookAds
|
|
25
25
|
# Example: 142.54.
|
26
26
|
attr_accessor :value
|
27
27
|
|
28
|
+
# A numeric net_revenue associated with this event. This could be a monetary net_revenue or a net_revenue in some other metric.
|
29
|
+
# Example: 30.54.
|
30
|
+
attr_accessor :net_revenue
|
31
|
+
|
28
32
|
# The currency for the value specified, if applicable. Currency must be a valid ISO 4217 three digit currency code.
|
29
33
|
# Example: 'usd'.
|
30
34
|
attr_accessor :currency
|
@@ -83,6 +87,7 @@ module FacebookAds
|
|
83
87
|
|
84
88
|
|
85
89
|
# @param [Float] value
|
90
|
+
# @param [Float] net_revenue
|
86
91
|
# @param [String] currency
|
87
92
|
# @param [String] content_name
|
88
93
|
# @param [String] content_category
|
@@ -98,6 +103,7 @@ module FacebookAds
|
|
98
103
|
# @param [String] item_number
|
99
104
|
# @param [String] custom_properties
|
100
105
|
def initialize(value: nil,
|
106
|
+
net_revenue: nil,
|
101
107
|
currency: nil,
|
102
108
|
content_name: nil,
|
103
109
|
content_category: nil,
|
@@ -116,6 +122,9 @@ module FacebookAds
|
|
116
122
|
unless value.nil?
|
117
123
|
self.value = value
|
118
124
|
end
|
125
|
+
unless net_revenue.nil?
|
126
|
+
self.net_revenue = net_revenue
|
127
|
+
end
|
119
128
|
unless currency.nil?
|
120
129
|
self.currency = currency
|
121
130
|
end
|
@@ -173,6 +182,10 @@ module FacebookAds
|
|
173
182
|
self.value = attributes[:'value']
|
174
183
|
end
|
175
184
|
|
185
|
+
if attributes.has_key?(:'net_revenue')
|
186
|
+
self.net_revenue = attributes[:'net_revenue']
|
187
|
+
end
|
188
|
+
|
176
189
|
if attributes.has_key?(:'currency')
|
177
190
|
self.currency = attributes[:'currency']
|
178
191
|
end
|
@@ -239,6 +252,7 @@ module FacebookAds
|
|
239
252
|
return true if self.equal?(o)
|
240
253
|
self.class == o.class &&
|
241
254
|
value == o.value &&
|
255
|
+
net_revenue == o.net_revenue &&
|
242
256
|
currency == o.currency &&
|
243
257
|
content_name == o.content_name &&
|
244
258
|
content_category == o.content_category &&
|
@@ -265,6 +279,7 @@ module FacebookAds
|
|
265
279
|
def hash
|
266
280
|
[
|
267
281
|
value,
|
282
|
+
net_revenue,
|
268
283
|
currency,
|
269
284
|
content_name,
|
270
285
|
content_category,
|
@@ -289,6 +304,9 @@ module FacebookAds
|
|
289
304
|
unless value.nil?
|
290
305
|
hash['value'] = value
|
291
306
|
end
|
307
|
+
unless net_revenue.nil?
|
308
|
+
hash['net_revenue'] = net_revenue
|
309
|
+
end
|
292
310
|
unless currency.nil?
|
293
311
|
hash['currency'] = currency
|
294
312
|
end
|
@@ -342,6 +360,9 @@ module FacebookAds
|
|
342
360
|
unless value.nil?
|
343
361
|
hash['value'] = value
|
344
362
|
end
|
363
|
+
unless net_revenue.nil?
|
364
|
+
hash['net_revenue'] = net_revenue
|
365
|
+
end
|
345
366
|
unless currency.nil?
|
346
367
|
hash['currency'] = FacebookAds::ServerSide::Util.normalize(currency, 'currency')
|
347
368
|
end
|
@@ -29,15 +29,29 @@ module FacebookAds
|
|
29
29
|
# A Unix timestamp in seconds indicating when the original event occurred.
|
30
30
|
attr_accessor :event_time
|
31
31
|
|
32
|
+
# The order ID for this transaction as a string.
|
33
|
+
attr_accessor :order_id
|
34
|
+
|
35
|
+
# A unique string chosen by the advertiser.
|
36
|
+
attr_accessor :event_id
|
37
|
+
|
32
38
|
# @param [String] event_name
|
33
39
|
# @param [int] event_time
|
34
|
-
|
40
|
+
# @param [String] order_id
|
41
|
+
# @param [String] event_id
|
42
|
+
def initialize(event_name: nil, event_time: nil, order_id: nil, event_id: nil)
|
35
43
|
unless event_name.nil?
|
36
44
|
self.event_name = event_name
|
37
45
|
end
|
38
46
|
unless event_time.nil?
|
39
47
|
self.event_time = event_time
|
40
48
|
end
|
49
|
+
unless order_id.nil?
|
50
|
+
self.order_id = order_id
|
51
|
+
end
|
52
|
+
unless event_id.nil?
|
53
|
+
self.event_id = event_id
|
54
|
+
end
|
41
55
|
end
|
42
56
|
|
43
57
|
# build the object using the input hash
|
@@ -55,6 +69,14 @@ module FacebookAds
|
|
55
69
|
if attributes.has_key?(:'event_time')
|
56
70
|
self.event_time = attributes[:'event_time']
|
57
71
|
end
|
72
|
+
|
73
|
+
if attributes.has_key?(:'order_id')
|
74
|
+
self.order_id = attributes[:'order_id']
|
75
|
+
end
|
76
|
+
|
77
|
+
if attributes.has_key?(:'event_id')
|
78
|
+
self.event_id = attributes[:'event_id']
|
79
|
+
end
|
58
80
|
end
|
59
81
|
|
60
82
|
# Checks equality by comparing each attribute.
|
@@ -62,7 +84,9 @@ module FacebookAds
|
|
62
84
|
return true if self.equal?(o)
|
63
85
|
self.class == o.class &&
|
64
86
|
event_name == o.event_name &&
|
65
|
-
event_time == o.event_time
|
87
|
+
event_time == o.event_time &&
|
88
|
+
order_id == o.order_id &&
|
89
|
+
event_id == o.event_id
|
66
90
|
end
|
67
91
|
|
68
92
|
# @see the `==` method
|
@@ -74,7 +98,7 @@ module FacebookAds
|
|
74
98
|
# @return [Fixnum] Hash code
|
75
99
|
def hash
|
76
100
|
[
|
77
|
-
event_name, event_time,
|
101
|
+
event_name, event_time, order_id, event_id,
|
78
102
|
].hash
|
79
103
|
end
|
80
104
|
|
@@ -86,6 +110,12 @@ module FacebookAds
|
|
86
110
|
unless event_time.nil?
|
87
111
|
hash['event_time'] = event_time
|
88
112
|
end
|
113
|
+
unless order_id.nil?
|
114
|
+
hash['order_id'] = order_id
|
115
|
+
end
|
116
|
+
unless event_id.nil?
|
117
|
+
hash['event_id'] = event_id
|
118
|
+
end
|
89
119
|
hash.to_s
|
90
120
|
end
|
91
121
|
|
@@ -99,6 +129,12 @@ module FacebookAds
|
|
99
129
|
unless event_time.nil?
|
100
130
|
hash['event_time'] = event_time
|
101
131
|
end
|
132
|
+
unless order_id.nil?
|
133
|
+
hash['order_id'] = order_id
|
134
|
+
end
|
135
|
+
unless event_id.nil?
|
136
|
+
hash['event_id'] = event_id
|
137
|
+
end
|
102
138
|
hash
|
103
139
|
end
|
104
140
|
|
data/lib/facebook_ads/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: facebookbusiness
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 22.0.
|
4
|
+
version: 22.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Facebook
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-
|
11
|
+
date: 2025-05-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: concurrent-ruby
|
@@ -42,16 +42,22 @@ dependencies:
|
|
42
42
|
name: faraday-multipart
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: 1.0.4
|
48
|
+
- - "~>"
|
49
|
+
- !ruby/object:Gem::Version
|
50
|
+
version: '1.0'
|
48
51
|
type: :runtime
|
49
52
|
prerelease: false
|
50
53
|
version_requirements: !ruby/object:Gem::Requirement
|
51
54
|
requirements:
|
52
|
-
- - "
|
55
|
+
- - ">="
|
53
56
|
- !ruby/object:Gem::Version
|
54
57
|
version: 1.0.4
|
58
|
+
- - "~>"
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: '1.0'
|
55
61
|
- !ruby/object:Gem::Dependency
|
56
62
|
name: json
|
57
63
|
requirement: !ruby/object:Gem::Requirement
|