facebookbusiness 18.0.0 → 18.0.1

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.
Files changed (43) hide show
  1. checksums.yaml +4 -4
  2. data/lib/facebook_ads/ad_objects/ad_account_ad_volume.rb +1 -0
  3. data/lib/facebook_ads/ad_objects/ad_activity.rb +4 -0
  4. data/lib/facebook_ads/ad_objects/ad_creative.rb +1 -0
  5. data/lib/facebook_ads/ad_objects/ad_creative_degrees_of_freedom_spec.rb +1 -1
  6. data/lib/facebook_ads/ad_objects/ad_creative_feature_details.rb +25 -0
  7. data/lib/facebook_ads/ad_objects/ad_creative_features_spec.rb +51 -0
  8. data/lib/facebook_ads/ad_objects/ad_creative_sourcing_spec.rb +25 -0
  9. data/lib/facebook_ads/ad_objects/ad_preview.rb +1 -0
  10. data/lib/facebook_ads/ad_objects/ad_promoted_object.rb +1 -0
  11. data/lib/facebook_ads/ad_objects/ad_rule.rb +2 -0
  12. data/lib/facebook_ads/ad_objects/ad_video.rb +1 -0
  13. data/lib/facebook_ads/ad_objects/ads_insights.rb +6 -0
  14. data/lib/facebook_ads/ad_objects/application.rb +10 -0
  15. data/lib/facebook_ads/ad_objects/automotive_model.rb +1 -1
  16. data/lib/facebook_ads/ad_objects/campaign.rb +1 -0
  17. data/lib/facebook_ads/ad_objects/commerce_merchant_settings.rb +0 -1
  18. data/lib/facebook_ads/ad_objects/content_publishing_limit_response.rb +26 -0
  19. data/lib/facebook_ads/ad_objects/destination.rb +1 -1
  20. data/lib/facebook_ads/ad_objects/dynamic_video_metadata.rb +26 -0
  21. data/lib/facebook_ads/ad_objects/flight.rb +1 -1
  22. data/lib/facebook_ads/ad_objects/home_listing.rb +1 -1
  23. data/lib/facebook_ads/ad_objects/hotel.rb +1 -1
  24. data/lib/facebook_ads/ad_objects/ig_comment.rb +1 -1
  25. data/lib/facebook_ads/ad_objects/ig_comment_from_user.rb +25 -0
  26. data/lib/facebook_ads/ad_objects/ig_shopping_product_appeal.rb +29 -0
  27. data/lib/facebook_ads/ad_objects/ig_user.rb +6 -6
  28. data/lib/facebook_ads/ad_objects/instagram_shopping_merchant_review_message.rb +26 -0
  29. data/lib/facebook_ads/ad_objects/media_title.rb +1 -1
  30. data/lib/facebook_ads/ad_objects/page.rb +5 -1
  31. data/lib/facebook_ads/ad_objects/page_post_experiment.rb +1 -0
  32. data/lib/facebook_ads/ad_objects/product_item.rb +11 -1
  33. data/lib/facebook_ads/ad_objects/shadow_ig_hashtag.rb +36 -0
  34. data/lib/facebook_ads/ad_objects/shadow_ig_media_builder.rb +25 -0
  35. data/lib/facebook_ads/ad_objects/shadow_ig_user_catalog_product_search.rb +32 -0
  36. data/lib/facebook_ads/ad_objects/shadow_ig_user_catalog_product_variant.rb +26 -0
  37. data/lib/facebook_ads/ad_objects/stories.rb +6 -0
  38. data/lib/facebook_ads/ad_objects/user_available_catalogs.rb +28 -0
  39. data/lib/facebook_ads/ad_objects/vehicle.rb +1 -1
  40. data/lib/facebook_ads/ad_objects/vehicle_offer.rb +1 -1
  41. data/lib/facebook_ads/ad_objects/whats_app_business_account.rb +19 -1
  42. data/lib/facebook_ads/version.rb +1 -1
  43. metadata +15 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7c59b86bf236a188a1cc1798dcfd2adfbde7ba43cda892d42b56f4ce02cd6dd3
