facebookbusiness 18.0.4 → 19.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (80) hide show
  1. checksums.yaml +4 -4
  2. data/lib/facebook_ads/ad_objects/ad.rb +1 -1
  3. data/lib/facebook_ads/ad_objects/ad_account.rb +22 -0
  4. data/lib/facebook_ads/ad_objects/ad_account_ad_rules_history.rb +3 -0
  5. data/lib/facebook_ads/ad_objects/ad_account_ad_volume.rb +13 -0
  6. data/lib/facebook_ads/ad_objects/ad_account_business_constraints.rb +2 -0
  7. data/lib/facebook_ads/ad_objects/ad_account_delivery_estimate.rb +1 -0
  8. data/lib/facebook_ads/ad_objects/{page_about_story.rb → ad_asset_body.rb} +4 -7
  9. data/lib/facebook_ads/ad_objects/{destination_catalog_settings.rb → ad_asset_call_to_action_type.rb} +3 -2
  10. data/lib/facebook_ads/ad_objects/ad_asset_description.rb +26 -0
  11. data/lib/facebook_ads/ad_objects/ad_asset_feed_spec.rb +1 -0
  12. data/lib/facebook_ads/ad_objects/ad_asset_image.rb +30 -0
  13. data/lib/facebook_ads/ad_objects/ad_asset_link_url.rb +32 -0
  14. data/lib/facebook_ads/ad_objects/ad_asset_title.rb +26 -0
  15. data/lib/facebook_ads/ad_objects/ad_asset_video.rb +34 -0
  16. data/lib/facebook_ads/ad_objects/ad_campaign_delivery_estimate.rb +1 -0
  17. data/lib/facebook_ads/ad_objects/ad_creative.rb +2 -0
  18. data/lib/facebook_ads/ad_objects/ad_creative_branded_content_ads.rb +1 -0
  19. data/lib/facebook_ads/ad_objects/ad_creative_link_data_call_to_action.rb +1 -0
  20. data/lib/facebook_ads/ad_objects/ad_creative_promotion_metadata_spec.rb +30 -0
  21. data/lib/facebook_ads/ad_objects/{instant_articles_stats.rb → ad_creative_site_links_spec.rb} +3 -6
  22. data/lib/facebook_ads/ad_objects/ad_creative_sourcing_spec.rb +2 -0
  23. data/lib/facebook_ads/ad_objects/ad_preview.rb +4 -0
  24. data/lib/facebook_ads/ad_objects/ad_promoted_object.rb +2 -0
  25. data/lib/facebook_ads/ad_objects/ad_rule_execution_spec.rb +1 -0
  26. data/lib/facebook_ads/ad_objects/ad_rule_history.rb +3 -0
  27. data/lib/facebook_ads/ad_objects/ad_set.rb +34 -20
  28. data/lib/facebook_ads/ad_objects/ad_video.rb +4 -2
  29. data/lib/facebook_ads/ad_objects/ads_action_stats.rb +4 -0
  30. data/lib/facebook_ads/ad_objects/ads_histogram_stats.rb +4 -0
  31. data/lib/facebook_ads/ad_objects/ads_insights.rb +7 -1
  32. data/lib/facebook_ads/ad_objects/ads_pixel.rb +1 -4
  33. data/lib/facebook_ads/ad_objects/analytics_segment.rb +39 -0
  34. data/lib/facebook_ads/ad_objects/application.rb +1 -0
  35. data/lib/facebook_ads/ad_objects/branded_content_shadow_ig_media_id.rb +27 -0
  36. data/lib/facebook_ads/ad_objects/branded_content_shadow_ig_user_id.rb +24 -0
  37. data/lib/facebook_ads/ad_objects/business.rb +9 -2
  38. data/lib/facebook_ads/ad_objects/campaign.rb +2 -1
  39. data/lib/facebook_ads/ad_objects/canvas.rb +4 -0
  40. data/lib/facebook_ads/ad_objects/canvas_preview.rb +25 -0
  41. data/lib/facebook_ads/ad_objects/commerce_merchant_settings.rb +0 -7
  42. data/lib/facebook_ads/ad_objects/commerce_order.rb +1 -0
  43. data/lib/facebook_ads/ad_objects/custom_audience.rb +11 -0
  44. data/lib/facebook_ads/ad_objects/custom_audience_data_source.rb +1 -0
  45. data/lib/facebook_ads/ad_objects/custom_audience_salts.rb +26 -0
  46. data/lib/facebook_ads/ad_objects/group.rb +3 -4
  47. data/lib/facebook_ads/ad_objects/ig_media.rb +8 -0
  48. data/lib/facebook_ads/ad_objects/ig_user.rb +28 -0
  49. data/lib/facebook_ads/ad_objects/insights_result.rb +1 -1
  50. data/lib/facebook_ads/ad_objects/instagram_insights_result.rb +2 -5
  51. data/lib/facebook_ads/ad_objects/instagram_user.rb +4 -0
  52. data/lib/facebook_ads/ad_objects/leadgen_form.rb +1 -1
  53. data/lib/facebook_ads/ad_objects/page.rb +2 -12
  54. data/lib/facebook_ads/ad_objects/product_catalog.rb +8 -3
  55. data/lib/facebook_ads/ad_objects/product_feed.rb +1 -0
  56. data/lib/facebook_ads/ad_objects/product_group.rb +0 -3
  57. data/lib/facebook_ads/ad_objects/product_item.rb +23 -3
  58. data/lib/facebook_ads/ad_objects/profile.rb +0 -1
  59. data/lib/facebook_ads/ad_objects/profile_picture_source.rb +0 -4
  60. data/lib/facebook_ads/ad_objects/server_side/action_source.rb +3 -0
  61. data/lib/facebook_ads/ad_objects/server_side/event.rb +22 -2
  62. data/lib/facebook_ads/ad_objects/server_side/messaging_channel.rb +27 -0
  63. data/lib/facebook_ads/ad_objects/server_side/user_data.rb +41 -3
  64. data/lib/facebook_ads/ad_objects/shop.rb +1 -0
  65. data/lib/facebook_ads/ad_objects/targeting.rb +2 -0
  66. data/lib/facebook_ads/ad_objects/targeting_automation.rb +27 -0
  67. data/lib/facebook_ads/ad_objects/user.rb +0 -16
  68. data/lib/facebook_ads/ad_objects/{whitehat_fbdl_run.rb → video_copyright_check_status.rb} +4 -8
  69. data/lib/facebook_ads/ad_objects/video_status.rb +30 -0
  70. data/lib/facebook_ads/ad_objects/video_status_error.rb +26 -0
  71. data/lib/facebook_ads/ad_objects/{game_item.rb → video_status_processing_phase.rb} +4 -14
  72. data/lib/facebook_ads/ad_objects/video_status_publishing_phase.rb +28 -0
  73. data/lib/facebook_ads/ad_objects/video_status_uploading_phase.rb +28 -0
  74. data/lib/facebook_ads/ad_objects/whats_app_business_account.rb +3 -1
  75. data/lib/facebook_ads/ad_objects/whats_app_business_partner_client_verification_submission.rb +30 -0
  76. data/lib/facebook_ads/api_request.rb +2 -2
  77. data/lib/facebook_ads/field_types/upload_file.rb +3 -3
  78. data/lib/facebook_ads/version.rb +2 -2
  79. data/lib/facebook_ads/videos/video_io.rb +1 -1
  80. metadata +27 -9
