facebookbusiness 19.0.2 → 19.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (33) hide show
  1. checksums.yaml +4 -4
  2. data/lib/facebook_ads/ad_objects/ad_account.rb +17 -0
  3. data/lib/facebook_ads/ad_objects/ad_account_ad_volume.rb +5 -0
  4. data/lib/facebook_ads/ad_objects/ad_account_targeting_unified.rb +1 -0
  5. data/lib/facebook_ads/ad_objects/ad_activity.rb +1 -0
  6. data/lib/facebook_ads/ad_objects/ad_asset_feed_spec.rb +8 -0
  7. data/lib/facebook_ads/ad_objects/ad_creative.rb +7 -0
  8. data/lib/facebook_ads/ad_objects/ad_creative_features_spec.rb +4 -0
  9. data/lib/facebook_ads/ad_objects/ad_creative_link_data.rb +1 -0
  10. data/lib/facebook_ads/ad_objects/ad_creative_link_data_call_to_action.rb +7 -0
  11. data/lib/facebook_ads/ad_objects/ad_creative_sourcing_spec.rb +1 -0
  12. data/lib/facebook_ads/ad_objects/ad_preview.rb +3 -0
  13. data/lib/facebook_ads/ad_objects/ad_set.rb +1 -0
  14. data/lib/facebook_ads/ad_objects/ads_pixel.rb +0 -4
  15. data/lib/facebook_ads/ad_objects/application.rb +1 -7
  16. data/lib/facebook_ads/ad_objects/commerce_merchant_settings.rb +0 -12
  17. data/lib/facebook_ads/ad_objects/commerce_order.rb +12 -2
  18. data/lib/facebook_ads/ad_objects/custom_audience.rb +2 -0
  19. data/lib/facebook_ads/ad_objects/destination.rb +1 -0
  20. data/lib/facebook_ads/ad_objects/flight.rb +1 -0
  21. data/lib/facebook_ads/ad_objects/hotel.rb +1 -0
  22. data/lib/facebook_ads/ad_objects/{page_commerce_eligibility.rb → ig_upcoming_event.rb} +5 -6
  23. data/lib/facebook_ads/ad_objects/instagram_user.rb +6 -1
  24. data/lib/facebook_ads/ad_objects/local_service_business.rb +1 -0
  25. data/lib/facebook_ads/ad_objects/page.rb +2 -4
  26. data/lib/facebook_ads/ad_objects/product_catalog.rb +10 -0
  27. data/lib/facebook_ads/ad_objects/product_item.rb +1 -0
  28. data/lib/facebook_ads/ad_objects/targeting_geo_location.rb +0 -1
  29. data/lib/facebook_ads/ad_objects/whats_app_business_account.rb +5 -2
  30. data/lib/facebook_ads/ad_objects/whats_app_business_partner_client_verification_submission.rb +15 -2
  31. data/lib/facebook_ads/version.rb +1 -1
  32. metadata +3 -4
  33. data/lib/facebook_ads/ad_objects/targeting_geo_location_location_expansion.rb +0 -25
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ddfd24328db761b8d597320db3e5378bdbcb6ab01c8247cb35cc576ecb773110
4
- data.tar.gz: '099e82cd26bc0b292abab50375e963321ab2dae0acab1e69bbd58d734dfd91f9'
3
+ metadata.gz: 486381fb8eee188c15334c7c780601dc0db1b6ee97f874744042daa84872ddda
4
+ data.tar.gz: b1ec8da0174c26f76adcd66f52d3c3a9286db4e8b8b4e3626bfb817f677cb6a9
5
5
  SHA512:
6
- metadata.gz: e74f3a23a360f6c1cd2bb1b70f2ce99c88ccff6c8184e88140b848df3ecca90fe59ff39137a36734cad740d2c56998fd4ae8f3b6a80b853816ef4863946fdeed
7
- data.tar.gz: 56f45589f54748591fb1c796bf1de579be277b0d76ffcd61be50d76d5c0cd1e3151908f35ee45023611d88ca4d6fe74373e2cd97cb4642a05340d9e792eea31d
6
+ metadata.gz: effca5a73c1ced5b59d8b085fc13bac37f6ecfff84f627bc746385ab2eedf12010df8b3b9e1b2fc0f7facb95265526cf9a48360cfefcc8aa749d548ddb8f4bce
7
+ data.tar.gz: '058bf162289091bdb95bd433784b002f1463d5132f4d55b48f3c954a84bf044c7a10db27e3a278c0dc94934eba40e46cb8bf53a6a05b4b51bb1a97223b02b417'
@@ -103,6 +103,7 @@ module FacebookAds
103
103
  "AUTOMOTIVE_MODEL",