4
- data.tar.gz: 7a669a0589d85c68377efde774c8bd364a1f59eaf9359f3da15b57f3cc07efda
3
+ metadata.gz: 679d7ce7444c13349808ee9d6e6d683835d23102a84e60db05b75ac83c0595b1
4
+ data.tar.gz: 5c5129bf9e8b248b966d220b9a465efa1f942fc52cf192e6150841f846c0daa6
5
5
  SHA512:
6
- metadata.gz: 8a1f8d547d9c2ee3d972c7fe79173f457ee02179cf614d69f32625828e209a6b43ace7718296a6f4bd53cc98c15d3d5eb118deb2e2c972f64626cb1f1f641b34
7
- data.tar.gz: b93e9c711ab26c2252bccb679da688144c9094bb63c4f500f80a53c14ce731408afe7312abc2d7deb41f8f59f8a41e5e251ac495aa4b61af27f18b2d7b798761
6
+ metadata.gz: bb7988a876b2c863a16ef0feca6fb6eb3f46cc631e489425279343ba3822f738bfc3dc4e01dd447d1f4f98b41bbc87064ce7274fd5b08272238dfbfe39eaf9ed
7
+ data.tar.gz: 859b24031636c1a4e8b815ec0b065dcd6f89cea910d6be2a584e33b6e5af6694f68b649daf598323ce2c6cc8593bddc2c2b73fce6bb4c97eac6f8459d072870e
@@ -31,6 +31,7 @@ module FacebookAds
31
31
  "AUCTION_OVERLAP",
32
32
  "AUCTION_OVERLAP_CONSOLIDATION",
33
33
  "AUDIENCE_EXPANSION",
34
+ "AUDIENCE_EXPANSION_RETARGETING",
34
35
  "AUTOFLOW_OPT_IN",
35
36
  "AUTOFLOW_OPT_IN_FALLBACK_DUPLICATION_FLOW",
36
37
  "AUTOMATIC_PLACEMENTS",
@@ -84,10 +84,14 @@ module FacebookAds
84
84
  "update_campaign_ad_scheduling",
85
85
  "update_campaign_budget",
86
86
  "update_campaign_budget_optimization_toggling_status",
87
+ "update_campaign_budget_scheduling_state",
87
88
  "update_campaign_delivery_type",
88
89
  "update_campaign_group_ad_scheduling",
90
+ "update_campaign_group_budget_scheduling_state",
89
91
  "update_campaign_group_delivery_type",
92
+ "update_campaign_group_high_demand_periods",
90
93
  "update_campaign_group_spend_cap",
94
+ "update_campaign_high_demand_periods",
91
95
  "update_campaign_name",
92
96
  "update_campaign_run_status",
93
97
  "update_campaign_schedule",
@@ -166,6 +166,7 @@ module FacebookAds
166
166
  field :categorization_criteria, 'string'
167
167
  field :category_media_source, 'string'
168
168
  field :collaborative_ads_lsb_image_bank_id, 'string'
169
+ field :creative_sourcing_spec, 'AdCreativeSourcingSpec'
169
170
  field :degrees_of_freedom_spec, 'AdCreativeDegreesOfFreedomSpec'
170
171
  field :destination_set_id, 'string'
171
172
  field :dynamic_ad_voice, 'string'
@@ -16,7 +16,7 @@ module FacebookAds
16
16
  class AdCreativeDegreesOfFreedomSpec < AdObject
17
17
 
18
18
  field :ad_handle_type, 'string'
19
- field :creative_features_spec, 'object'
19
+ field :creative_features_spec, 'AdCreativeFeaturesSpec'
20
20
  field :degrees_of_freedom_type, 'string'
21
21
  field :image_transformation_types, { list: 'string' }
22
22
  field :multi_media_transformation_type, 'string'