@@ -304,10 +304,12 @@ module FacebookAds
304
304
  ]
305
305
 
306
306
  ERROR_TYPE = [
307
+ "ADDRESS_BLOCKLISTED_IN_MARKET",
307
308
  "AR_DELETED_DUE_TO_UPDATE",
308
309
  "AR_POLICY_VIOLATED",
309
310
  "AVAILABLE",
310
311
  "BAD_QUALITY_IMAGE",
312
+ "BIZ_MSG_AI_AGENT_DISABLED_BY_USER",
311
313
  "CANNOT_EDIT_SUBSCRIPTION_PRODUCTS",
312
314
  "CHECKOUT_DISABLED_BY_USER",
313
315
  "COMMERCE_ACCOUNT_NOT_LEGALLY_COMPLIANT",
@@ -320,8 +322,10 @@ module FacebookAds
320
322
  "EMPTY_AVAILABILITY",
321
323
  "EMPTY_CONDITION",
322
324
  "EMPTY_DESCRIPTION",
325
+ "EMPTY_IMAGE_URL",
323
326
  "EMPTY_PRODUCT_URL",
324
327
  "EMPTY_SELLER_DESCRIPTION",
328
+ "EMPTY_TITLE",
325
329
  "EXTERNAL_MERCHANT_ID_MISMATCH",
326
330
  "GENERIC_INVALID_FIELD",
327
331
  "HIDDEN_UNTIL_PRODUCT_LAUNCH",
@@ -334,13 +338,28 @@ module FacebookAds
334
338
  "IMAGE_RESOLUTION_LOW",
335
339
  "INACTIVE_SHOPIFY_PRODUCT",
336
340
  "INVALID_COMMERCE_TAX_CATEGORY",
341
+ "INVALID_CONSOLIDATED_LOCALITY_INFORMATION",
342
+ "INVALID_DEALER_COMMUNICATION_PARAMETERS",
343
+ "INVALID_DMA_CODES",
344
+ "INVALID_FB_PAGE_ID",
337
345
  "INVALID_IMAGES",
338
346
  "INVALID_MONETIZER_RETURN_POLICY",
347
+ "INVALID_OFFER_DISCLAIMER_URL",
348
+ "INVALID_OFFER_END_DATE",
339
349
  "INVALID_PRE_ORDER_PARAMS",
350
+ "INVALID_RANGE_FOR_AREA_SIZE",
351
+ "INVALID_RANGE_FOR_BUILT_UP_AREA_SIZE",
352
+ "INVALID_RANGE_FOR_NUM_OF_BATHS",
353
+ "INVALID_RANGE_FOR_NUM_OF_BEDS",
354
+ "INVALID_RANGE_FOR_NUM_OF_ROOMS",
355
+ "INVALID_RANGE_FOR_PARKING_SPACES",
356
+ "INVALID_SHELTER_PAGE_ID",
340
357
  "INVALID_SHIPPING_PROFILE_PARAMS",
341
358
  "INVALID_SUBSCRIPTION_DISABLE_PARAMS",
342
359
  "INVALID_SUBSCRIPTION_ENABLE_PARAMS",
343
360
  "INVALID_SUBSCRIPTION_PARAMS",
361
+ "INVALID_VEHICLE_STATE",
362
+ "INVALID_VIRTUAL_TOUR_URL_DOMAIN",
344
363
  "INVENTORY_ZERO_AVAILABILITY_IN_STOCK",
345
364
  "IN_ANOTHER_PRODUCT_LAUNCH",
346
365
  "ITEM_GROUP_NOT_SPECIFIED",
@@ -360,8 +379,10 @@ module FacebookAds
360
379
  "MISSING_SIZE",
361
380
  "MISSING_TAX_CATEGORY",
362
381
  "NEGATIVE_COMMUNITY_FEEDBACK",
382
+ "NEGATIVE_PRICE",
363
383
  "NOT_ENOUGH_IMAGES",
364
384
  "NOT_ENOUGH_UNIQUE_PRODUCTS",
385
+ "OVERLAY_DISCLAIMER_EXCEEDED_MAX_LENGTH",
365
386
  "PART_OF_PRODUCT_LAUNCH",
366
387
  "PRODUCT_EXPIRED",
367
388
  "PRODUCT_ITEM_HIDDEN_FROM_ALL_SHOPS",
@@ -404,6 +425,8 @@ module FacebookAds
404
425
  "VIDEO_FETCH_FAILED_LINK_BROKEN",
405
426
  "VIDEO_FETCH_FAILED_TIMED_OUT",
406
427
  "VIDEO_NOT_DOWNLOADABLE",
428
+ "WHATSAPP_DISABLED_BY_USER",
429
+ "WHATSAPP_POLICY_VIOLATION",
407
430
  ]
