facebookbusiness 20.0.2 → 21.0.0
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 +4 -4
- data/lib/facebook_ads/ad_objects/ad.rb +1 -0
- data/lib/facebook_ads/ad_objects/ad_account.rb +18 -6
- data/lib/facebook_ads/ad_objects/ad_account_ad_rules_history.rb +4 -0
- data/lib/facebook_ads/ad_objects/ad_account_ad_volume.rb +21 -0
- data/lib/facebook_ads/ad_objects/{external_event_source_da_stats_result.rb → ad_account_live_video_advertiser.rb} +4 -7
- data/lib/facebook_ads/ad_objects/ad_account_targeting_unified.rb +1 -0
- data/lib/facebook_ads/ad_objects/ad_activity.rb +3 -0
- data/lib/facebook_ads/ad_objects/ad_creative.rb +1 -0
- data/lib/facebook_ads/ad_objects/ad_creative_branded_content_ads.rb +2 -0
- data/lib/facebook_ads/ad_objects/ad_creative_branded_content_ads_partners.rb +1 -0
- data/lib/facebook_ads/ad_objects/ad_creative_feature_customizations.rb +0 -7
- data/lib/facebook_ads/ad_objects/ad_creative_feature_details.rb +1 -0
- data/lib/facebook_ads/ad_objects/ad_creative_features_spec.rb +10 -0
- data/lib/facebook_ads/ad_objects/ad_creative_object_story_spec.rb +2 -1
- data/lib/facebook_ads/ad_objects/{dog_notification_settings.rb → ad_creative_product_data.rb} +5 -4
- data/lib/facebook_ads/ad_objects/ad_preview.rb +1 -0
- data/lib/facebook_ads/ad_objects/ad_promoted_object.rb +3 -0
- data/lib/facebook_ads/ad_objects/ad_rule.rb +1 -0
- data/lib/facebook_ads/ad_objects/ad_rule_history.rb +4 -0
- data/lib/facebook_ads/ad_objects/ad_set.rb +4 -0
- data/lib/facebook_ads/ad_objects/ad_video.rb +1 -3
- data/lib/facebook_ads/ad_objects/ads_insights.rb +3 -4
- data/lib/facebook_ads/ad_objects/{panel_api_report.rb → ads_quick_views.rb} +7 -9
- data/lib/facebook_ads/ad_objects/ads_user_settings.rb +2 -0
- data/lib/facebook_ads/ad_objects/ads_value_adjustment_rule_collection.rb +1 -1
- data/lib/facebook_ads/ad_objects/alm_ad_account_info.rb +1 -0
- data/lib/facebook_ads/ad_objects/application.rb +7 -23
- data/lib/facebook_ads/ad_objects/business.rb +1 -3
- data/lib/facebook_ads/ad_objects/campaign.rb +2 -0
- data/lib/facebook_ads/ad_objects/catalog_item_rejection_reasons.rb +1 -10
- data/lib/facebook_ads/ad_objects/ctwa_whats_app_numbers_info.rb +1 -0
- data/lib/facebook_ads/ad_objects/custom_audience.rb +15 -0
- data/lib/facebook_ads/ad_objects/extended_credit.rb +13 -0
- data/lib/facebook_ads/ad_objects/group.rb +3 -21
- data/lib/facebook_ads/ad_objects/hotel.rb +5 -0
- data/lib/facebook_ads/ad_objects/ig_media_for_ig_only_api.rb +8 -0
- data/lib/facebook_ads/ad_objects/ig_user_for_ig_only_api.rb +6 -0
- data/lib/facebook_ads/ad_objects/insights_result.rb +43 -19
- data/lib/facebook_ads/ad_objects/instagram_insights_result.rb +1 -0
- data/lib/facebook_ads/ad_objects/messenger_business_template.rb +33 -0
- data/lib/facebook_ads/ad_objects/page.rb +7 -7
- data/lib/facebook_ads/ad_objects/partnership_ad_content_search_media.rb +3 -0
- data/lib/facebook_ads/ad_objects/placement.rb +52 -0
- data/lib/facebook_ads/ad_objects/product_catalog.rb +6 -0
- data/lib/facebook_ads/ad_objects/product_catalog_diagnostic_group.rb +18 -18
- data/lib/facebook_ads/ad_objects/product_feed.rb +1 -0
- data/lib/facebook_ads/ad_objects/product_item.rb +9 -0
- data/lib/facebook_ads/ad_objects/saved_message_response.rb +0 -1
- data/lib/facebook_ads/ad_objects/server_side/app_data.rb +23 -3
- data/lib/facebook_ads/ad_objects/user.rb +5 -9
- data/lib/facebook_ads/ad_objects/vehicle.rb +5 -0
- data/lib/facebook_ads/ad_objects/vehicle_offer.rb +5 -0
- data/lib/facebook_ads/ad_objects/whats_app_business_account.rb +15 -0
- data/lib/facebook_ads/version.rb +2 -2
- metadata +7 -5
@@ -65,17 +65,6 @@ module FacebookAds
|
|
65
65
|
"EYMT",
|
66
66
|
]
|
67
67
|
|
68
|
-
LOGGING_SOURCE = [
|
69
|
-
"DETECTION",
|
70
|
-
"MESSENGER_BOT",
|
71
|
-
]
|
72
|
-
|
73
|
-
LOGGING_TARGET = [
|
74
|
-
"APP",
|
75
|
-
"APP_AND_PAGE",
|
76
|
-
"PAGE",
|
77
|
-
]
|
78
|
-
|
79
68
|
OWNER_PERMISSIONS = [
|
80
69
|
"DEVELOP",
|
81
70
|
"MANAGE",
|
@@ -251,6 +240,7 @@ module FacebookAds
|
|
251
240
|
api.has_param :data_processing_options_state, 'int'
|
252
241
|
api.has_param :device_token, 'string'
|
253
242
|
api.has_param :event, { enum: %w{CUSTOM_APP_EVENTS DEFERRED_APP_LINK MOBILE_APP_INSTALL }}
|
243
|
+
api.has_param :event_id, 'string'
|
254
244
|
api.has_param :extinfo, 'object'
|
255
245
|
api.has_param :include_dwell_data, 'bool'
|
256
246
|
api.has_param :include_video_data, 'bool'
|
@@ -471,6 +461,12 @@ module FacebookAds
|
|
471
461
|
edge.get 'AdsDataset'
|
472
462
|
end
|
473
463
|
|
464
|
+
has_edge :message_templates do |edge|
|
465
|
+
edge.get do |api|
|
466
|
+
api.has_param :template_id, 'string'
|
467
|
+
end
|
468
|
+
end
|
469
|
+
|
474
470
|
has_edge :mmp_auditing do |edge|
|
475
471
|
edge.post do |api|
|
476
472
|
api.has_param :advertiser_id, 'string'
|
@@ -525,18 +521,6 @@ module FacebookAds
|
|
525
521
|
end
|
526
522
|
end
|
527
523
|
|
528
|
-
has_edge :page_activities do |edge|
|
529
|
-
edge.post 'Application' do |api|
|
530
|
-
api.has_param :advertiser_tracking_enabled, 'bool'
|
531
|
-
api.has_param :application_tracking_enabled, 'bool'
|
532
|
-
api.has_param :custom_events, { list: 'object' }
|
533
|
-
api.has_param :logging_source, { enum: -> { Application::LOGGING_SOURCE }}
|
534
|
-
api.has_param :logging_target, { enum: -> { Application::LOGGING_TARGET }}
|
535
|
-
api.has_param :page_id, 'int'
|
536
|
-
api.has_param :page_scoped_user_id, 'int'
|
537
|
-
end
|
538
|
-
end
|
539
|
-
|
540
524
|
has_edge :payment_currencies do |edge|
|
541
525
|
edge.post 'Application' do |api|
|
542
526
|
api.has_param :currency_url, 'string'
|
@@ -1490,11 +1490,10 @@ module FacebookAds
|
|
1490
1490
|
api.has_param :formatting, { enum: -> { AdVideo::FORMATTING }}
|
1491
1491
|
api.has_param :fov, 'int'
|
1492
1492
|
api.has_param :front_z_rotation, 'double'
|
1493
|
-
api.has_param :fun_fact_prompt_id, '
|
1493
|
+
api.has_param :fun_fact_prompt_id, 'string'
|
1494
1494
|
api.has_param :fun_fact_toastee_id, 'int'
|
1495
1495
|
api.has_param :guide, { list: { list: 'int' } }
|
1496
1496
|
api.has_param :guide_enabled, 'bool'
|
1497
|
-
api.has_param :holiday_card, 'string'
|
1498
1497
|
api.has_param :initial_heading, 'int'
|
1499
1498
|
api.has_param :initial_pitch, 'int'
|
1500
1499
|
api.has_param :instant_game_entry_point_data, 'string'
|
@@ -1502,7 +1501,6 @@ module FacebookAds
|
|
1502
1501
|
api.has_param :is_group_linking_post, 'bool'
|
1503
1502
|
api.has_param :is_voice_clip, 'bool'
|
1504
1503
|
api.has_param :location_source_id, 'string'
|
1505
|
-
api.has_param :offer_like_post_id, 'int'
|
1506
1504
|
api.has_param :og_action_type_id, 'string'
|
1507
1505
|
api.has_param :og_icon_id, 'string'
|
1508
1506
|
api.has_param :og_object_id, 'string'
|
@@ -104,6 +104,7 @@ module FacebookAds
|
|
104
104
|
SPECIAL_AD_CATEGORIES = [
|
105
105
|
"CREDIT",
|
106
106
|
"EMPLOYMENT",
|
107
|
+
"FINANCIAL_PRODUCTS_SERVICES",
|
107
108
|
"HOUSING",
|
108
109
|
"ISSUES_ELECTIONS_POLITICS",
|
109
110
|
"NONE",
|
@@ -372,6 +373,7 @@ module FacebookAds
|
|
372
373
|
SPECIAL_AD_CATEGORY = [
|
373
374
|
"CREDIT",
|
374
375
|
"EMPLOYMENT",
|
376
|
+
"FINANCIAL_PRODUCTS_SERVICES",
|
375
377
|
"HOUSING",
|
376
378
|
"ISSUES_ELECTIONS_POLITICS",
|
377
379
|
"NONE",
|
@@ -14,17 +14,8 @@ module FacebookAds
|
|
14
14
|
# pull request for this class.
|
15
15
|
|
16
16
|
class CatalogItemRejectionReasons < AdObject
|
17
|
-
CAPABILITY = [
|
18
|
-
"business_inbox_in_messenger",
|
19
|
-
"shops",
|
20
|
-
"test_capability",
|
21
|
-
"universal_checkout",
|
22
|
-
"us_marketplace",
|
23
|
-
"whatsapp_marketing_message",
|
24
|
-
]
|
25
17
|
|
26
|
-
|
27
|
-
field :capability, { enum: -> { CAPABILITY }}
|
18
|
+
field :capability, 'string'
|
28
19
|
field :rejection_information, { list: 'object' }
|
29
20
|
has_no_id
|
30
21
|
has_no_get
|
@@ -18,6 +18,7 @@ module FacebookAds
|
|
18
18
|
field :can_manage_wa_flows, 'bool'
|
19
19
|
field :formatted_whatsapp_number, 'string'
|
20
20
|
field :is_business_number, 'bool'
|
21
|
+
field :number_country_prefix, 'string'
|
21
22
|
field :page_whatsapp_number_id, 'string'
|
22
23
|
field :waba_id, 'string'
|
23
24
|
field :whatsapp_number, 'string'
|
@@ -48,6 +48,11 @@ module FacebookAds
|
|
48
48
|
"USER_PROVIDED_ONLY",
|
49
49
|
]
|
50
50
|
|
51
|
+
SUBSCRIPTION_INFO = [
|
52
|
+
"MESSENGER",
|
53
|
+
"WHATSAPP",
|
54
|
+
]
|
55
|
+
|
51
56
|
SUBTYPE = [
|
52
57
|
"APP",
|
53
58
|
"BAG_OF_ACCOUNTS",
|
@@ -60,6 +65,7 @@ module FacebookAds
|
|
60
65
|
"LOOKALIKE",
|
61
66
|
"MANAGED",
|
62
67
|
"MEASUREMENT",
|
68
|
+
"MESSENGER_SUBSCRIBER_LIST",
|
63
69
|
"OFFLINE_CONVERSION",
|
64
70
|
"PARTNER",
|
65
71
|
"PRIMARY",
|
@@ -70,6 +76,11 @@ module FacebookAds
|
|
70
76
|
"WEBSITE",
|
71
77
|
]
|
72
78
|
|
79
|
+
USE_FOR_PRODUCTS = [
|
80
|
+
"ADS",
|
81
|
+
"MARKETING_MESSAGES",
|
82
|
+
]
|
83
|
+
|
73
84
|
ACTION_SOURCE = [
|
74
85
|
"PHYSICAL_STORE",
|
75
86
|
"WEBSITE",
|
@@ -126,13 +137,17 @@ module FacebookAds
|
|
126
137
|
field :event_source_group, 'string'
|
127
138
|
field :event_sources, { list: 'hash' }
|
128
139
|
field :exclusions, { list: 'object' }
|
140
|
+
field :facebook_page_id, 'string'
|
129
141
|
field :inclusions, { list: 'object' }
|
130
142
|
field :list_of_accounts, { list: 'int' }
|
143
|
+
field :marketing_message_channels, 'object'
|
131
144
|
field :origin_audience_id, 'string'
|
132
145
|
field :parent_audience_id, 'int'
|
133
146
|
field :partner_reference_key, 'string'
|
134
147
|
field :prefill, 'bool'
|
135
148
|
field :product_set_id, 'string'
|
149
|
+
field :subscription_info, { list: { enum: -> { SUBSCRIPTION_INFO }} }
|
150
|
+
field :use_for_products, { list: { enum: -> { USE_FOR_PRODUCTS }} }
|
136
151
|
field :use_in_campaigns, 'bool'
|
137
152
|
field :video_group_ids, { list: 'string' }
|
138
153
|
field :whats_app_business_phone_number_id, 'string'
|
@@ -58,6 +58,19 @@ module FacebookAds
|
|
58
58
|
end
|
59
59
|
end
|
60
60
|
|
61
|
+
has_edge :whatsapp_credit_attach do |edge|
|
62
|
+
edge.post do |api|
|
63
|
+
api.has_param :waba_currency, 'string'
|
64
|
+
api.has_param :waba_id, 'string'
|
65
|
+
end
|
66
|
+
end
|
67
|
+
|
68
|
+
has_edge :whatsapp_credit_sharing do |edge|
|
69
|
+
edge.post do |api|
|
70
|
+
api.has_param :receiving_business_id, 'string'
|
71
|
+
end
|
72
|
+
end
|
73
|
+
|
61
74
|
has_edge :whatsapp_credit_sharing_and_attach do |edge|
|
62
75
|
edge.post do |api|
|
63
76
|
api.has_param :waba_currency, 'string'
|
@@ -121,20 +121,6 @@ module FacebookAds
|
|
121
121
|
|
122
122
|
has_edge :albums do |edge|
|
123
123
|
edge.get 'Album'
|
124
|
-
edge.post 'Album' do |api|
|
125
|
-
api.has_param :contributors, { list: 'int' }
|
126
|
-
api.has_param :description, 'string'
|
127
|
-
api.has_param :is_default, 'bool'
|
128
|
-
api.has_param :location, 'string'
|
129
|
-
api.has_param :make_shared_album, 'bool'
|
130
|
-
api.has_param :message, 'string'
|
131
|
-
api.has_param :name, 'string'
|
132
|
-
api.has_param :place, 'object'
|
133
|
-
api.has_param :privacy, 'string'
|
134
|
-
api.has_param :session_id, 'string'
|
135
|
-
api.has_param :tags, { list: 'int' }
|
136
|
-
api.has_param :visible, 'string'
|
137
|
-
end
|
138
124
|
end
|
139
125
|
|
140
126
|
has_edge :docs do |edge|
|
@@ -160,7 +146,7 @@ module FacebookAds
|
|
160
146
|
api.has_param :android_key_hash, 'string'
|
161
147
|
api.has_param :application_id, 'string'
|
162
148
|
api.has_param :asked_fun_fact_prompt_id, 'int'
|
163
|
-
api.has_param :asset3d_id, '
|
149
|
+
api.has_param :asset3d_id, 'string'
|
164
150
|
api.has_param :associated_id, 'string'
|
165
151
|
api.has_param :attach_place_suggestion, 'bool'
|
166
152
|
api.has_param :attached_media, { list: 'object' }
|
@@ -191,10 +177,9 @@ module FacebookAds
|
|
191
177
|
api.has_param :expanded_width, 'int'
|
192
178
|
api.has_param :feed_targeting, 'object'
|
193
179
|
api.has_param :formatting, { enum: -> { Post::FORMATTING }}
|
194
|
-
api.has_param :fun_fact_prompt_id, '
|
180
|
+
api.has_param :fun_fact_prompt_id, 'string'
|
195
181
|
api.has_param :fun_fact_toastee_id, 'int'
|
196
182
|
api.has_param :height, 'int'
|
197
|
-
api.has_param :holiday_card, 'string'
|
198
183
|
api.has_param :home_checkin_city_id, 'object'
|
199
184
|
api.has_param :image_crops, 'hash'
|
200
185
|
api.has_param :implicit_with_tags, { list: 'int' }
|
@@ -215,7 +200,6 @@ module FacebookAds
|
|
215
200
|
api.has_param :name, 'string'
|
216
201
|
api.has_param :nectar_module, 'string'
|
217
202
|
api.has_param :object_attachment, 'string'
|
218
|
-
api.has_param :offer_like_post_id, 'int'
|
219
203
|
api.has_param :og_action_type_id, 'string'
|
220
204
|
api.has_param :og_hide_object_attachment, 'bool'
|
221
205
|
api.has_param :og_icon_id, 'string'
|
@@ -426,11 +410,10 @@ module FacebookAds
|
|
426
410
|
api.has_param :formatting, { enum: -> { AdVideo::FORMATTING }}
|
427
411
|
api.has_param :fov, 'int'
|
428
412
|
api.has_param :front_z_rotation, 'double'
|
429
|
-
api.has_param :fun_fact_prompt_id, '
|
413
|
+
api.has_param :fun_fact_prompt_id, 'string'
|
430
414
|
api.has_param :fun_fact_toastee_id, 'int'
|
431
415
|
api.has_param :guide, { list: { list: 'int' } }
|
432
416
|
api.has_param :guide_enabled, 'bool'
|
433
|
-
api.has_param :holiday_card, 'string'
|
434
417
|
api.has_param :initial_heading, 'int'
|
435
418
|
api.has_param :initial_pitch, 'int'
|
436
419
|
api.has_param :instant_game_entry_point_data, 'string'
|
@@ -440,7 +423,6 @@ module FacebookAds
|
|
440
423
|
api.has_param :is_voice_clip, 'bool'
|
441
424
|
api.has_param :location_source_id, 'string'
|
442
425
|
api.has_param :manual_privacy, 'bool'
|
443
|
-
api.has_param :offer_like_post_id, 'int'
|
444
426
|
api.has_param :og_action_type_id, 'string'
|
445
427
|
api.has_param :og_icon_id, 'string'
|
446
428
|
api.has_param :og_object_id, 'string'
|
@@ -46,6 +46,11 @@ module FacebookAds
|
|
46
46
|
field :margin_level, 'int'
|
47
47
|
field :name, 'string'
|
48
48
|
field :phone, 'string'
|
49
|
+
field :product_priority_0, 'double'
|
50
|
+
field :product_priority_1, 'double'
|
51
|
+
field :product_priority_2, 'double'
|
52
|
+
field :product_priority_3, 'double'
|
53
|
+
field :product_priority_4, 'double'
|
49
54
|
field :sale_price, 'string'
|
50
55
|
field :sanitized_images, { list: 'string' }
|
51
56
|
field :star_rating, 'double'
|
@@ -43,5 +43,13 @@ module FacebookAds
|
|
43
43
|
end
|
44
44
|
end
|
45
45
|
|
46
|
+
has_edge :insights do |edge|
|
47
|
+
edge.get 'InsightsResult' do |api|
|
48
|
+
api.has_param :breakdown, { list: { enum: -> { InsightsResult::BREAKDOWN }} }
|
49
|
+
api.has_param :metric, { list: { enum: -> { InsightsResult::METRIC }} }
|
50
|
+
api.has_param :period, { list: { enum: -> { InsightsResult::PERIOD }} }
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
46
54
|
end
|
47
55
|
end
|
@@ -136,6 +136,12 @@ module FacebookAds
|
|
136
136
|
api.has_param :app_id, 'string'
|
137
137
|
api.has_param :flow_id, 'string'
|
138
138
|
end
|
139
|
+
edge.post do |api|
|
140
|
+
api.has_param :eligible_platforms, { list: { enum: %w{INSTAGRAM MESSENGER WHATSAPP }} }
|
141
|
+
api.has_param :flow_id, 'string'
|
142
|
+
api.has_param :name, 'string'
|
143
|
+
api.has_param :welcome_message_flow, { list: 'object' }
|
144
|
+
end
|
139
145
|
end
|
140
146
|
|
141
147
|
end
|
@@ -14,6 +14,49 @@ module FacebookAds
|
|
14
14
|
# pull request for this class.
|
15
15
|
|
16
16
|
class InsightsResult < AdObject
|
17
|
+
BREAKDOWN = [
|
18
|
+
"action_type",
|
19
|
+
"follow_type",
|
20
|
+
"story_navigation_action_type",
|
21
|
+
"surface_type",
|
22
|
+
]
|
23
|
+
|
24
|
+
METRIC = [
|
25
|
+
"clips_replays_count",
|
26
|
+
"comments",
|
27
|
+
"follows",
|
28
|
+
"ig_reels_aggregated_all_plays_count",
|
29
|
+
"ig_reels_avg_watch_time",
|
30
|
+
"ig_reels_video_view_total_time",
|
31
|
+
"impressions",
|
32
|
+
"likes",
|
33
|
+
"navigation",
|
34
|
+
"peak_concurrent_viewers",
|
35
|
+
"plays",
|
36
|
+
"profile_activity",
|
37
|
+
"profile_visits",
|
38
|
+
"quotes",
|
39
|
+
"reach",
|
40
|
+
"replies",
|
41
|
+
"reposts",
|
42
|
+
"saved",
|
43
|
+
"shares",
|
44
|
+
"thread_replies",
|
45
|
+
"thread_shares",
|
46
|
+
"total_interactions",
|
47
|
+
"video_views",
|
48
|
+
"views",
|
49
|
+
]
|
50
|
+
|
51
|
+
PERIOD = [
|
52
|
+
"day",
|
53
|
+
"days_28",
|
54
|
+
"lifetime",
|
55
|
+
"month",
|
56
|
+
"total_over_range",
|
57
|
+
"week",
|
58
|
+
]
|
59
|
+
|
17
60
|
DATE_PRESET = [
|
18
61
|
"data_maximum",
|
19
62
|
"last_14d",
|
@@ -37,25 +80,6 @@ module FacebookAds
|
|
37
80
|
"yesterday",
|
38
81
|
]
|
39
82
|
|
40
|
-
PERIOD = [
|
41
|
-
"day",
|
42
|
-
"days_28",
|
43
|
-
"lifetime",
|
44
|
-
"month",
|
45
|
-
"total_over_range",
|
46
|
-
"week",
|
47
|
-
]
|
48
|
-
|
49
|
-
METRIC = [
|
50
|
-
"PAGES_FB_STORY_REPLIES",
|
51
|
-
"PAGES_FB_STORY_SHARES",
|
52
|
-
"PAGES_FB_STORY_STICKER_INTERACTIONS",
|
53
|
-
"PAGES_FB_STORY_THREAD_LIGHTWEIGHT_REACTIONS",
|
54
|
-
"PAGE_STORY_IMPRESSIONS_BY_STORY_ID",
|
55
|
-
"PAGE_STORY_IMPRESSIONS_BY_STORY_ID_UNIQUE",
|
56
|
-
"STORY_INTERACTION",
|
57
|
-
]
|
58
|
-
|
59
83
|
|
60
84
|
field :description, 'string'
|
61
85
|
field :description_from_api_doc, 'string'
|
@@ -0,0 +1,33 @@
|
|
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 MessengerBusinessTemplate < AdObject
|
17
|
+
|
18
|
+
field :category, 'string'
|
19
|
+
field :components, { list: 'object' }
|
20
|
+
field :creation_time, 'int'
|
21
|
+
field :id, 'string'
|
22
|
+
field :language, 'string'
|
23
|
+
field :language_count, 'int'
|
24
|
+
field :last_updated_time, 'datetime'
|
25
|
+
field :library_template_name, 'string'
|
26
|
+
field :name, 'string'
|
27
|
+
field :rejected_reason, 'string'
|
28
|
+
field :status, 'string'
|
29
|
+
has_no_post
|
30
|
+
has_no_delete
|
31
|
+
|
32
|
+
end
|
33
|
+
end
|
@@ -762,6 +762,10 @@ module FacebookAds
|
|
762
762
|
edge.get 'Page'
|
763
763
|
end
|
764
764
|
|
765
|
+
has_edge :ctx_optimization_eligibility do |edge|
|
766
|
+
edge.get 'CtxOptimizationEligibility'
|
767
|
+
end
|
768
|
+
|
765
769
|
has_edge :custom_labels do |edge|
|
766
770
|
edge.get 'PageUserMessageThreadLabel'
|
767
771
|
edge.post 'PageUserMessageThreadLabel' do |api|
|
@@ -824,7 +828,7 @@ module FacebookAds
|
|
824
828
|
api.has_param :android_key_hash, 'string'
|
825
829
|
api.has_param :application_id, 'string'
|
826
830
|
api.has_param :asked_fun_fact_prompt_id, 'int'
|
827
|
-
api.has_param :asset3d_id, '
|
831
|
+
api.has_param :asset3d_id, 'string'
|
828
832
|
api.has_param :associated_id, 'string'
|
829
833
|
api.has_param :attach_place_suggestion, 'bool'
|
830
834
|
api.has_param :attached_media, { list: 'object' }
|
@@ -856,10 +860,9 @@ module FacebookAds
|
|
856
860
|
api.has_param :expanded_width, 'int'
|
857
861
|
api.has_param :feed_targeting, 'object'
|
858
862
|
api.has_param :formatting, { enum: -> { Page::FORMATTING }}
|
859
|
-
api.has_param :fun_fact_prompt_id, '
|
863
|
+
api.has_param :fun_fact_prompt_id, 'string'
|
860
864
|
api.has_param :fun_fact_toastee_id, 'int'
|
861
865
|
api.has_param :height, 'int'
|
862
|
-
api.has_param :holiday_card, 'string'
|
863
866
|
api.has_param :home_checkin_city_id, 'object'
|
864
867
|
api.has_param :image_crops, 'hash'
|
865
868
|
api.has_param :implicit_with_tags, { list: 'int' }
|
@@ -880,7 +883,6 @@ module FacebookAds
|
|
880
883
|
api.has_param :name, 'string'
|
881
884
|
api.has_param :nectar_module, 'string'
|
882
885
|
api.has_param :object_attachment, 'string'
|
883
|
-
api.has_param :offer_like_post_id, 'int'
|
884
886
|
api.has_param :og_action_type_id, 'string'
|
885
887
|
api.has_param :og_hide_object_attachment, 'bool'
|
886
888
|
api.has_param :og_icon_id, 'string'
|
@@ -1551,11 +1553,10 @@ module FacebookAds
|
|
1551
1553
|
api.has_param :formatting, { enum: -> { AdVideo::FORMATTING }}
|
1552
1554
|
api.has_param :fov, 'int'
|
1553
1555
|
api.has_param :front_z_rotation, 'double'
|
1554
|
-
api.has_param :fun_fact_prompt_id, '
|
1556
|
+
api.has_param :fun_fact_prompt_id, 'string'
|
1555
1557
|
api.has_param :fun_fact_toastee_id, 'int'
|
1556
1558
|
api.has_param :guide, { list: { list: 'int' } }
|
1557
1559
|
api.has_param :guide_enabled, 'bool'
|
1558
|
-
api.has_param :holiday_card, 'string'
|
1559
1560
|
api.has_param :initial_heading, 'int'
|
1560
1561
|
api.has_param :initial_pitch, 'int'
|
1561
1562
|
api.has_param :instant_game_entry_point_data, 'string'
|
@@ -1567,7 +1568,6 @@ module FacebookAds
|
|
1567
1568
|
api.has_param :manual_privacy, 'bool'
|
1568
1569
|
api.has_param :multilingual_data, { list: 'object' }
|
1569
1570
|
api.has_param :no_story, 'bool'
|
1570
|
-
api.has_param :offer_like_post_id, 'int'
|
1571
1571
|
api.has_param :og_action_type_id, 'string'
|
1572
1572
|
api.has_param :og_icon_id, 'string'
|
1573
1573
|
api.has_param :og_object_id, 'string'
|
@@ -15,8 +15,11 @@ module FacebookAds
|
|
15
15
|
|
16
16
|
class PartnershipAdContentSearchMedia < AdObject
|
17
17
|
|
18
|
+
field :ig_ad_code_sponsor_count, 'int'
|
19
|
+
field :ig_ad_code_sponsors, { list: 'FbPageAndInstagramAccount' }
|
18
20
|
field :ig_media, 'IgMedia'
|
19
21
|
field :ig_media_has_product_tags, 'bool'
|
22
|
+
field :is_ad_code_eligible_for_boosting_by_two_sponsors, 'bool'
|
20
23
|
field :is_ad_code_entry, 'bool'
|
21
24
|
has_no_id
|
22
25
|
has_no_get
|
@@ -0,0 +1,52 @@
|
|
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 Placement < AdObject
|
17
|
+
DEVICE_PLATFORMS = [
|
18
|
+
"desktop",
|
19
|
+
"mobile",
|
20
|
+
]
|
21
|
+
|
22
|
+
EFFECTIVE_DEVICE_PLATFORMS = [
|
23
|
+
"desktop",
|
24
|
+
"mobile",
|
25
|
+
]
|
26
|
+
|
27
|
+
|
28
|
+
field :audience_network_positions, { list: 'string' }
|
29
|
+
field :device_platforms, { list: { enum: -> { DEVICE_PLATFORMS }} }
|
30
|
+
field :effective_audience_network_positions, { list: 'string' }
|
31
|
+
field :effective_device_platforms, { list: { enum: -> { EFFECTIVE_DEVICE_PLATFORMS }} }
|
32
|
+
field :effective_facebook_positions, { list: 'string' }
|
33
|
+
field :effective_instagram_positions, { list: 'string' }
|
34
|
+
field :effective_messenger_positions, { list: 'string' }
|
35
|
+
field :effective_oculus_positions, { list: 'string' }
|
36
|
+
field :effective_publisher_platforms, { list: 'string' }
|
37
|
+
field :effective_threads_positions, { list: 'string' }
|
38
|
+
field :effective_whatsapp_positions, { list: 'string' }
|
39
|
+
field :facebook_positions, { list: 'string' }
|
40
|
+
field :instagram_positions, { list: 'string' }
|
41
|
+
field :messenger_positions, { list: 'string' }
|
42
|
+
field :oculus_positions, { list: 'string' }
|
43
|
+
field :publisher_platforms, { list: 'string' }
|
44
|
+
field :threads_positions, { list: 'string' }
|
45
|
+
field :whatsapp_positions, { list: 'string' }
|
46
|
+
has_no_id
|
47
|
+
has_no_get
|
48
|
+
has_no_post
|
49
|
+
has_no_delete
|
50
|
+
|
51
|
+
end
|
52
|
+
end
|
@@ -329,6 +329,12 @@ module FacebookAds
|
|
329
329
|
end
|
330
330
|
end
|
331
331
|
|
332
|
+
has_edge :marketplace_partner_sellers_details do |edge|
|
333
|
+
edge.post 'ProductCatalog' do |api|
|
334
|
+
api.has_param :requests, 'hash'
|
335
|
+
end
|
336
|
+
end
|
337
|
+
|
332
338
|
has_edge :pricing_variables_batch do |edge|
|
333
339
|
edge.get 'ProductCatalogPricingVariablesBatch' do |api|
|
334
340
|
api.has_param :handle, 'string'
|
@@ -14,23 +14,6 @@ module FacebookAds
|
|
14
14
|
# pull request for this class.
|
15
15
|
|
16
16
|
class ProductCatalogDiagnosticGroup < AdObject
|
17
|
-
AFFECTED_CHANNELS = [
|
18
|
-
"b2c_marketplace",
|
19
|
-
"c2c_marketplace",
|
20
|
-
"da",
|
21
|
-
"daily_deals",
|
22
|
-
"daily_deals_legacy",
|
23
|
-
"ig_product_tagging",
|
24
|
-
"marketplace",
|
25
|
-
"marketplace_ads_deprecated",
|
26
|
-
"marketplace_shops",
|
27
|
-
"mini_shops",
|
28
|
-
"offline_conversions",
|
29
|
-
"shops",
|
30
|
-
"universal_checkout",
|
31
|
-
"whatsapp",
|
32
|
-
]
|
33
|
-
|
34
17
|
AFFECTED_ENTITY = [
|
35
18
|
"product_catalog",
|
36
19
|
"product_event",
|
@@ -62,6 +45,23 @@ module FacebookAds
|
|
62
45
|
"SHOPS_VISIBILITY_ISSUES",
|
63
46
|
]
|
64
47
|
|
48
|
+
AFFECTED_CHANNELS = [
|
49
|
+
"b2c_marketplace",
|
50
|
+
"c2c_marketplace",
|
51
|
+
"da",
|
52
|
+
"daily_deals",
|
53
|
+
"daily_deals_legacy",
|
54
|
+
"ig_product_tagging",
|
55
|
+
"marketplace",
|
56
|
+
"marketplace_ads_deprecated",
|
57
|
+
"marketplace_shops",
|
58
|
+
"mini_shops",
|
59
|
+
"offline_conversions",
|
60
|
+
"shops",
|
61
|
+
"universal_checkout",
|
62
|
+
"whatsapp",
|
63
|
+
]
|
64
|
+
|
65
65
|
AFFECTED_ENTITIES = [
|
66
66
|
"product_catalog",
|
67
67
|
"product_event",
|
@@ -89,7 +89,7 @@ module FacebookAds
|
|
89
89
|
]
|
90
90
|
|
91
91
|
|
92
|
-
field :affected_channels, { list:
|
92
|
+
field :affected_channels, { list: 'string' }
|
93
93
|
field :affected_entity, { enum: -> { AFFECTED_ENTITY }}
|
94
94
|
field :affected_features, { list: { enum: -> { AFFECTED_FEATURES }} }
|
95
95
|
field :diagnostics, { list: 'object' }
|
@@ -34,6 +34,14 @@ module FacebookAds
|
|
34
34
|
"preorder",
|
35
35
|
]
|
36
36
|
|
37
|
+
CAPABILITY_TO_REVIEW_STATUS = [
|
38
|
+
"APPROVED",
|
39
|
+
"NO_REVIEW",
|
40
|
+
"OUTDATED",
|
41
|
+
"PENDING",
|
42
|
+
"REJECTED",
|
43
|
+
]
|
44
|
+
|
37
45
|
CONDITION = [
|
38
46
|
"cpo",
|
39
47
|
"new",
|
@@ -369,6 +377,7 @@ module FacebookAds
|
|
369
377
|
"INVALID_SUBSCRIPTION_DISABLE_PARAMS",
|
370
378
|
"INVALID_SUBSCRIPTION_ENABLE_PARAMS",
|
371
379
|
"INVALID_SUBSCRIPTION_PARAMS",
|
380
|
+
"INVALID_TAX_EXTENSION_STATE",
|
372
381
|
"INVALID_VEHICLE_STATE",
|
373
382
|
"INVALID_VIRTUAL_TOUR_URL_DOMAIN",
|
374
383
|
"INVENTORY_ZERO_AVAILABILITY_IN_STOCK",
|