@@ -0,0 +1,25 @@
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 AdCreativeFeatureDetails < AdObject
17
+
18
+ field :enroll_status, 'string'
19
+ has_no_id
20
+ has_no_get
21
+ has_no_post
22
+ has_no_delete
23
+
24
+ end
25
+ end
@@ -0,0 +1,51 @@
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 AdCreativeFeaturesSpec < AdObject
17
+
18
+ field :advantage_plus_creative, 'AdCreativeFeatureDetails'
19
+ field :audio, 'AdCreativeFeatureDetails'
20
+ field :carousel_to_video, 'AdCreativeFeatureDetails'
21
+ field :cv_transformation, 'AdCreativeFeatureDetails'
22
+ field :description_automation, 'AdCreativeFeatureDetails'
23
+ field :dha_optimization, 'AdCreativeFeatureDetails'
24
+ field :ig_glados_feed, 'AdCreativeFeatureDetails'
25
+ field :image_auto_crop, 'AdCreativeFeatureDetails'
26
+ field :image_background_gen, 'AdCreativeFeatureDetails'
27
+ field :image_enhancement, 'AdCreativeFeatureDetails'
28
+ field :image_templates, 'AdCreativeFeatureDetails'
29
+ field :image_touchups, 'AdCreativeFeatureDetails'
30
+ field :image_uncrop, 'AdCreativeFeatureDetails'
31
+ field :inline_comment, 'AdCreativeFeatureDetails'
32
+ field :media_liquidity_animated_image, 'AdCreativeFeatureDetails'
33
+ field :media_order, 'AdCreativeFeatureDetails'
34
+ field :media_type_automation, 'AdCreativeFeatureDetails'
35
+ field :product_extensions, 'AdCreativeFeatureDetails'
36
+ field :product_metadata_automation, 'AdCreativeFeatureDetails'
37
+ field :product_tags, 'AdCreativeFeatureDetails'
38
+ field :profile_card, 'AdCreativeFeatureDetails'
39
+ field :standard_enhancements, 'AdCreativeFeatureDetails'
40
+ field :standard_enhancements_catalog, 'AdCreativeFeatureDetails'
41
+ field :text_generation, 'AdCreativeFeatureDetails'
42
+ field :text_optimizations, 'AdCreativeFeatureDetails'
43
+ field :video_auto_crop, 'AdCreativeFeatureDetails'
44
+ field :video_highlight, 'AdCreativeFeatureDetails'
45
+ has_no_id
46
+ has_no_get
47
+ has_no_post
48
+ has_no_delete
49
+
50
+ end
51
+ end
@@ -0,0 +1,25 @@
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 AdCreativeSourcingSpec < AdObject
17
+
18
+ field :associated_product_set_id, 'string'
19
+ has_no_id
20
+ has_no_get
21
+ has_no_post
22
+ has_no_delete
23
+
24
+ end
25
+ end
@@ -73,6 +73,7 @@ module FacebookAds
73
73
  ]
74
74
 
75
75
  CREATIVE_FEATURE = [
76
+ "product_metadata_automation",
76
77
  "profile_card",
77
78
  "standard_enhancements_catalog",
78
79
  ]
@@ -69,6 +69,7 @@ module FacebookAds
69
69
  field :product_item_id, 'string'
70
70
  field :product_set_id, 'string'
71
71
  field :retention_days, 'string'
72
+ field :whats_app_business_phone_number_id, 'object'
72
73
  has_no_id
73
74
  has_no_get
74
75
  has_no_post
@@ -36,6 +36,8 @@ module FacebookAds
36
36
  "AM_RULE_LANDING_PAGE_BANNER",
37
37
  "AM_SYD_RESOLUTION_FLOW",
38
38
  "AM_SYD_RESOLUTION_FLOW_MODAL",
39
+ "AM_TABLE_DELIVERY_COLUMN_POPOVER",
40
+ "AM_TABLE_TOGGLE_POPOVER",
39
41
  "AM_TOOLBAR_CREATE_RULE_DROPDOWN",
40
42
  "PE_CAMPAIGN_STRUCTURE_MENU",
41
43
  "PE_EDITOR_CARD",
@@ -296,6 +296,7 @@ module FacebookAds
296
296
  field :content_category, 'string'
297
297
  field :content_tags, { list: 'string' }
298
298
  field :copyright, 'VideoCopyright'
299
+ field :copyright_check_information, 'object'
299
300
  field :copyright_monitoring_status, 'string'
300
301
  field :created_time, 'datetime'
301
302
  field :custom_labels, { list: 'string' }