408
431
 
409
432
  MARKED_FOR_PRODUCT_LAUNCH = [
@@ -764,9 +787,6 @@ module FacebookAds
764
787
  field :iphone_app_store_id, 'int'
765
788
  field :iphone_url, 'string'
766
789
  field :launch_date, 'string'
767
- field :offer_price_amount, 'int'
768
- field :offer_price_end_date, 'datetime'
769
- field :offer_price_start_date, 'datetime'
770
790
  field :return_policy_days, 'int'
771
791
  field :windows_phone_app_id, 'string'
772
792
  field :windows_phone_app_name, 'string'
@@ -54,7 +54,6 @@ module FacebookAds
54
54
 
55
55
  has_edge :picture do |edge|
56
56
  edge.get 'ProfilePictureSource' do |api|
57
- api.has_param :breaking_change, { enum: -> { ProfilePictureSource::BREAKING_CHANGE }}
58
57
  api.has_param :height, 'int'
59
58
  api.has_param :redirect, 'bool'
60
59
  api.has_param :type, { enum: -> { ProfilePictureSource::TYPE }}
@@ -20,10 +20,6 @@ module FacebookAds
20
20
  "thumbnail",
21
21
  ]
22
22
 
23
- BREAKING_CHANGE = [
24
- "PROFILE_PICTURE",
25
- ]
26
-
27
23
 