104
104
  "DESTINATION",
105
105
  "FLIGHT",
106
+ "GENERIC",
106
107
  "HOME_LISTING",
107
108
  "HOTEL",
108
109
  "JOB",
@@ -122,6 +123,7 @@ module FacebookAds
122
123
  "CLAIM",
123
124
  "CUSTOM",
124
125
  "ENGAGEMENT",
126
+ "EXCLUSION",
125
127
  "FOX",
126
128
  "LOOKALIKE",
127
129
  "MANAGED",
@@ -151,6 +153,7 @@ module FacebookAds
151
153
  field :amount_spent, 'string'
152
154
  field :attribution_spec, { list: 'AttributionSpec' }
153
155
  field :balance, 'string'
156
+ field :brand_safety_content_filter_levels, { list: 'string' }
154
157
  field :business, 'Business'
155
158
  field :business_city, 'string'
156
159
  field :business_country_code, 'string'
@@ -685,6 +688,10 @@ module FacebookAds
685
688
  end
686
689
  end
687
690
 
691
+ has_edge :audience_funnel do |edge|
692
+ edge.get
693
+ end
694
+
688
695
  has_edge :block_list_drafts do |edge|
689
696
  edge.post 'AdAccount' do |api|
690
697
  api.has_param :publisher_urls_file, 'file'
@@ -762,6 +769,10 @@ module FacebookAds
762
769
  edge.get
763
770
  end
764
771
 
772
+ has_edge :cpa_guidance do |edge|
773
+ edge.get
774
+ end
775
+
765
776
  has_edge :customaudiences do |edge|
766
777
  edge.get 'CustomAudience' do |api|
767
778
  api.has_param :business_id, 'string'
@@ -1113,6 +1124,8 @@ module FacebookAds
1113
1124
  api.has_param :allow_only_fat_head_interests, 'bool'
1114
1125
  api.has_param :app_store, { enum: -> { AdAccountTargetingUnified::APP_STORE }}
1115
1126
  api.has_param :countries, { list: 'string' }
1127
+ api.has_param :is_account_level_brand_safety_exclusion, 'bool'
1128
+ api.has_param :is_account_level_employer_exclusion, 'bool'
1116
1129
  api.has_param :is_exclusion, 'bool'
1117
1130
  api.has_param :limit_type, { enum: -> { AdAccountTargetingUnified::LIMIT_TYPE }}
1118
1131
  api.has_param :objective, { enum: -> { AdAccountTargetingUnified::OBJECTIVE }}
@@ -1179,6 +1192,10 @@ module FacebookAds
1179
1192
  end
1180
1193
  end
1181
1194
 
1195
+ has_edge :value_adjustment_rule_collections do |edge|
1196
+ edge.get
1197
+ end
1198
+
1182
1199
  has_edge :value_adjustment_rules do |edge|
1183
1200
  edge.get
1184
1201
  end
@@ -42,6 +42,7 @@ module FacebookAds
42
42
  "ASC_BUDGET_OPTIMIZATION",
43
43
  "ASC_BUDGET_OPTIMIZATION_PFR",
44
44
  "ASC_CREATION_PACKAGE",
45
+ "ASC_FRAGMENTATION_V2",
45
46
  "ASPECT_RATIO",
46
47
  "ATLEAST_6_PLACEMENTS",
47
48
  "AUCTION_OVERLAP",
@@ -59,6 +60,7 @@ module FacebookAds
59
60
  "CAPI_PERFORMANCE_MATCH_KEY",
60
61
  "CAPI_PERFORMANCE_MATCH_KEY_V2",
61
62
  "CASH_REWARDS_OPT_IN",
63
+ "CONNECTED_SOURCES",
62
64
  "CONNECT_FACEBOOK_PAGE_TO_INSTAGRAM",
63
65
  "CONNECT_FACEBOOK_PAGE_TO_WHATSAPP",
64
66
  "CONVERSION_LEAD_ADS",
@@ -78,8 +80,10 @@ module FacebookAds
78
80
  "CREATOR_ADS_PA_CONVERSION",
79
81
  "CTA",