@@ -70,6 +70,12 @@ module FacebookAds
70
70
  "is_conversion_id_modeled",
71
71
  "link_url_asset",
72
72
  "marketing_messages_btn_name",
73
+ "media_asset_url",
74
+ "media_creator",
75
+ "media_destination_url",
76
+ "media_format",
77
+ "media_origin_url",
78
+ "media_text_content",
73
79
  "mmm",
74
80
  "place_page_id",
75
81
  "platform_position",
@@ -435,6 +435,12 @@ module FacebookAds
435
435
  end
436
436
  end
437
437
 
438
+ has_edge :iap_purchases do |edge|
439
+ edge.get do |api|
440
+ api.has_param :order_id, 'string'
441
+ end
442
+ end
443
+
438
444
  has_edge :insights_push_schedule do |edge|
439
445
  edge.get
440
446
  end
@@ -489,6 +495,10 @@ module FacebookAds
489
495
  edge.get 'NullNode'
490
496
  end
491
497
 
498
+ has_edge :objects do |edge|
499
+ edge.get 'NullNode'
500
+ end
501
+
492
502
  has_edge :occludespopups do |edge|
493
503
  edge.post do |api|
494
504
  api.has_param :flash, 'bool'
@@ -71,7 +71,7 @@ module FacebookAds
71
71
  end
72
72
 
73
73
  has_edge :videos_metadata do |edge|
74
- edge.get
74
+ edge.get 'DynamicVideoMetadata'
75
75
  end
76
76
 
77
77
  end
@@ -392,6 +392,7 @@ module FacebookAds
392
392
  field :budget_rebalance_flag, 'bool'
393
393
  field :budget_remaining, 'string'
394
394
  field :buying_type, 'string'
395
+ field :campaign_group_active_time, 'string'
395
396
  field :can_create_brand_lift_study, 'bool'
396
397
  field :can_use_spend_cap, 'bool'
397
398
  field :configured_status, { enum: -> { CONFIGURED_STATUS }}
@@ -17,7 +17,6 @@ module FacebookAds
17
17
 
18
18
  field :braintree_merchant_id, 'string'
19
19
  field :checkout_message, 'string'
20
- field :commerce_store, 'object'
21
20
  field :contact_email, 'string'
22
21
  field :cta, 'string'
23
22
  field :disable_checkout_urls, 'bool'
@@ -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 ContentPublishingLimitResponse < AdObject
17
+
18
+ field :config, 'object'
19
+ field :quota_usage, 'int'
20
+ has_no_id
21
+ has_no_get
22
+ has_no_post
23
+ has_no_delete
24
+
25
+ end
26
+ end
@@ -58,7 +58,7 @@ module FacebookAds
58
58
  end
59
59
 
60
60
  has_edge :videos_metadata do |edge|
61
- edge.get
61
+ edge.get 'DynamicVideoMetadata'
62
62
  end
63
63
 
64
64
  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 DynamicVideoMetadata < AdObject
17
+
18
+ field :id, 'string'
19
+ field :tags, { list: 'string' }
20
+ field :url, 'string'
21
+ field :video, 'AdVideo'
22
+ has_no_post
23
+ has_no_delete
24
+
25
+ end
26
+ end
@@ -59,7 +59,7 @@ module FacebookAds
59
59
  end
60
60
 
61
61
  has_edge :videos_metadata do |edge|
62
- edge.get
62
+ edge.get 'DynamicVideoMetadata'
63
63
  end
64
64
 
65
65
  end
@@ -85,7 +85,7 @@ module FacebookAds
85
85
  end
86
86
 
87
87
  has_edge :videos_metadata do |edge|
88
- edge.get
88
+ edge.get 'DynamicVideoMetadata'
89
89
  end
90
90
 
91
91
  end
@@ -67,7 +67,7 @@ module FacebookAds
67
67
  end
68
68
 
69
69
  has_edge :videos_metadata do |edge|
70
- edge.get
70
+ edge.get 'DynamicVideoMetadata'
71
71
  end
72
72
 
73
73
  end
@@ -15,7 +15,7 @@ module FacebookAds
15
15
 
16
16
  class IgComment < AdObject
17
17
 