28
24
  field :bottom, 'int'
29
25
  field :cache_key, 'string'
@@ -41,6 +41,9 @@ module FacebookAds
41
41
  # Conversion happened automatically, for example, a subscription renewal that's set on auto-pay each month.
42
42
  'system_generated',
43
43
 
44
+ # Conversion happened through a business messaging channel, such as WhatsApp or Instagram Direct.
45
+ 'business_messaging',
46
+
44
47
  # Conversion happened in a way that is not listed.
45
48
  'other'
46
49
  ]
@@ -75,6 +75,9 @@ module FacebookAds
75
75
  # Only used for the Advanced Measurement API in the Advanced Analytics product
76
76
  attr_accessor :advanced_measurement_table
77
77
 
78
+ # Messaging channel for the event
79
+ attr_accessor :messaging_channel
80
+
78
81
  # @param [String] event_name
79
82
  # @param [int] event_time
80
83
  # @param [String] event_source_url
@@ -88,6 +91,7 @@ module FacebookAds
88
91
  # @param [int] data_processing_options_state
89
92
  # @param String action_source
90
93
  # @param [String] advanced_measurement_table
94
+ # @param [String] messaging_channel
91
95
  def initialize(event_name: nil,
92
96
  event_time: nil,
93
97
  event_source_url: nil,
@@ -100,7 +104,9 @@ module FacebookAds
100
104
  data_processing_options_country: nil,
101
105
  data_processing_options_state: nil,
102
106
  action_source: nil,
103
- advanced_measurement_table: nil)
107
+ advanced_measurement_table: nil,
108
+ messaging_channel: nil
109
+ )
104
110
 
105
111
  unless event_name.nil?
106
112
  self.event_name = event_name
@@ -141,6 +147,9 @@ module FacebookAds
141
147
  unless advanced_measurement_table.nil?
142
148
  self.advanced_measurement_table = advanced_measurement_table
143
149
  end
150
+ unless messaging_channel.nil?
151
+ self.messaging_channel = messaging_channel
152
+ end
144
153
  end
145
154
 
146
155
  # build the object using the input hash
@@ -202,6 +211,10 @@ module FacebookAds
202
211
  if attributes.has_key?(:'advanced_measurement_table')
203
212
  self.advanced_measurement_table = attributes[:'advanced_measurement_table']
204
213
  end
214
+
215
+ if attributes.has_key?(:'messaging_channel')
216
+ self.messaging_channel = attributes[:'messaging_channel']
217
+ end
205
218
  end
206
219
 
207
220
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -249,6 +262,7 @@ module FacebookAds
249
262
  data_processing_options_state == o.data_processing_options_state &&
250
263
  action_source == o.action_source &&
251
264
  advanced_measurement_table == o.advanced_measurement_table
265
+ messaging_channel == o.messaging_channel
252
266
  end
253
267
 
254
268
  # @see the `==` method
@@ -262,7 +276,7 @@ module FacebookAds
262
276
  [
263
277
  event_name, event_time, event_source_url, opt_out, event_id, user_data, custom_data, app_data,
264
278
  data_processing_options, data_processing_options_country, data_processing_options_state,
265
- action_source, advanced_measurement_table,
279
+ action_source, advanced_measurement_table, messaging_channel,
266
280
  ].hash
267
281
  end
268
282
 
@@ -307,6 +321,9 @@ module FacebookAds
307
321
  unless advanced_measurement_table.nil?
308
322
  hash['advanced_measurement_table'] = advanced_measurement_table
309
323
  end
324
+ unless messaging_channel.nil?
325
+ hash['messaging_channel'] = messaging_channel
326
+ end
310
327
  hash.to_s
311
328
  end
312
329
 
@@ -356,6 +373,9 @@ module FacebookAds
356
373
  unless advanced_measurement_table.nil?
357
374
  hash['advanced_measurement_table'] = advanced_measurement_table
358
375
  end
376
+ unless messaging_channel.nil?
377
+ hash['messaging_channel'] = messaging_channel
378
+ end
359
379
  hash
360
380
  end
361
381
 