80
82
  "CTX_BUDGET_OPTIMIZATION",
83
+ "CTX_CREATION_PACKAGE",
81
84
  "CTX_GUIDANCE",
82
85
  "DA_ADVANTAGE_PLUS_CREATIVE_INFO_LABELS",
86
+ "DA_DUPLICATION_PRODUCT_TAGS",
83
87
  "DEAD_LINK",
84
88
  "DYNAMIC_ADVANTAGE_CAMPAIGN_BUDGET",
85
89
  "ECOSYSTEM_BID_REDUCE_L1_CARDINALITY",
@@ -110,6 +114,7 @@ module FacebookAds
110
114
  "PFR_L1_INLINE_MMT",
111
115
  "PREDICTIVE_CREATIVE_LIMITED",
112
116
  "PREDICTIVE_CREATIVE_LIMITED_HOURLY",
117
+ "PREPARING_STATUS",
113
118
  "RAPID_LEARNING_LIMITED",
114
119
  "RAPID_LEARNING_PHASE",
115
120
  "REELS_DUPLICATION_UPSELL",
@@ -396,6 +396,7 @@ module FacebookAds
396
396
  "location_categories",
397
397
  "location_cluster_ids",
398
398
  "location_expansion",
399
+ "marketing_message_channels",
399
400
  "marketing_message_targeting",
400
401
  "marketplace_product_categories",
401
402
  "messenger_positions",
@@ -96,6 +96,7 @@ module FacebookAds
96
96
  "update_campaign_name",
97
97
  "update_campaign_run_status",
98
98
  "update_campaign_schedule",
99
+ "update_campaign_value_adjustment_rule",
99
100
  "update_delivery_type_cross_level_shift",
100
101
  ]
101
102
 