18
- field :from, 'object'
18
+ field :from, 'IgCommentFromUser'
19
19
  field :hidden, 'bool'
20
20
  field :id, 'string'
21
21
  field :like_count, 'int'
@@ -0,0 +1,25 @@
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 IgCommentFromUser < AdObject
17
+
18
+ field :id, 'string'
19
+ field :username, 'string'
20
+ has_no_get
21
+ has_no_post
22
+ has_no_delete
23
+
24
+ end
25
+ end
@@ -0,0 +1,29 @@
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 IgShoppingProductAppeal < AdObject
17
+
18
+ field :eligible_for_appeal, 'bool'
19
+ field :product_appeal_status, 'string'
20
+ field :product_id, 'int'
21
+ field :rejection_reasons, { list: 'string' }
22
+ field :review_status, 'string'
23
+ has_no_id
24
+ has_no_get
25
+ has_no_post
26
+ has_no_delete
27
+
28
+ end
29
+ end
@@ -35,18 +35,18 @@ module FacebookAds
35
35
  has_no_delete
36
36
 
37
37
  has_edge :available_catalogs do |edge|
38
- edge.get
38
+ edge.get 'UserAvailableCatalogs'
39
39
  end
40
40
 
41
41
  has_edge :catalog_product_search do |edge|
42
- edge.get do |api|
42
+ edge.get 'ShadowIgUserCatalogProductSearch' do |api|
43
43
  api.has_param :catalog_id, 'string'
44
44
  api.has_param :q, 'string'
45
45
  end
46
46
  end
47
47
 
48
48
  has_edge :content_publishing_limit do |edge|
49
- edge.get do |api|
49
+ edge.get 'ContentPublishingLimitResponse' do |api|
50
50
  api.has_param :since, 'datetime'
51
51
  end
52
52
  end
@@ -116,17 +116,17 @@ module FacebookAds
116
116
  end
117
117
 
118
118
  has_edge :product_appeal do |edge|
119
- edge.get do |api|
119
+ edge.get 'IgShoppingProductAppeal' do |api|
120
120
  api.has_param :product_id, 'string'
121
121
  end
122
- edge.post do |api|
122
+ edge.post 'IgShoppingProductAppeal' do |api|
123
123
  api.has_param :appeal_reason, 'string'
124
124
  api.has_param :product_id, 'string'
125
125
  end
126
126
  end
127
127
 
128
128
  has_edge :recently_searched_hashtags do |edge|
129
- edge.get
129
+ edge.get 'ShadowIgHashtag'
130
130
  end
131
131
 
132
132
  has_edge :stories do |edge|
@@ -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 InstagramShoppingMerchantReviewMessage < AdObject
17
+
18
+ field :help_url, 'string'
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
@@ -66,7 +66,7 @@ module FacebookAds
66
66
  end
67
67
 
68
68
  has_edge :videos_metadata do |edge|
69
- edge.get
69
+ edge.get 'DynamicVideoMetadata'
70
70
  end
71
71
 
72
72
  end
@@ -1361,7 +1361,11 @@ module FacebookAds
1361
1361
  end
1362
1362
 
1363
1363
  has_edge :stories do |edge|
1364
- edge.get 'Stories'
1364
+ edge.get 'Stories' do |api|
1365
+ api.has_param :since, 'datetime'
1366
+ api.has_param :status, { list: { enum: -> { Stories::STATUS }} }
1367
+ api.has_param :until, 'datetime'
1368
+ end
1365
1369
  end
1366
1370
 
1367
1371
  has_edge :subscribed_apps do |edge|
@@ -27,6 +27,7 @@ module FacebookAds
27
27
  field :insight_snapshots, { list: 'map<datetime, list<map<int, Object>>>' }
28
28
  field :name, 'string'
29
29
  field :optimization_goal, 'string'
30
+ field :post_variant_fields, { list: 'string' }
30
31
  field :publish_status, 'string'
31
32
  field :publish_time, 'datetime'
32
33
  field :scheduled_experiment_timestamp, 'datetime'
@@ -75,6 +75,15 @@ module FacebookAds
75
75
  "oz",
76
76
  ]
77
77
 