@@ -0,0 +1,27 @@
1
+ # Copyright (c) 2017-present, Facebook, Inc. All rights reserved.
2
+ #
3
+ # You are hereby granted a non-exclusive, worldwide, royalty-free license to use,
4
+ # copy, modify, and distribute this software in source code or binary form for use
5
+ # in connection with the web services and APIs provided by Facebook.
6
+ #
7
+ # As with any software that integrates with the Facebook platform, your use of
8
+ # this software is subject to the Facebook Platform Policy
9
+ # [http://developers.facebook.com/policy/]. This copyright notice shall be
10
+ # included in all copies or substantial portions of the software.
11
+ #
12
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
13
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
14
+ # FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
15
+ # COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
16
+ # IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
17
+ # CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
18
+
19
+ module FacebookAds
20
+ module ServerSide
21
+ MessagingChannel = Set[
22
+
23
+ # Conversion happened on WhatsApp.
24
+ 'whatsapp',
25
+ ]
26
+ end
27
+ end
@@ -236,6 +236,11 @@ module FacebookAds
236
236
  @madids = [madid]
237
237
  end
238
238
 
239
+ # ctwaClid ID of a conversation that was started on WhatsApp
240
+ attr_accessor :ctwa_clid
241
+
242
+ # pageId ID of the page that the ad is associated with
243
+ attr_accessor :page_id
239
244
 
240
245
  #UserData is a set of identifiers Facebook can use for targeted attribution
241
246
  # @param [String] email
@@ -276,13 +281,16 @@ module FacebookAds
276
281
  # @param [Array<String>] anon_ids
277
282
  # @param [String] madid
278
283
  # @param [Array<String>] madids
284
+ # @param [String] ctwa_clid
285
+ # @param [String] page_id
279
286
  def initialize(email: nil, emails: nil, phone: nil, phones: nil, gender: nil, genders: nil,
280
287
  date_of_birth: nil, dates_of_birth: nil, last_name: nil, last_names: nil,
281
288
  first_name: nil, first_names: nil, city: nil, cities: nil, state: nil, states: nil,
282
289
  country_code: nil, country_codes: nil, zip_code: nil, zip_codes: nil,
283
290
  external_id: nil, external_ids: nil, client_ip_address: nil,
284
291
  client_user_agent: nil, fbc: nil, fbp: nil, subscription_id: nil, lead_id: nil,
285
- f5first: nil, f5last: nil, fi: nil, dobd: nil, dobm: nil, doby: nil, anon_id: nil, anon_ids: nil, madid:nil, madids: nil)
292
+ f5first: nil, f5last: nil, fi: nil, dobd: nil, dobm: nil, doby: nil, anon_id: nil, anon_ids: nil, madid:nil, madids: nil,
293
+ ctwa_clid: nil, page_id: nil)
286
294
  validate_constructor_values(emails, email, 'emails', 'email')
287
295
  validate_constructor_values(phones, phone, 'phones', 'phone')
288
296
  validate_constructor_values(genders, gender, 'genders', 'gender')
@@ -409,6 +417,12 @@ module FacebookAds
409
417
  unless madids.nil?
410
418
  self.madids = madids
411
419
  end
420
+ unless ctwa_clid.nil?
421
+ self.ctwa_clid = ctwa_clid
422
+ end
423
+ unless page_id.nil?
424
+ self.page_id = page_id
425
+ end
412
426
  end
413
427
 
414
428
  # build the object using the input hash
@@ -540,6 +554,14 @@ module FacebookAds
540
554
  elsif attributes.has_key?(:'madid')
541
555
  self.madids = [attributes[:'madid']]
542
556
  end
557
+
558
+ if attributes.has_key?(:'ctwa_clid')
559
+ self.ctwa_clid = [attributes[:'ctwa_clid']]
560
+ end
561
+
562
+ if attributes.has_key?(:'page_id')
563
+ self.page_id = [attributes[:'page_id']]
564
+ end
543
565
  end
544
566
 
545
567
  # Checks equality by comparing each attribute.
@@ -570,7 +592,9 @@ module FacebookAds
570
592
  dobm == o.dobm &&
571
593
  doby == o.doby &&
572
594
  anon_ids == o.anon_ids &&
573
- madids == o.madids
595
+ madids == o.madids &&
596
+ ctwa_clid == ctwa_clid &&
597
+ page_id == page_id
574
598
  end
575
599
 
576
600
  # @see the `==` method
@@ -606,7 +630,9 @@ module FacebookAds
606
630
  dobm,
607
631
  doby,
608
632
  anon_ids,
609
- madids
633
+ madids,
634
+ ctwa_clid,
635
+ page_id
610
636
  ].hash
611
637
 
612
638
  end
@@ -690,6 +716,12 @@ module FacebookAds
690
716
  unless madids.nil?