@@ -17,15 +17,20 @@ module FacebookAds
17
17
  CALL_TO_ACTION_TYPES = [
18
18
  "ADD_TO_CART",
19
19
  "APPLY_NOW",
20
+ "ASK_ABOUT_SERVICES",
21
+ "ASK_FOR_MORE_INFO",
20
22
  "AUDIO_CALL",
23
+ "BOOK_A_CONSULTATION",
21
24
  "BOOK_NOW",
22
25
  "BOOK_TRAVEL",
23
26
  "BUY",
24
27
  "BUY_NOW",
25
28
  "BUY_TICKETS",
29
+ "BUY_VIA_MESSAGE",
26
30
  "CALL",
27
31
  "CALL_ME",
28
32
  "CALL_NOW",
33
+ "CHAT_WITH_US",
29
34
  "CONFIRM",
30
35
  "CONTACT",
31
36
  "CONTACT_US",
@@ -38,6 +43,7 @@ module FacebookAds
38
43
  "FOLLOW_NEWS_STORYLINE",
39
44
  "FOLLOW_PAGE",
40
45
  "FOLLOW_USER",
46
+ "GET_A_QUOTE",
41
47
  "GET_DIRECTIONS",
42
48
  "GET_OFFER",
43
49
  "GET_OFFER_VIEW",
@@ -53,6 +59,7 @@ module FacebookAds
53
59
  "LIKE_PAGE",
54
60
  "LISTEN_MUSIC",
55
61
  "LISTEN_NOW",
62
+ "MAKE_AN_APPOINTMENT",
56
63
  "MESSAGE_PAGE",
57
64
  "MOBILE_DOWNLOAD",
58
65
  "NO_BUTTON",
@@ -112,6 +119,7 @@ module FacebookAds
112
119
  field :message_extensions, { list: 'AdAssetMessageExtensions' }
113
120
  field :onsite_destinations, { list: 'AdAssetOnsiteDestinations' }
114
121
  field :optimization_type, 'string'
122
+ field :promotional_metadata, 'object'
115
123
  field :reasons_to_shop, 'bool'
116
124
  field :shops_bundle, 'bool'
117
125
  field :titles, { list: 'AdAssetFeedSpecTitle' }
@@ -17,15 +17,20 @@ module FacebookAds
17
17
  CALL_TO_ACTION_TYPE = [
18
18
  "ADD_TO_CART",
19
19
  "APPLY_NOW",
20
+ "ASK_ABOUT_SERVICES",
21
+ "ASK_FOR_MORE_INFO",
20
22
  "AUDIO_CALL",
23
+ "BOOK_A_CONSULTATION",
21
24
  "BOOK_NOW",
22
25
  "BOOK_TRAVEL",
23
26
  "BUY",
24
27
  "BUY_NOW",
25
28
  "BUY_TICKETS",
29
+ "BUY_VIA_MESSAGE",
26
30
  "CALL",
27
31
  "CALL_ME",
28
32
  "CALL_NOW",
33
+ "CHAT_WITH_US",
29
34
  "CONFIRM",
30
35
  "CONTACT",
31
36
  "CONTACT_US",
@@ -38,6 +43,7 @@ module FacebookAds
38
43
  "FOLLOW_NEWS_STORYLINE",
39
44
  "FOLLOW_PAGE",
40
45
  "FOLLOW_USER",
46
+ "GET_A_QUOTE",
41
47
  "GET_DIRECTIONS",
42
48
  "GET_OFFER",
43
49
  "GET_OFFER_VIEW",
@@ -53,6 +59,7 @@ module FacebookAds
53
59
  "LIKE_PAGE",
54
60
  "LISTEN_MUSIC",
55
61
  "LISTEN_NOW",
62
+ "MAKE_AN_APPOINTMENT",
56
63
  "MESSAGE_PAGE",
57
64
  "MOBILE_DOWNLOAD",
58
65
  "NO_BUTTON",
@@ -16,8 +16,11 @@ module FacebookAds
16
16
  class AdCreativeFeaturesSpec < AdObject
17
17
 
18
18
  field :advantage_plus_creative, 'AdCreativeFeatureDetails'
19
+ field :app_highlights, 'AdCreativeFeatureDetails'
19
20
  field :audio, 'AdCreativeFeatureDetails'
20
21
  field :carousel_to_video, 'AdCreativeFeatureDetails'
22
+ field :catalog_feed_tag, 'AdCreativeFeatureDetails'
23
+ field :customize_product_recommendation, 'AdCreativeFeatureDetails'
21
24
  field :cv_transformation, 'AdCreativeFeatureDetails'
22
25
  field :description_automation, 'AdCreativeFeatureDetails'
23
26
  field :dha_optimization, 'AdCreativeFeatureDetails'
@@ -36,6 +39,7 @@ module FacebookAds
36
39
  field :product_metadata_automation, 'AdCreativeFeatureDetails'
37
40
  field :product_tags, 'AdCreativeFeatureDetails'
38
41
  field :profile_card, 'AdCreativeFeatureDetails'
42
+ field :site_extensions, 'AdCreativeFeatureDetails'
39
43
  field :standard_enhancements, 'AdCreativeFeatureDetails'
40
44
  field :standard_enhancements_catalog, 'AdCreativeFeatureDetails'
41
45
  field :text_generation, 'AdCreativeFeatureDetails'
@@ -19,6 +19,7 @@ module FacebookAds
19
19
  "carousel_images_multi_items",
20
20
  "carousel_images_single_item",
21
21
  "carousel_slideshows",
22
+ "collection_video",
22
23
  "single_image",
23
24
  ]
24
25
 
@@ -17,15 +17,20 @@ module FacebookAds
17
17
  TYPE = [
18
18
  "ADD_TO_CART",
19
19
  "APPLY_NOW",
20
+ "ASK_ABOUT_SERVICES",
21
+ "ASK_FOR_MORE_INFO",
20
22
  "AUDIO_CALL",
23
+ "BOOK_A_CONSULTATION",
21
24
  "BOOK_NOW",
22
25
  "BOOK_TRAVEL",
23
26
  "BUY",
24
27
  "BUY_NOW",
25
28
  "BUY_TICKETS",
29
+ "BUY_VIA_MESSAGE",
26
30
  "CALL",
27
31
  "CALL_ME",
28
32
  "CALL_NOW",
33
+ "CHAT_WITH_US",
29
34
  "CONFIRM",
30
35
  "CONTACT",
31
36
  "CONTACT_US",
@@ -38,6 +43,7 @@ module FacebookAds
38
43
  "FOLLOW_NEWS_STORYLINE",
39
44
  "FOLLOW_PAGE",
40
45
  "FOLLOW_USER",
46
+ "GET_A_QUOTE",
41
47
  "GET_DIRECTIONS",
42
48
  "GET_OFFER",
43
49
  "GET_OFFER_VIEW",
@@ -53,6 +59,7 @@ module FacebookAds
53
59
  "LIKE_PAGE",
54
60
  "LISTEN_MUSIC",
55
61
  "LISTEN_NOW",
62
+ "MAKE_AN_APPOINTMENT",
56
63
  "MESSAGE_PAGE",
57
64
  "MOBILE_DOWNLOAD",
58
65
  "NO_BUTTON",
@@ -18,6 +18,7 @@ module FacebookAds
18
18
  field :associated_product_set_id, 'string'
19
19
  field :promotion_metadata_spec, { list: 'AdCreativePromotionMetadataSpec' }
20
20
  field :site_links_spec, { list: 'AdCreativeSiteLinksSpec' }
21
+ field :source_url, 'string'
21
22
  has_no_id
22
23
  has_no_get
23
24
  has_no_post
@@ -50,9 +50,11 @@ module FacebookAds
50
50
  "INSTANT_ARTICLE_RECIRCULATION_AD",
51
51
  "INSTANT_ARTICLE_STANDARD",
52
52
  "INSTREAM_BANNER_DESKTOP",
53
+ "INSTREAM_BANNER_FULLSCREEN_MOBILE",
53
54
  "INSTREAM_BANNER_IMMERSIVE_MOBILE",
54
55
  "INSTREAM_BANNER_MOBILE",
55
56
  "INSTREAM_VIDEO_DESKTOP",
57
+ "INSTREAM_VIDEO_FULLSCREEN_MOBILE",
56
58
  "INSTREAM_VIDEO_IMAGE",
57
59
  "INSTREAM_VIDEO_IMMERSIVE_MOBILE",
58
60
  "INSTREAM_VIDEO_MOBILE",
@@ -70,6 +72,7 @@ module FacebookAds
70
72
  "MOBILE_NATIVE",
71
73
  "RIGHT_COLUMN_STANDARD",
72
74
  "SUGGESTED_VIDEO_DESKTOP",
75
+ "SUGGESTED_VIDEO_FULLSCREEN_MOBILE",
73
76
  "SUGGESTED_VIDEO_IMMERSIVE_MOBILE",
74
77
  "SUGGESTED_VIDEO_MOBILE",
75
78
  "WATCH_FEED_HOME",
@@ -233,6 +233,7 @@ module FacebookAds
233
233
  field :promoted_object, 'AdPromotedObject'
234
234
  field :recommendations, { list: 'AdRecommendation' }
235
235
  field :recurring_budget_semantics, 'bool'
236
+ field :regional_regulation_identities, 'object'
236
237
  field :review_feedback, 'string'
237
238
  field :rf_prediction_id, 'string'
238
239
  field :source_adset, 'AdSet'
@@ -183,9 +183,5 @@ module FacebookAds
183
183
  end
184
184
  end
185
185
 
186
- has_edge :telemetry do |edge|
187
- edge.post
188
- end
189
-
190
186
  end
191
187
  end
@@ -236,6 +236,7 @@ module FacebookAds
236
236
  api.has_param :page_id, 'int'
237
237
  api.has_param :page_scoped_user_id, 'int'
238
238
  api.has_param :receipt_data, 'string'
239
+ api.has_param :sdk_version, 'string'
239
240
  api.has_param :ud, 'hash'
240
241
  api.has_param :url_schemes, { list: 'string' }
241
242
  api.has_param :user_id, 'string'
@@ -424,13 +425,6 @@ module FacebookAds
424
425
  end
425
426
  end
426
427
 
427
- has_edge :events do |edge|
428
- edge.get 'Event' do |api|
429
- api.has_param :include_canceled, 'bool'
430
- api.has_param :type, { enum: -> { Event::TYPE }}
431
- end
432
- end
433
-
434
428
  has_edge :iap_purchases do |edge|
435
429
  edge.get do |api|
436
430
  api.has_param :order_id, 'string'
@@ -39,7 +39,6 @@ module FacebookAds
39
39
  field :supported_card_types, { list: 'string' }
40
40
  field :terms, 'string'
41
41
  field :terms_url_by_locale, { list: 'hash' }
42
- field :whatsapp_channel, 'object'
43
42
  has_no_post
44
43
  has_no_delete
45
44
 
@@ -92,10 +91,6 @@ module FacebookAds
92
91
  end
93
92
  end
94
93
 
95
- has_edge :seller_issues do |edge|
96
- edge.get
97
- end
98
-
99
94
  has_edge :setup_status do |edge|
100
95
  edge.get 'CommerceMerchantSettingsSetupStatus'
101
96
  end
@@ -122,12 +117,5 @@ module FacebookAds
122
117
  edge.get
123
118
  end
124
119
 
125
- has_edge :whatsapp_channel do |edge|
126
- edge.post do |api|
127
- api.has_param :op, { enum: %w{ADD REMOVE }}
128
- api.has_param :whatsapp_business_accounts, { list: 'string' }
129
- end
130
- end
131
-
132
120
  end
133
121
  end
@@ -79,10 +79,10 @@ module FacebookAds
79
79
  end
80
80
  end
81
81
 
82
- has_edge :fulfill_order do |edge|
82
+ has_edge :item_updates do |edge|
83
83
  edge.post 'CommerceOrder' do |api|
84
- api.has_param :idempotency_key, 'string'
85
84
  api.has_param :items, { list: 'hash' }
85
+ api.has_param :merchant_order_reference, 'string'
86
86
  end
87
87
  end
88
88
 
@@ -155,5 +155,15 @@ module FacebookAds
155
155
  end
156
156
  end
157
157
 
158
+ has_edge :updates do |edge|
159
+ edge.post 'CommerceOrder' do |api|
160
+ api.has_param :cancel_amount, 'hash'
161
+ api.has_param :fulfill_amount, 'hash'
162
+ api.has_param :merchant_order_reference, 'string'
163
+ api.has_param :refund_amount, 'hash'
164
+ api.has_param :total_amount, 'hash'
165
+ end
166
+ end
167
+
158
168
  end
159
169
  end
@@ -30,6 +30,7 @@ module FacebookAds
30
30
  "AUTOMOTIVE_MODEL",
31
31
  "DESTINATION",
32
32
  "FLIGHT",
33
+ "GENERIC",
33
34
  "HOME_LISTING",
34
35
  "HOTEL",
35
36
  "JOB",
@@ -55,6 +56,7 @@ module FacebookAds
55
56
  "CLAIM",
56
57
  "CUSTOM",
57
58
  "ENGAGEMENT",
59
+ "EXCLUSION",
58
60
  "FOX",
59
61
  "LOOKALIKE",
60
62
  "MANAGED",
@@ -42,6 +42,7 @@ module FacebookAds
42
42
  field :price, 'string'
43
43
  field :price_change, 'string'
44
44
  field :sanitized_images, { list: 'string' }
45
+ field :tags, { list: 'string' }
45
46
  field :types, { list: 'string' }
46
47
  field :unit_price, 'object'
47
48
  field :url, 'string'
@@ -45,6 +45,7 @@ module FacebookAds
45
45
  field :origin_city, 'string'
46
46
  field :price, 'string'
47
47
  field :sanitized_images, { list: 'string' }
48
+ field :tags, { list: 'string' }
48
49
  field :unit_price, 'object'
49
50
  field :url, 'string'
50
51
  field :visibility, { enum: -> { VISIBILITY }}
@@ -49,6 +49,7 @@ module FacebookAds
49
49
  field :sale_price, 'string'
50
50
  field :sanitized_images, { list: 'string' }
51
51
  field :star_rating, 'double'
52
+ field :tags, { list: 'string' }
52
53
  field :unit_price, 'object'
53
54
  field :url, 'string'
54
55
  field :visibility, { enum: -> { VISIBILITY }}
@@ -13,13 +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 PageCommerceEligibility < AdObject
16
+ class IgUpcomingEvent < AdObject
17
17
 
18
- field :offsite, 'object'
19
- field :onsite, 'object'
20
- has_no_id
21
- has_no_get
22
- has_no_post
18
+ field :end_time, 'datetime'
19
+ field :id, 'string'
20
+ field :start_time, 'datetime'
21
+ field :title, 'string'
23
22
  has_no_delete
24
23
 
25
24
  end
@@ -48,7 +48,12 @@ module FacebookAds
48
48
  end
49
49
 
50
50
  has_edge :upcoming_events do |edge|
51
- edge.get
51
+ edge.get 'IgUpcomingEvent'
52
+ edge.post 'IgUpcomingEvent' do |api|
53
+ api.has_param :end_time, 'datetime'
54
+ api.has_param :start_time, 'datetime'
55
+ api.has_param :title, 'string'
56
+ end
52
57
  end
53
58
 
54
59
  end
@@ -84,6 +84,7 @@ module FacebookAds
84
84
  field :retailer_category, 'string'
85
85
  field :sanitized_images, { list: 'string' }
86
86
  field :size, 'string'
87
+ field :tags, { list: 'string' }
87
88
  field :title, 'string'
88
89
  field :unit_price, 'object'
89
90
  field :url, 'string'
@@ -375,6 +375,7 @@ module FacebookAds
375
375
  "publisher_subscriptions",
376
376
  "ratings",
377
377
  "registration",
378
+ "response_feedback",
378
379
  "send_cart",
379
380
  "standby",
380
381
  "user_action",
@@ -461,6 +462,7 @@ module FacebookAds
461
462
  field :is_community_page, 'bool'
462
463
  field :is_eligible_for_branded_content, 'bool'
463
464
  field :is_eligible_for_disable_connect_ig_btn_for_non_page_admin_am_web, 'bool'
465
+ field :is_eligible_for_live_boosting_expansion, 'bool'
464
466
  field :is_messenger_bot_get_started_enabled, 'bool'
465
467
  field :is_messenger_platform_bot, 'bool'
466
468
  field :is_owned, 'bool'
@@ -694,10 +696,6 @@ module FacebookAds
694
696
  end
695
697
  end
696
698
 
697
- has_edge :commerce_eligibility do |edge|
698
- edge.get 'PageCommerceEligibility'
699
- end
700
-
701
699
  has_edge :commerce_merchant_settings do |edge|
702
700
  edge.get 'CommerceMerchantSettings'
703
701
  end
@@ -528,5 +528,15 @@ module FacebookAds
528
528
  end
529
529
  end
530
530
 
531
+ has_edge :version_items_batch do |edge|
532
+ edge.post 'ProductCatalog' do |api|
533
+ api.has_param :allow_upsert, 'bool'
534
+ api.has_param :item_type, 'string'
535
+ api.has_param :item_version, 'string'
536
+ api.has_param :requests, 'hash'
537
+ api.has_param :version, 'int'
538
+ end
539
+ end
540
+
531
541
  end
532
542
  end
@@ -328,6 +328,7 @@ module FacebookAds
328
328
  "EMPTY_TITLE",
329
329
  "EXTERNAL_MERCHANT_ID_MISMATCH",
330
330
  "GENERIC_INVALID_FIELD",
331
+ "GROUPS_DISABLED_BY_USER",
331
332
  "HIDDEN_UNTIL_PRODUCT_LAUNCH",
332
333
  "IMAGE_FETCH_FAILED",
333
334
  "IMAGE_FETCH_FAILED_BAD_GATEWAY",
@@ -23,7 +23,6 @@ module FacebookAds
23
23
  field :geo_markets, { list: 'TargetingGeoLocationMarket' }
24
24
  field :large_geo_areas, { list: 'TargetingGeoLocationGeoEntities' }
25
25
  field :location_cluster_ids, { list: 'TargetingGeoLocationLocationCluster' }
26
- field :location_expansion, 'TargetingGeoLocationLocationExpansion'
27
26
  field :location_types, { list: 'string' }
28
27
  field :medium_geo_areas, { list: 'TargetingGeoLocationGeoEntities' }
29
28
  field :metro_areas, { list: 'TargetingGeoLocationGeoEntities' }
@@ -33,7 +33,6 @@ module FacebookAds
33
33
  ]
34
34
 
35
35
  SUB_CATEGORY = [
36
- "CUSTOM",
37
36
  "ORDER_DETAILS",
38
37
  "ORDER_STATUS",
39
38
  ]
@@ -80,7 +79,7 @@ module FacebookAds
80
79
 
81
80
  has_edge :conversation_analytics do |edge|
82
81
  edge.get do |api|
83
- api.has_param :conversation_categories, { list: { enum: %w{AUTHENTICATION MARKETING MARKETING_OPTIMIZED_DELIVERY SERVICE UNKNOWN UTILITY }} }
82
+ api.has_param :conversation_categories, { list: { enum: %w{AUTHENTICATION AUTHENTICATION_INTERNATIONAL FIXED_TEMPLATE_NOTIFY MARKETING MARKETING_OPTIMIZED_DELIVERY SERVICE UNKNOWN UTILITY }} }
84
83
  api.has_param :conversation_directions, { list: { enum: %w{BUSINESS_INITIATED UNKNOWN USER_INITIATED }} }
85
84
  api.has_param :conversation_types, { list: { enum: %w{FREE_ENTRY_POINT FREE_TIER REGULAR UNKNOWN }} }
86
85
  api.has_param :country_codes, { list: 'string' }
@@ -181,6 +180,10 @@ module FacebookAds
181
180
  edge.get
182
181
  end
183
182
 
183
+ has_edge :set_obo_mobility_intent do |edge|
184
+ edge.post
185
+ end
186
+
184
187
  has_edge :subscribed_apps do |edge|
185
188
  edge.delete
186
189
  edge.get
@@ -14,14 +14,27 @@ module FacebookAds
14
14
  # pull request for this class.
15
15
 
16
16
  class WhatsAppBusinessPartnerClientVerificationSubmission < AdObject
17
+ REJECTION_REASONS = [
18
+ "ADDRESS_NOT_MATCHING",
19
+ "LEGAL_NAME_NOT_MATCHING",
20
+ "NONE",
21
+ "WEBSITE_NOT_MATCHING",
22
+ ]
23
+
24
+ VERIFICATION_STATUS = [
25
+ "APPROVED",
26
+ "FAILED",
27
+ "PENDING",
28
+ ]
29
+
17
30
 
18
31
  field :client_business_id, 'string'
19
32
  field :id, 'string'
20
- field :rejection_reasons, { list: 'string' }
33
+ field :rejection_reasons, { list: { enum: -> { REJECTION_REASONS }} }
21
34
  field :submitted_info, 'object'
22
35
  field :submitted_time, 'datetime'
23
36
  field :update_time, 'datetime'
24
- field :verification_status, 'string'
37
+ field :verification_status, { enum: -> { VERIFICATION_STATUS }}
25
38
  has_no_get
26
39
  has_no_post
27
40
  has_no_delete
@@ -7,6 +7,6 @@
7
7
  # FB:AUTOGEN
8
8
 
9
9
  module FacebookAds
10
- VERSION = '19.0.2'
10
+ VERSION = '19.0.3'
11
11
  API_VERSION = '19.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: 19.0.2
4
+ version: 19.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: 2024-03-19 00:00:00.000000000 Z
11
+ date: 2024-04-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: concurrent-ruby
@@ -529,6 +529,7 @@ files:
529
529
  - lib/facebook_ads/ad_objects/ig_shopping_review_status.rb
530
530
  - lib/facebook_ads/ad_objects/ig_shopping_review_status_onsite_eligibility.rb
531
531
  - lib/facebook_ads/ad_objects/ig_shopping_review_status_reason_with_help_message.rb
532
+ - lib/facebook_ads/ad_objects/ig_upcoming_event.rb
532
533
  - lib/facebook_ads/ad_objects/ig_user.rb
533
534
  - lib/facebook_ads/ad_objects/ig_video_copyright_check_matches_information.rb
534
535
  - lib/facebook_ads/ad_objects/ig_video_copyright_check_status.rb
@@ -605,7 +606,6 @@ files:
605
606
  - lib/facebook_ads/ad_objects/page_call_to_action.rb
606
607
  - lib/facebook_ads/ad_objects/page_category.rb
607
608
  - lib/facebook_ads/ad_objects/page_change_proposal.rb
608
- - lib/facebook_ads/ad_objects/page_commerce_eligibility.rb
609
609
  - lib/facebook_ads/ad_objects/page_parking.rb
610
610
  - lib/facebook_ads/ad_objects/page_payment_options.rb
611
611
  - lib/facebook_ads/ad_objects/page_post.rb
@@ -720,7 +720,6 @@ files:
720
720
  - lib/facebook_ads/ad_objects/targeting_geo_location_electoral_district.rb
721
721
  - lib/facebook_ads/ad_objects/targeting_geo_location_geo_entities.rb
722
722
  - lib/facebook_ads/ad_objects/targeting_geo_location_location_cluster.rb
723
- - lib/facebook_ads/ad_objects/targeting_geo_location_location_expansion.rb
724
723
  - lib/facebook_ads/ad_objects/targeting_geo_location_market.rb
725
724
  - lib/facebook_ads/ad_objects/targeting_geo_location_place.rb
726
725
  - lib/facebook_ads/ad_objects/targeting_geo_location_political_district.rb
@@ -1,25 +0,0 @@
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 TargetingGeoLocationLocationExpansion < AdObject
17
-
18
- field :allowed, 'bool'
19
- has_no_id
20
- has_no_get
21
- has_no_post
22
- has_no_delete
23
-
24
- end
25
- end