78
+ VIDEO_FETCH_STATUS = [
79
+ "DIRECT_UPLOAD",
80
+ "FETCHED",
81
+ "FETCH_FAILED",
82
+ "NO_STATUS",
83
+ "OUTDATED",
84
+ "PARTIAL_FETCH",
85
+ ]
86
+
78
87
  VISIBILITY = [
79
88
  "published",
80
89
  "staging",
@@ -727,6 +736,7 @@ module FacebookAds
727
736
  field :size, 'string'
728
737
  field :start_date, 'string'
729
738
  field :url, 'string'
739
+ field :video_fetch_status, { enum: -> { VIDEO_FETCH_STATUS }}
730
740
  field :visibility, { enum: -> { VISIBILITY }}
731
741
  field :wa_compliance_category, 'string'
732
742
  field :additional_uploaded_image_ids, { list: 'string' }
@@ -763,7 +773,7 @@ module FacebookAds
763
773
  end
764
774
 
765
775
  has_edge :videos_metadata do |edge|
766
- edge.get
776
+ edge.get 'DynamicVideoMetadata'
767
777
  end
768
778
 
769
779
  end
@@ -0,0 +1,36 @@
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 ShadowIgHashtag < AdObject
17
+
18
+ field :id, 'string'
19
+ field :name, 'string'
20
+ has_no_post
21
+ has_no_delete
22
+
23
+ has_edge :recent_media do |edge|
24
+ edge.get 'IgMedia' do |api|
25
+ api.has_param :user_id, 'string'
26
+ end
27
+ end
28
+
29
+ has_edge :top_media do |edge|
30
+ edge.get 'IgMedia' do |api|
31
+ api.has_param :user_id, 'string'
32
+ end
33
+ end
34
+
35
+ end
36
+ end
@@ -0,0 +1,25 @@
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 ShadowIgMediaBuilder < AdObject
17
+
18
+ field :id, 'string'
19
+ field :status, 'string'
20
+ field :status_code, 'string'
21
+ has_no_post
22
+ has_no_delete
23
+
24
+ end
25
+ end
@@ -0,0 +1,32 @@
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 ShadowIgUserCatalogProductSearch < AdObject
17
+
18
+ field :image_url, 'string'
19
+ field :is_checkout_flow, 'bool'
20
+ field :merchant_id, 'int'
21
+ field :product_id, 'int'
22
+ field :product_name, 'string'
23
+ field :product_variants, { list: 'ShadowIgUserCatalogProductVariant' }
24
+ field :retailer_id, 'string'
25
+ field :review_status, 'string'
26
+ has_no_id
27
+ has_no_get
28
+ has_no_post
29
+ has_no_delete
30
+
31
+ end
32
+ 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 ShadowIgUserCatalogProductVariant < AdObject
17
+
18
+ field :product_id, 'int'
19
+ field :variant_name, 'string'
20
+ has_no_id
21
+ has_no_get
22
+ has_no_post
23
+ has_no_delete
24
+
25
+ end
26
+ end
@@ -14,8 +14,14 @@ module FacebookAds
14
14
  # pull request for this class.
15
15
 
16
16
  class Stories < AdObject
17
+ STATUS = [
18
+ "ARCHIVED",
19
+ "PUBLISHED",
20
+ ]
21
+
17
22
 
18
23
  field :creation_time, 'string'
24
+ field :media_id, 'string'
19
25
  field :media_type, 'string'
20
26
  field :post_id, 'string'
21
27
  field :status, 'string'
@@ -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 UserAvailableCatalogs < AdObject
17
+
18
+ field :catalog_id, 'string'
19
+ field :catalog_name, 'string'
20
+ field :product_count, 'int'
21
+ field :shop_name, 'string'
22
+ has_no_id
23
+ has_no_get
24
+ has_no_post
25
+ has_no_delete
26
+
27
+ end
28
+ end
@@ -176,7 +176,7 @@ module FacebookAds
176
176
  end
177
177
 
178
178
  has_edge :videos_metadata do |edge|
179
- edge.get
179
+ edge.get 'DynamicVideoMetadata'
180
180
  end
181
181
 
182
182
  end
@@ -86,7 +86,7 @@ module FacebookAds
86
86
  end
87
87
 
88
88
  has_edge :videos_metadata do |edge|
89
- edge.get
89
+ edge.get 'DynamicVideoMetadata'
90
90
  end
91
91
 
92
92
  end
@@ -28,6 +28,12 @@ module FacebookAds
28
28
  "UTILITY",
29
29
  ]