691
717
  hash['madids'] = madids
692
718
  end
719
+ unless ctwa_clid.nil?
720
+ hash['ctwa_clid'] = ctwa_clid
721
+ end
722
+ unless page_id.nil?
723
+ hash['page_id'] = page_id
724
+ end
693
725
  hash.to_s
694
726
  end
695
727
 
@@ -772,6 +804,12 @@ module FacebookAds
772
804
  unless madid.nil?
773
805
  hash['madid'] = madids
774
806
  end
807
+ unless ctwa_clid.nil?
808
+ hash['ctwa_clid'] = ctwa_clid
809
+ end
810
+ unless page_id.nil?
811
+ hash['page_id'] = page_id
812
+ end
775
813
  hash.select{|k, v| !v.nil?}
776
814
  end
777
815
 
@@ -15,6 +15,7 @@ module FacebookAds
15
15
 
16
16
  class Shop < AdObject
17
17
 
18
+ field :commerce_merchant_settings, 'CommerceMerchantSettings'
18
19
  field :fb_sales_channel, 'object'
19
20
  field :id, 'string'
20
21
  field :ig_sales_channel, 'object'
@@ -28,6 +28,7 @@ module FacebookAds
28
28
  field :adgroup_id, 'string'
29
29
  field :age_max, 'int'
30
30
  field :age_min, 'int'
31
+ field :age_range, { list: 'int' }
31
32
  field :alternate_auto_targeting_option, 'string'
32
33
  field :app_install_state, 'string'
33
34
  field :audience_network_positions, { list: 'string' }
@@ -105,6 +106,7 @@ module FacebookAds
105
106
  field :regions, { list: 'IdName' }
106
107
  field :relationship_statuses, { list: 'int' }
107
108
  field :site_category, { list: 'string' }
109
+ field :targeting_automation, 'TargetingAutomation'
108
110
  field :targeting_optimization, 'string'
109
111
  field :targeting_relaxation_types, 'TargetingRelaxation'
110
112
  field :user_adclusters, { list: 'IdName' }
@@ -0,0 +1,27 @@
1
+ # Copyright (c) Meta Platforms, Inc. and affiliates.
2
+ # All rights reserved.
3
+
4
+ # This source code is licensed under the license found in the
5
+ # LICENSE file in the root directory of this source tree.
6
+
7
+ # FB:AUTOGEN
8
+
9
+ module FacebookAds
10
+ # This class is auto-generated.
11
+
12
+ # For any issues or feature requests related to this class, please let us know
13
+ # on github and we'll fix in our codegen framework. We'll not be able to accept
14
+ # pull request for this class.
15
+
16
+ class TargetingAutomation < AdObject
17
+
18
+ field :advantage_audience, 'int'
19
+ field :shared_audiences, 'int'
20
+ field :value_expression, 'int'
21
+ has_no_id
22
+ has_no_get
23
+ has_no_post
24
+ has_no_delete
25
+
26
+ end
27
+ end
@@ -228,10 +228,6 @@ module FacebookAds
228
228
  end
229
229
  end
230
230
 
231
- has_edge :fbdl_runs do |edge|
232
- edge.get 'WhitehatFbdlRun'
233
- end
234
-
235
231
  has_edge :feed do |edge|
236
232
  edge.get 'Post' do |api|
237
233
  api.has_param :include_hidden, 'bool'
@@ -381,17 +377,6 @@ module FacebookAds
381
377
  end
382
378
  end
383
379
 
384
- has_edge :game_items do |edge|
385
- edge.post 'GameItem' do |api|
386
- api.has_param :action, { enum: -> { GameItem::ACTION }}
387
- api.has_param :app_id, 'string'
388
- api.has_param :drop_table_id, 'string'
389
- api.has_param :ext_id, 'string'
390
- api.has_param :item_id, 'string'
391
- api.has_param :quantity, 'int'
392
- end
393
- end
394
-
395
380
  has_edge :game_times do |edge|
396
381
  edge.post do |api|
397
382
  api.has_param :action, { enum: %w{END HEARTBEAT START }}
@@ -565,7 +550,6 @@ module FacebookAds
565
550
 
566
551
  has_edge :picture do |edge|
567
552
  edge.get 'ProfilePictureSource' do |api|
568
- api.has_param :breaking_change, { enum: -> { ProfilePictureSource::BREAKING_CHANGE }}
569
553
  api.has_param :height, 'int'
570
554
  api.has_param :redirect, 'bool'
571
555
  api.has_param :type, { enum: -> { ProfilePictureSource::TYPE }}
