facebookbusiness 23.0.2 → 23.0.3

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: 1cda8b8f6254099d16f33581ffb694597fc9c0e23a6bf79f794bdd69a849b78c
4
- data.tar.gz: fae7cfe52b70a8bbba838b2a15af481b28abe6b936a38094d1383b5a86ea3bb2
3
+ metadata.gz: 97328b388d75d19f003fd028d6d6b908fa13c91d376d0ca185704d4ea6e59cdb
4
+ data.tar.gz: b5409fa367b48ba72c9e285389cd80afecdd9295943409687a78331858474d67
5
5
  SHA512:
6
- metadata.gz: a9bc8e26dcf21701209f1056f1f82f06391d9087e7cc9e16a507d6b12451bcabef0dded0480469f541a0852b2d6946fe2ad125191c7c28af3a406c5ad914c213
7
- data.tar.gz: 13958fca7f4ede4e746ad1554bdfa32368aa97cfa068465f525bf950ef9696a70b86ad82d047585c4bd60e7980a263ba1bb2a5442ee6e5155b817e66f5fe35a5
6
+ metadata.gz: f853ae11df15d16b6f9b9c99653d525a466d3d8798dd569d79a21c81205fa5f389f5d7083a058d89c5f4077f581d268ccf0cc705308101659a43eabdebf9103e
7
+ data.tar.gz: 6685d40f0e2890862494d264ae18a4c8c10aca089b785682ada4ab58f755b9366f00d74712f313243f51b06e287038920c31d431d6d69769e73661d74c373214
@@ -49,6 +49,15 @@ module FacebookAds
49
49
  # The share of value generated by this click-conversion pair that is attributed to Meta.
50
50
  attr_accessor :attribution_value
51
51
 
52
+ # The attribution source to differentiate the source of the data, e.g. whether this is from AMM or Custom Attribution or any other sources.
53
+ attr_accessor :attribution_source
54
+
55
+ # The engagement type that caused the original credited conversion.
56
+ attr_accessor :touchpoint_type
57
+
58
+ # The time when the touchpoint event occurred with the ad that the install was credited to.
59
+ attr_accessor :touchpoint_ts
60
+
52
61
 
53
62
 
54
63
  # @param [String] scope
@@ -60,7 +69,10 @@ module FacebookAds
60
69
  # @param [String] attribution_model
61
70
  # @param [String] attr_window
62
71
  # @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)
72
+ # @param [String] attribution_source
73
+ # @param [String] touchpoint_type
74
+ # @param [Integer] touchpoint_ts
75
+ 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, attribution_source: nil, touchpoint_type: nil, touchpoint_ts: nil)
64
76
  unless scope.nil?
65
77
  self.scope = scope
66
78
  end
@@ -88,6 +100,15 @@ module FacebookAds
88
100
  unless attribution_value.nil?
89
101
  self.attribution_value = attribution_value
90
102
  end
103
+ unless attribution_source.nil?
104
+ self.attribution_source = attribution_source
105
+ end
106
+ unless touchpoint_type.nil?
107
+ self.touchpoint_type = touchpoint_type
108
+ end
109
+ unless touchpoint_ts.nil?
110
+ self.touchpoint_ts = touchpoint_ts
111
+ end
91
112
  end
92
113
 
93
114
  # build the object using the input hash
@@ -131,7 +152,19 @@ module FacebookAds
131
152
  end
132
153
 
133
154
  if attributes.has_key?(:'attribution_value')
134
- self.attribution_share = attributes[:'attribution_value']
155
+ self.attribution_value = attributes[:'attribution_value']
156
+ end
157
+
158
+ if attributes.has_key?(:'attribution_source')
159
+ self.attribution_source = attributes[:'attribution_source']
160
+ end
161
+
162
+ if attributes.has_key?(:'touchpoint_type')
163
+ self.touchpoint_type = attributes[:'touchpoint_type']
164
+ end
165
+
166
+ if attributes.has_key?(:'touchpoint_ts')
167
+ self.touchpoint_ts = attributes[:'touchpoint_ts']
135
168
  end
136
169
  end
137
170
 
@@ -147,7 +180,10 @@ module FacebookAds
147
180
  attribution_share == o.attribution_share &&
148
181
  attribution_model == o.attribution_model &&
149
182
  attr_window == o.attr_window &&
150
- attribution_value == o.attribution_value
183
+ attribution_value == o.attribution_value &&
184
+ attribution_source == o.attribution_source &&
185
+ touchpoint_type == o.touchpoint_type &&
186
+ touchpoint_ts == o.touchpoint_ts
151
187
  end
152
188
 
153
189
  # @see the `==` method
@@ -159,7 +195,7 @@ module FacebookAds
159
195
  # @return [Fixnum] Hash code
160
196
  def hash
161
197
  [
162
- scope, visit_time, ad_id, adset_id, campaign_id, attribution_share, attribution_model, attr_window, attribution_value
198
+ scope, visit_time, ad_id, adset_id, campaign_id, attribution_share, attribution_model, attr_window, attribution_value, attribution_source, touchpoint_type, touchpoint_ts
163
199
  ].hash
164
200
  end
165
201
 
@@ -192,6 +228,15 @@ module FacebookAds
192
228
  unless attribution_value.nil?
193
229
  hash['attribution_value'] = attribution_value
194
230
  end
231
+ unless attribution_source.nil?
232
+ hash['attribution_source'] = attribution_source
233
+ end
234
+ unless touchpoint_type.nil?
235
+ hash['touchpoint_type'] = touchpoint_type
236
+ end
237
+ unless touchpoint_ts.nil?
238
+ hash['touchpoint_ts'] = touchpoint_ts
239
+ end
195
240
  hash.to_s
196
241
  end
197
242
 
@@ -226,6 +271,15 @@ module FacebookAds
226
271
  unless attribution_value.nil?
227
272
  hash['attribution_value'] = attribution_value
228
273
  end
274
+ unless attribution_source.nil?
275
+ hash['attribution_source'] = attribution_source
276
+ end
277
+ unless touchpoint_type.nil?
278
+ hash['touchpoint_type'] = touchpoint_type
279
+ end
280
+ unless touchpoint_ts.nil?
281
+ hash['touchpoint_ts'] = touchpoint_ts
282
+ end
229
283
  hash
230
284
  end
231
285
 
@@ -7,6 +7,6 @@
7
7
  # FB:AUTOGEN
8
8
 
9
9
  module FacebookAds
10
- VERSION = '23.0.2'
10
+ VERSION = '23.0.3'
11
11
  API_VERSION = '23.0'
12
12
  end
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: 23.0.2
4
+ version: 23.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Facebook
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-09-26 00:00:00.000000000 Z
11
+ date: 2025-10-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: concurrent-ruby