30
30
 
31
+ SUB_CATEGORY = [
32
+ "CUSTOM",
33
+ "ORDER_DETAILS",
34
+ "ORDER_STATUS",
35
+ ]
36
+
31
37
 
32
38
  field :account_review_status, 'string'
33
39
  field :analytics, 'object'
@@ -83,10 +89,22 @@ module FacebookAds
83
89
 
84
90
  has_edge :extensions do |edge|
85
91
  edge.get
92
+ edge.post do |api|
93
+ api.has_param :clone_extension_id, 'string'
94
+ api.has_param :clone_template, 'string'
95
+ api.has_param :data_channel_uri, 'string'
96
+ api.has_param :name, 'string'
97
+ end
86
98
  end
87
99
 
88
100
  has_edge :flows do |edge|
89
101
  edge.get
102
+ edge.post do |api|
103
+ api.has_param :clone_flow_id, 'string'
104
+ api.has_param :clone_template, 'string'
105
+ api.has_param :data_channel_uri, 'string'
106
+ api.has_param :name, 'string'
107
+ end
90
108
  end
91
109
 
92
110
  has_edge :message_campaigns do |edge|
@@ -125,7 +143,7 @@ module FacebookAds
125
143
  api.has_param :language, 'string'
126
144
  api.has_param :message_send_ttl_seconds, 'int'
127
145
  api.has_param :name, 'string'
128
- api.has_param :sub_category, 'object'
146
+ api.has_param :sub_category, { enum: -> { WhatsAppBusinessAccount::SUB_CATEGORY }}
129
147
  end
130
148
  end
131
149
 
@@ -7,6 +7,6 @@
7
7
  # FB:AUTOGEN
8
8
 
9
9
  module FacebookAds
10
- VERSION = '18.0.0'
10
+ VERSION = '18.0.1'
11
11
  API_VERSION = '18.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: 18.0.0
4
+ version: 18.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Facebook
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-09-14 00:00:00.000000000 Z
11
+ date: 2023-09-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: concurrent-ruby
@@ -303,6 +303,8 @@ files:
303
303
  - lib/facebook_ads/ad_objects/ad_creative_collection_thumbnail_info.rb
304
304
  - lib/facebook_ads/ad_objects/ad_creative_degrees_of_freedom_spec.rb
305
305
  - lib/facebook_ads/ad_objects/ad_creative_facebook_branded_content.rb
306
+ - lib/facebook_ads/ad_objects/ad_creative_feature_details.rb
307
+ - lib/facebook_ads/ad_objects/ad_creative_features_spec.rb
306
308
  - lib/facebook_ads/ad_objects/ad_creative_insights.rb
307
309
  - lib/facebook_ads/ad_objects/ad_creative_instagram_branded_content.rb
308
310
  - lib/facebook_ads/ad_objects/ad_creative_interactive_components_spec.rb
@@ -324,6 +326,7 @@ files:
324
326
  - lib/facebook_ads/ad_objects/ad_creative_portrait_customizations.rb
325
327
  - lib/facebook_ads/ad_objects/ad_creative_post_click_configuration.rb
326
328
  - lib/facebook_ads/ad_objects/ad_creative_recommender_settings.rb
329
+ - lib/facebook_ads/ad_objects/ad_creative_sourcing_spec.rb
327
330
  - lib/facebook_ads/ad_objects/ad_creative_static_fallback_spec.rb
328
331
  - lib/facebook_ads/ad_objects/ad_creative_template_url_spec.rb
329
332
  - lib/facebook_ads/ad_objects/ad_creative_text_data.rb
@@ -436,6 +439,7 @@ files:
436
439
  - lib/facebook_ads/ad_objects/commerce_payout.rb
437
440
  - lib/facebook_ads/ad_objects/commerce_settings.rb