@@ -13,16 +13,12 @@ module FacebookAds
13
13
  # on github and we'll fix in our codegen framework. We'll not be able to accept
14
14
  # pull request for this class.
15
15
 
16
- class WhitehatFbdlRun < AdObject
16
+ class VideoCopyrightCheckStatus < AdObject
17
17
 
18
- field :creation_time, 'datetime'
19
- field :id, 'string'
20
- field :is_pinned, 'bool'
21
- field :note, 'string'
22
- field :result, { list: 'hash' }
23
- field :run_code, 'string'
18
+ field :matches_found, 'bool'
24
19
  field :status, 'string'
25
- field :user_type, 'string'
20
+ has_no_id
21
+ has_no_get
26
22
  has_no_post
27
23
  has_no_delete
28
24
 
@@ -0,0 +1,30 @@
1
+ # Copyright (c) Meta Platforms, Inc. and affiliates.
2
+ # All rights reserved.
3
+
4
+ # This source code is licensed under the license found in the
5
+ # LICENSE file in the root directory of this source tree.
6
+
7
+ # FB:AUTOGEN
8
+
9
+ module FacebookAds
10
+ # This class is auto-generated.
11
+
12
+ # For any issues or feature requests related to this class, please let us know
13
+ # on github and we'll fix in our codegen framework. We'll not be able to accept
14
+ # pull request for this class.
15
+
16
+ class VideoStatus < AdObject
17
+
18
+ field :copyright_check_status, 'VideoCopyrightCheckStatus'
19
+ field :processing_phase, 'VideoStatusProcessingPhase'
20
+ field :processing_progress, 'int'
21
+ field :publishing_phase, 'VideoStatusPublishingPhase'
22
+ field :uploading_phase, 'VideoStatusUploadingPhase'
23
+ field :video_status, 'string'
24
+ has_no_id
25
+ has_no_get
26
+ has_no_post
27
+ has_no_delete
28
+
29
+ end
30
+ end
@@ -0,0 +1,26 @@
1
+ # Copyright (c) Meta Platforms, Inc. and affiliates.
2
+ # All rights reserved.
3
+
4
+ # This source code is licensed under the license found in the
5
+ # LICENSE file in the root directory of this source tree.
6
+
7
+ # FB:AUTOGEN
8
+
9
+ module FacebookAds
10
+ # This class is auto-generated.
11
+
12
+ # For any issues or feature requests related to this class, please let us know
13
+ # on github and we'll fix in our codegen framework. We'll not be able to accept
14
+ # pull request for this class.
15
+
16
+ class VideoStatusError < AdObject
17
+
18
+ field :code, 'int'
19
+ field :message, 'string'
20
+ has_no_id
21
+ has_no_get
22
+ has_no_post
23
+ has_no_delete
24
+
25
+ end
26
+ end
@@ -13,22 +13,12 @@ module FacebookAds
13
13
  # on github and we'll fix in our codegen framework. We'll not be able to accept
14
14
  # pull request for this class.
15
15
 
16
- class GameItem < AdObject
17
- ACTION = [
18
- "CONSUME",
19
- "DROP",
20
- "MARK",
21
- ]
16
+ class VideoStatusProcessingPhase < AdObject
22
17
 
23
-
24
- field :count, 'int'
25
- field :created, 'datetime'
26
- field :ext_id, 'string'
27
- field :id, 'string'
28
- field :item_def, 'string'
29
- field :owner, 'User'
18
+ field :errors, { list: 'VideoStatusError' }
30
19
  field :status, 'string'
31
- field :updated, 'datetime'
20
+ has_no_id
21
+ has_no_get
32
22
  has_no_post
33
23
  has_no_delete
34
24
 
@@ -0,0 +1,28 @@
1
+ # Copyright (c) Meta Platforms, Inc. and affiliates.
2
+ # All rights reserved.
3
+
4
+ # This source code is licensed under the license found in the
5
+ # LICENSE file in the root directory of this source tree.
6
+
7
+ # FB:AUTOGEN
8
+
9
+ module FacebookAds
10
+ # This class is auto-generated.
11
+
12
+ # For any issues or feature requests related to this class, please let us know
13
+ # on github and we'll fix in our codegen framework. We'll not be able to accept
14
+ # pull request for this class.
15
+
16
+ class VideoStatusPublishingPhase < AdObject
17
+
18
+ field :errors, { list: 'VideoStatusError' }
19
+ field :publish_status, 'string'
20
+ field :publish_time, 'datetime'
21
+ field :status, 'string'
22
+ has_no_id
23
+ has_no_get
24
+ has_no_post
25
+ has_no_delete
26
+
27
+ end
28
+ end
@@ -0,0 +1,28 @@
1
+ # Copyright (c) Meta Platforms, Inc. and affiliates.
2
+ # All rights reserved.
3
+
4
+ # This source code is licensed under the license found in the
5
+ # LICENSE file in the root directory of this source tree.
6
+
7
+ # FB:AUTOGEN
8
+
9
+ module FacebookAds
10
+ # This class is auto-generated.
11
+
12
+ # For any issues or feature requests related to this class, please let us know
13
+ # on github and we'll fix in our codegen framework. We'll not be able to accept
14
+ # pull request for this class.
15
+
16
+ class VideoStatusUploadingPhase < AdObject
17
+
18
+ field :bytes_transferred, 'int'
19
+ field :errors, { list: 'VideoStatusError' }
20
+ field :source_file_size, 'int'
21
+ field :status, 'string'
22
+ has_no_id
23
+ has_no_get
24
+ has_no_post
25
+ has_no_delete
26
+
27
+ end
28
+ end
@@ -48,6 +48,7 @@ module FacebookAds
48
48
  field :health_status, 'WhatsAppBusinessHealthStatusForMessageSend'
49
49
  field :id, 'string'
50
50
  field :is_enabled_for_insights, 'bool'
51
+ field :linked_commerce_account, 'CommerceMerchantSettings'
51
52
  field :message_template_namespace, 'string'
52
53
  field :name, 'string'
53
54
  field :on_behalf_of_business_info, 'object'
@@ -101,7 +102,6 @@ module FacebookAds
101
102
  edge.post do |api|
102
103
  api.has_param :categories, { list: { enum: %w{APPOINTMENT_BOOKING CONTACT_US CUSTOMER_SUPPORT LEAD_GENERATION OTHER SIGN_IN SIGN_UP SURVEY }} }
103
104
  api.has_param :clone_flow_id, 'string'
104
- api.has_param :clone_template, 'string'
105
105
  api.has_param :endpoint_uri, 'string'
106
106
  api.has_param :name, 'string'
107
107
  end
@@ -141,6 +141,8 @@ module FacebookAds
141
141
  api.has_param :components, { list: 'hash' }
142
142
  api.has_param :cta_url_link_tracking_opted_out, 'bool'
143
143
  api.has_param :language, 'string'
144
+ api.has_param :library_template_button_inputs, { list: 'hash' }
145
+ api.has_param :library_template_name, 'string'
144
146
  api.has_param :message_send_ttl_seconds, 'int'
145
147
  api.has_param :name, 'string'
146
148
  api.has_param :sub_category, { enum: -> { WhatsAppBusinessAccount::SUB_CATEGORY }}
@@ -0,0 +1,30 @@
1
+ # Copyright (c) Meta Platforms, Inc. and affiliates.
2
+ # All rights reserved.
3
+
4
+ # This source code is licensed under the license found in the
5
+ # LICENSE file in the root directory of this source tree.
6
+
7
+ # FB:AUTOGEN
8
+
9
+ module FacebookAds
10
+ # This class is auto-generated.
11
+
12
+ # For any issues or feature requests related to this class, please let us know
13
+ # on github and we'll fix in our codegen framework. We'll not be able to accept
14
+ # pull request for this class.
15
+
16
+ class WhatsAppBusinessPartnerClientVerificationSubmission < AdObject
17
+
18
+ field :client_business_id, 'string'
19
+ field :id, 'string'
20
+ field :rejection_reasons, { list: 'string' }
21
+ field :submitted_info, 'object'
22
+ field :submitted_time, 'datetime'
23
+ field :update_time, 'datetime'
24
+ field :verification_status, 'string'
25
+ has_no_get
26
+ has_no_post
27
+ has_no_delete
28
+
29
+ end
30
+ end
@@ -97,14 +97,14 @@ module FacebookAds
97
97
  # For Batch API
98
98
  def params_without_files
99
99
  params.reject do |_,v|
100
- v.is_a?(UploadIO)
100
+ v.is_a?(Faraday::UploadIO)
101
101
  end
102
102
  end
103
103
 
104
104
  # For Batch API
105
105
  def files
106
106
  params.select do |_,v|
107
- v.is_a?(UploadIO)
107
+ v.is_a?(Faraday::UploadIO)
108
108
  end
109
109
  end
110
110
  end