438
441
  - lib/facebook_ads/ad_objects/connections_targeting.rb
442
+ - lib/facebook_ads/ad_objects/content_publishing_limit_response.rb
439
443
  - lib/facebook_ads/ad_objects/contextual_bundling_spec.rb
440
444
  - lib/facebook_ads/ad_objects/conversion_action_query.rb
441
445
  - lib/facebook_ads/ad_objects/copyright_reference_container.rb
@@ -472,6 +476,7 @@ files:
472
476
  - lib/facebook_ads/ad_objects/destination_catalog_settings.rb
473
477
  - lib/facebook_ads/ad_objects/dynamic_post_child_attachment.rb
474
478
  - lib/facebook_ads/ad_objects/dynamic_price_config_by_date.rb
479
+ - lib/facebook_ads/ad_objects/dynamic_video_metadata.rb
475
480
  - lib/facebook_ads/ad_objects/engagement.rb
476
481
  - lib/facebook_ads/ad_objects/entity_at_text_range.rb
477
482
  - lib/facebook_ads/ad_objects/event.rb
@@ -497,7 +502,9 @@ files:
497
502
  - lib/facebook_ads/ad_objects/hotel_room.rb
498
503
  - lib/facebook_ads/ad_objects/id_name.rb
499
504
  - lib/facebook_ads/ad_objects/ig_comment.rb
505
+ - lib/facebook_ads/ad_objects/ig_comment_from_user.rb
500
506
  - lib/facebook_ads/ad_objects/ig_media.rb
507
+ - lib/facebook_ads/ad_objects/ig_shopping_product_appeal.rb
501
508
  - lib/facebook_ads/ad_objects/ig_shopping_review_status.rb
502
509
  - lib/facebook_ads/ad_objects/ig_shopping_review_status_onsite_eligibility.rb
503
510
  - lib/facebook_ads/ad_objects/ig_shopping_review_status_reason_with_help_message.rb
@@ -510,6 +517,7 @@ files:
510
517
  - lib/facebook_ads/ad_objects/instagram_insights_result.rb
511
518
  - lib/facebook_ads/ad_objects/instagram_insights_value.rb
512
519
  - lib/facebook_ads/ad_objects/instagram_media.rb
520
+ - lib/facebook_ads/ad_objects/instagram_shopping_merchant_review_message.rb
513
521
  - lib/facebook_ads/ad_objects/instagram_user.rb
514
522
  - lib/facebook_ads/ad_objects/instagram_video_metadata.rb
515
523
  - lib/facebook_ads/ad_objects/instant_articles_stats.rb
@@ -668,7 +676,11 @@ files:
668
676
  - lib/facebook_ads/ad_objects/server_side/http_util.rb
669
677
  - lib/facebook_ads/ad_objects/server_side/user_data.rb
670
678
  - lib/facebook_ads/ad_objects/server_side/util.rb
679
+ - lib/facebook_ads/ad_objects/shadow_ig_hashtag.rb
680
+ - lib/facebook_ads/ad_objects/shadow_ig_media_builder.rb
671
681
  - lib/facebook_ads/ad_objects/shadow_ig_media_product_tags.rb
682
+ - lib/facebook_ads/ad_objects/shadow_ig_user_catalog_product_search.rb
683
+ - lib/facebook_ads/ad_objects/shadow_ig_user_catalog_product_variant.rb
672
684
  - lib/facebook_ads/ad_objects/shop.rb
673
685
  - lib/facebook_ads/ad_objects/split_test_winner.rb
674
686
  - lib/facebook_ads/ad_objects/store_catalog_settings.rb
@@ -699,6 +711,7 @@ files:
699
711
  - lib/facebook_ads/ad_objects/unified_thread.rb
700
712
  - lib/facebook_ads/ad_objects/url.rb
701
713
  - lib/facebook_ads/ad_objects/user.rb
714
+ - lib/facebook_ads/ad_objects/user_available_catalogs.rb
702
715
  - lib/facebook_ads/ad_objects/user_cover_photo.rb
703
716
  - lib/facebook_ads/ad_objects/user_device.rb
704
717
  - lib/facebook_ads/ad_objects/user_id_for_app.rb