facebookbusiness 19.0.0 → 19.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/facebook_ads/ad_objects/ad_account.rb +6 -1
- data/lib/facebook_ads/ad_objects/ad_account_ad_rules_history.rb +1 -0
- data/lib/facebook_ads/ad_objects/ad_account_ad_volume.rb +12 -0
- data/lib/facebook_ads/ad_objects/ad_account_delivery_estimate.rb +1 -0
- data/lib/facebook_ads/ad_objects/{page_about_story.rb → ad_asset_body.rb} +4 -7
- data/lib/facebook_ads/ad_objects/ad_asset_call_to_action_type.rb +25 -0
- data/lib/facebook_ads/ad_objects/ad_asset_description.rb +26 -0
- data/lib/facebook_ads/ad_objects/ad_asset_feed_additional_data.rb +1 -0
- data/lib/facebook_ads/ad_objects/ad_asset_feed_spec.rb +1 -0
- data/lib/facebook_ads/ad_objects/ad_asset_image.rb +30 -0
- data/lib/facebook_ads/ad_objects/ad_asset_link_url.rb +32 -0
- data/lib/facebook_ads/ad_objects/ad_asset_title.rb +26 -0
- data/lib/facebook_ads/ad_objects/ad_asset_video.rb +34 -0
- data/lib/facebook_ads/ad_objects/ad_campaign_delivery_estimate.rb +1 -0
- data/lib/facebook_ads/ad_objects/ad_creative.rb +1 -0
- data/lib/facebook_ads/ad_objects/ad_creative_link_data_call_to_action.rb +1 -0
- data/lib/facebook_ads/ad_objects/ad_creative_promotion_metadata_spec.rb +30 -0
- data/lib/facebook_ads/ad_objects/ad_creative_site_links_spec.rb +26 -0
- data/lib/facebook_ads/ad_objects/ad_creative_sourcing_spec.rb +2 -0
- data/lib/facebook_ads/ad_objects/ad_preview.rb +4 -0
- data/lib/facebook_ads/ad_objects/ad_rule_history.rb +1 -0
- data/lib/facebook_ads/ad_objects/ad_set.rb +34 -20
- data/lib/facebook_ads/ad_objects/ad_video.rb +3 -2
- data/lib/facebook_ads/ad_objects/adgroup_placement_specific_review_feedback.rb +1 -0
- data/lib/facebook_ads/ad_objects/ads_insights.rb +14 -0
- data/lib/facebook_ads/ad_objects/ads_pixel.rb +0 -4
- data/lib/facebook_ads/ad_objects/album.rb +0 -1
- data/lib/facebook_ads/ad_objects/analytics_segment.rb +39 -0
- data/lib/facebook_ads/ad_objects/avatar.rb +1 -0
- data/lib/facebook_ads/ad_objects/branded_content_shadow_ig_media_id.rb +27 -0
- data/lib/facebook_ads/ad_objects/branded_content_shadow_ig_user_id.rb +24 -0
- data/lib/facebook_ads/ad_objects/business.rb +7 -1
- data/lib/facebook_ads/ad_objects/campaign.rb +1 -0
- data/lib/facebook_ads/ad_objects/catalog_sub_vertical_list.rb +0 -1
- data/lib/facebook_ads/ad_objects/commerce_merchant_settings.rb +0 -7
- data/lib/facebook_ads/ad_objects/commerce_order.rb +1 -0
- data/lib/facebook_ads/ad_objects/custom_audience_data_source.rb +2 -0
- data/lib/facebook_ads/ad_objects/funding_source_details.rb +1 -0
- data/lib/facebook_ads/ad_objects/funding_source_details_coupon.rb +1 -0
- data/lib/facebook_ads/ad_objects/group.rb +5 -6
- data/lib/facebook_ads/ad_objects/ig_media.rb +8 -0
- data/lib/facebook_ads/ad_objects/ig_user.rb +29 -0
- data/lib/facebook_ads/ad_objects/insights_result.rb +1 -1
- data/lib/facebook_ads/ad_objects/insights_value.rb +34 -0
- data/lib/facebook_ads/ad_objects/instagram_insights_result.rb +0 -5
- data/lib/facebook_ads/ad_objects/instagram_user.rb +4 -0
- data/lib/facebook_ads/ad_objects/page.rb +23 -4
- data/lib/facebook_ads/ad_objects/product_catalog.rb +8 -5
- data/lib/facebook_ads/ad_objects/product_catalog_diagnostic_group.rb +12 -3
- data/lib/facebook_ads/ad_objects/product_feed.rb +1 -0
- data/lib/facebook_ads/ad_objects/product_group.rb +0 -3
- data/lib/facebook_ads/ad_objects/product_item.rb +20 -3
- data/lib/facebook_ads/ad_objects/server_side/action_source.rb +3 -0
- data/lib/facebook_ads/ad_objects/server_side/event.rb +22 -2
- data/lib/facebook_ads/ad_objects/server_side/messaging_channel.rb +27 -0
- data/lib/facebook_ads/ad_objects/server_side/user_data.rb +41 -3
- data/lib/facebook_ads/ad_objects/shop.rb +1 -0
- data/lib/facebook_ads/ad_objects/targeting.rb +2 -0
- data/lib/facebook_ads/ad_objects/targeting_automation.rb +27 -0
- data/lib/facebook_ads/ad_objects/user.rb +2 -3
- data/lib/facebook_ads/ad_objects/whats_app_business_account.rb +3 -0
- data/lib/facebook_ads/ad_objects/whats_app_business_partner_client_verification_submission.rb +30 -0
- data/lib/facebook_ads/version.rb +1 -1
- metadata +18 -3
@@ -116,7 +116,6 @@ module FacebookAds
|
|
116
116
|
api.has_param :proxied_app_id, 'string'
|
117
117
|
api.has_param :published, 'bool'
|
118
118
|
api.has_param :qn, 'string'
|
119
|
-
api.has_param :scheduled_publish_time, 'int'
|
120
119
|
api.has_param :spherical_metadata, 'hash'
|
121
120
|
api.has_param :sponsor_id, 'string'
|
122
121
|
api.has_param :sponsor_relationship, 'int'
|
@@ -0,0 +1,39 @@
|
|
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 AnalyticsSegment < AdObject
|
17
|
+
|
18
|
+
field :custom_audience_ineligiblity_reasons, { list: 'string' }
|
19
|
+
field :description, 'string'
|
20
|
+
field :estimated_custom_audience_size, 'int'
|
21
|
+
field :event_info_rules, { list: 'object' }
|
22
|
+
field :event_rules, { list: 'object' }
|
23
|
+
field :filter_set, 'string'
|
24
|
+
field :has_demographic_rules, 'bool'
|
25
|
+
field :id, 'string'
|
26
|
+
field :is_all_user, 'bool'
|
27
|
+
field :is_eligible_for_push_campaign, 'bool'
|
28
|
+
field :is_internal, 'bool'
|
29
|
+
field :name, 'string'
|
30
|
+
field :percentile_rules, { list: 'object' }
|
31
|
+
field :time_last_seen, 'int'
|
32
|
+
field :time_last_updated, 'int'
|
33
|
+
field :user_property_rules, { list: 'object' }
|
34
|
+
field :web_param_rules, { list: 'object' }
|
35
|
+
has_no_post
|
36
|
+
has_no_delete
|
37
|
+
|
38
|
+
end
|
39
|
+
end
|
@@ -23,6 +23,7 @@ module FacebookAds
|
|
23
23
|
edge.get do |api|
|
24
24
|
api.has_param :client_name, 'string'
|
25
25
|
api.has_param :client_version, 'string'
|
26
|
+
api.has_param :config_id, 'string'
|
26
27
|
api.has_param :force_generate, 'bool'
|
27
28
|
api.has_param :platform, 'string'
|
28
29
|
api.has_param :profile, 'string'
|
@@ -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 BrandedContentShadowIgMediaId < AdObject
|
17
|
+
|
18
|
+
field :eligibility_errors, { list: 'string' }
|
19
|
+
field :id, 'string'
|
20
|
+
field :owner_id, 'string'
|
21
|
+
field :permalink, 'string'
|
22
|
+
has_no_get
|
23
|
+
has_no_post
|
24
|
+
has_no_delete
|
25
|
+
|
26
|
+
end
|
27
|
+
end
|
@@ -0,0 +1,24 @@
|
|
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 BrandedContentShadowIgUserId < AdObject
|
17
|
+
|
18
|
+
field :id, 'string'
|
19
|
+
has_no_get
|
20
|
+
has_no_post
|
21
|
+
has_no_delete
|
22
|
+
|
23
|
+
end
|
24
|
+
end
|
@@ -816,6 +816,7 @@ module FacebookAds
|
|
816
816
|
has_edge :owned_product_catalogs do |edge|
|
817
817
|
edge.get 'ProductCatalog'
|
818
818
|
edge.post 'ProductCatalog' do |api|
|
819
|
+
api.has_param :additional_vertical_option, { enum: -> { ProductCatalog::ADDITIONAL_VERTICAL_OPTION }}
|
819
820
|
api.has_param :catalog_segment_filter, 'object'
|
820
821
|
api.has_param :catalog_segment_product_set_id, 'string'
|
821
822
|
api.has_param :da_display_settings, 'object'
|
@@ -911,6 +912,12 @@ module FacebookAds
|
|
911
912
|
end
|
912
913
|
end
|
913
914
|
|
915
|
+
has_edge :self_certified_whatsapp_business_submissions do |edge|
|
916
|
+
edge.get 'WhatsAppBusinessPartnerClientVerificationSubmission' do |api|
|
917
|
+
api.has_param :end_business_id, 'string'
|
918
|
+
end
|
919
|
+
end
|
920
|
+
|
914
921
|
has_edge :setup_managed_partner_adaccounts do |edge|
|
915
922
|
edge.post 'Business' do |api|
|
916
923
|
api.has_param :credit_line_id, 'string'
|
@@ -989,7 +996,6 @@ module FacebookAds
|
|
989
996
|
api.has_param :fun_fact_toastee_id, 'int'
|
990
997
|
api.has_param :guide, { list: { list: 'int' } }
|
991
998
|
api.has_param :guide_enabled, 'bool'
|
992
|
-
api.has_param :has_nickname, 'bool'
|
993
999
|
api.has_param :holiday_card, 'string'
|
994
1000
|
api.has_param :initial_heading, 'int'
|
995
1001
|
api.has_param :initial_pitch, 'int'
|
@@ -44,7 +44,6 @@ module FacebookAds
|
|
44
44
|
field :local_service_business_item, 'object'
|
45
45
|
field :local_service_business_restaurant, 'object'
|
46
46
|
field :loyalty_offer, 'object'
|
47
|
-
field :meetup_space, 'object'
|
48
47
|
field :nursery, 'object'
|
49
48
|
field :printers_and_scanners, 'object'
|
50
49
|
field :printers_scanners_and_fax_machines, 'object'
|
@@ -74,13 +74,6 @@ module FacebookAds
|
|
74
74
|
end
|
75
75
|
end
|
76
76
|
|
77
|
-
has_edge :onsite_conversion_events do |edge|
|
78
|
-
edge.get do |api|
|
79
|
-
api.has_param :created_after, 'datetime'
|
80
|
-
api.has_param :created_before, 'datetime'
|
81
|
-
end
|
82
|
-
end
|
83
|
-
|
84
77
|
has_edge :order_management_apps do |edge|
|
85
78
|
edge.get 'Application'
|
86
79
|
edge.post 'CommerceMerchantSettings'
|
@@ -105,6 +105,7 @@ module FacebookAds
|
|
105
105
|
has_edge :refunds do |edge|
|
106
106
|
edge.get
|
107
107
|
edge.post 'CommerceOrder' do |api|
|
108
|
+
api.has_param :adjustment_amount, 'hash'
|
108
109
|
api.has_param :deductions, { list: 'hash' }
|
109
110
|
api.has_param :idempotency_key, 'string'
|
110
111
|
api.has_param :items, { list: 'hash' }
|
@@ -44,6 +44,7 @@ module FacebookAds
|
|
44
44
|
"INSTANT_ARTICLE_EVENTS",
|
45
45
|
"LOOKALIKE_PLATFORM",
|
46
46
|
"MAIL_CHIMP_EMAIL_HASHES",
|
47
|
+
"MARKETPLACE_LISTINGS",
|
47
48
|
"MESSENGER_ONSITE_SUBSCRIPTION",
|
48
49
|
"MOBILE_ADVERTISER_IDS",
|
49
50
|
"MOBILE_APP_COMBINATION_EVENTS",
|
@@ -74,6 +75,7 @@ module FacebookAds
|
|
74
75
|
"WEB_PIXEL_COMBINATION_EVENTS",
|
75
76
|
"WEB_PIXEL_HITS",
|
76
77
|
"WEB_PIXEL_HITS_CUSTOM_AUDIENCE_USERS",
|
78
|
+
"WHATSAPP_SUBSCRIBER_POOL",
|
77
79
|
]
|
78
80
|
|
79
81
|
TYPE = [
|
@@ -21,9 +21,9 @@ module FacebookAds
|
|
21
21
|
]
|
22
22
|
|
23
23
|
POST_PERMISSIONS = [
|
24
|
-
"
|
25
|
-
"
|
26
|
-
"
|
24
|
+
"ADMIN_ONLY",
|
25
|
+
"ANYONE",
|
26
|
+
"NONE",
|
27
27
|
]
|
28
28
|
|
29
29
|
PURPOSE = [
|
@@ -169,6 +169,8 @@ module FacebookAds
|
|
169
169
|
api.has_param :audience_exp, 'bool'
|
170
170
|
api.has_param :backdated_time, 'datetime'
|
171
171
|
api.has_param :backdated_time_granularity, { enum: -> { Post::BACKDATED_TIME_GRANULARITY }}
|
172
|
+
api.has_param :breaking_news, 'bool'
|
173
|
+
api.has_param :breaking_news_expiration, 'int'
|
172
174
|
api.has_param :call_to_action, 'object'
|
173
175
|
api.has_param :caption, 'string'
|
174
176
|
api.has_param :child_attachments, { list: 'object' }
|
@@ -193,7 +195,6 @@ module FacebookAds
|
|
193
195
|
api.has_param :formatting, { enum: -> { Post::FORMATTING }}
|
194
196
|
api.has_param :fun_fact_prompt_id, 'int'
|
195
197
|
api.has_param :fun_fact_toastee_id, 'int'
|
196
|
-
api.has_param :has_nickname, 'bool'
|
197
198
|
api.has_param :height, 'int'
|
198
199
|
api.has_param :holiday_card, 'string'
|
199
200
|
api.has_param :home_checkin_city_id, 'object'
|
@@ -376,7 +377,6 @@ module FacebookAds
|
|
376
377
|
api.has_param :proxied_app_id, 'string'
|
377
378
|
api.has_param :published, 'bool'
|
378
379
|
api.has_param :qn, 'string'
|
379
|
-
api.has_param :scheduled_publish_time, 'int'
|
380
380
|
api.has_param :spherical_metadata, 'hash'
|
381
381
|
api.has_param :sponsor_id, 'string'
|
382
382
|
api.has_param :sponsor_relationship, 'int'
|
@@ -435,7 +435,6 @@ module FacebookAds
|
|
435
435
|
api.has_param :fun_fact_toastee_id, 'int'
|
436
436
|
api.has_param :guide, { list: { list: 'int' } }
|
437
437
|
api.has_param :guide_enabled, 'bool'
|
438
|
-
api.has_param :has_nickname, 'bool'
|
439
438
|
api.has_param :holiday_card, 'string'
|
440
439
|
api.has_param :initial_heading, 'int'
|
441
440
|
api.has_param :initial_pitch, 'int'
|
@@ -34,6 +34,14 @@ module FacebookAds
|
|
34
34
|
field :username, 'string'
|
35
35
|
has_no_delete
|
36
36
|
|
37
|
+
has_edge :branded_content_partner_promote do |edge|
|
38
|
+
edge.get 'BrandedContentShadowIgUserId'
|
39
|
+
edge.post 'BrandedContentShadowIgUserId' do |api|
|
40
|
+
api.has_param :permission, 'bool'
|
41
|
+
api.has_param :sponsor_id, 'int'
|
42
|
+
end
|
43
|
+
end
|
44
|
+
|
37
45
|
has_edge :children do |edge|
|
38
46
|
edge.get 'IgMedia'
|
39
47
|
end
|
@@ -38,6 +38,34 @@ module FacebookAds
|
|
38
38
|
edge.get 'UserAvailableCatalogs'
|
39
39
|
end
|
40
40
|
|
41
|
+
has_edge :branded_content_ad_permissions do |edge|
|
42
|
+
edge.get 'IgbcAdsPermission'
|
43
|
+
edge.post 'IgbcAdsPermission' do |api|
|
44
|
+
api.has_param :creator_instagram_account, 'string'
|
45
|
+
api.has_param :revoke, 'bool'
|
46
|
+
end
|
47
|
+
end
|
48
|
+
|
49
|
+
has_edge :branded_content_advertisable_medias do |edge|
|
50
|
+
edge.get 'BrandedContentShadowIgMediaId' do |api|
|
51
|
+
api.has_param :creator_username, 'string'
|
52
|
+
api.has_param :only_fetch_allowlisted, 'bool'
|
53
|
+
api.has_param :permalinks, { list: 'string' }
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
has_edge :branded_content_tag_approval do |edge|
|
58
|
+
edge.delete do |api|
|
59
|
+
api.has_param :user_ids, { list: 'int' }
|
60
|
+
end
|
61
|
+
edge.get 'BrandedContentShadowIgUserId' do |api|
|
62
|
+
api.has_param :user_ids, { list: 'int' }
|
63
|
+
end
|
64
|
+
edge.post 'BrandedContentShadowIgUserId' do |api|
|
65
|
+
api.has_param :user_ids, { list: 'int' }
|
66
|
+
end
|
67
|
+
end
|
68
|
+
|
41
69
|
has_edge :catalog_product_search do |edge|
|
42
70
|
edge.get 'ShadowIgUserCatalogProductSearch' do |api|
|
43
71
|
api.has_param :catalog_id, 'string'
|
@@ -92,6 +120,7 @@ module FacebookAds
|
|
92
120
|
api.has_param :product_tags, { list: 'hash' }
|
93
121
|
api.has_param :share_to_feed, 'bool'
|
94
122
|
api.has_param :thumb_offset, 'string'
|
123
|
+
api.has_param :upload_type, 'string'
|
95
124
|
api.has_param :user_tags, { list: 'hash' }
|
96
125
|
api.has_param :video_url, 'string'
|
97
126
|
end
|
@@ -0,0 +1,34 @@
|
|
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 InsightsValue < AdObject
|
17
|
+
|
18
|
+
field :campaign_id, 'string'
|
19
|
+
field :end_time, 'datetime'
|
20
|
+
field :engagement_source, 'string'
|
21
|
+
field :message_type, 'string'
|
22
|
+
field :messaging_channel, 'string'
|
23
|
+
field :recurring_notifications_entry_point, 'string'
|
24
|
+
field :recurring_notifications_frequency, 'string'
|
25
|
+
field :recurring_notifications_topic, 'string'
|
26
|
+
field :start_time, 'datetime'
|
27
|
+
field :value, 'object'
|
28
|
+
has_no_id
|
29
|
+
has_no_get
|
30
|
+
has_no_post
|
31
|
+
has_no_delete
|
32
|
+
|
33
|
+
end
|
34
|
+
end
|
@@ -298,6 +298,7 @@ module FacebookAds
|
|
298
298
|
"awards",
|
299
299
|
"bio",
|
300
300
|
"birthday",
|
301
|
+
"calls",
|
301
302
|
"category",
|
302
303
|
"checkins",
|
303
304
|
"company_overview",
|
@@ -332,6 +333,7 @@ module FacebookAds
|
|
332
333
|
"message_context",
|
333
334
|
"message_deliveries",
|
334
335
|
"message_echoes",
|
336
|
+
"message_edits",
|
335
337
|
"message_mention",
|
336
338
|
"message_reactions",
|
337
339
|
"message_reads",
|
@@ -361,6 +363,7 @@ module FacebookAds
|
|
361
363
|
"page_upcoming_change",
|
362
364
|
"parking",
|
363
365
|
"payment_options",
|
366
|
+
"payment_request_update",
|
364
367
|
"personal_info",
|
365
368
|
"personal_interests",
|
366
369
|
"phone",
|
@@ -380,6 +383,14 @@ module FacebookAds
|
|
380
383
|
"website",
|
381
384
|
]
|
382
385
|
|
386
|
+
ACTION = [
|
387
|
+
"SPAM",
|
388
|
+
]
|
389
|
+
|
390
|
+
ACTION_TYPE = [
|
391
|
+
"REPORT_THREAD",
|
392
|
+
]
|
393
|
+
|
383
394
|
|
384
395
|
field :about, 'string'
|
385
396
|
field :access_token, 'string'
|
@@ -388,6 +399,7 @@ module FacebookAds
|
|
388
399
|
field :app_id, 'string'
|
389
400
|
field :artists_we_like, 'string'
|
390
401
|
field :attire, 'string'
|
402
|
+
field :available_promo_offer_ids, { list: 'map<string, list<map<string, string>>>' }
|
391
403
|
field :awards, 'string'
|
392
404
|
field :band_interests, 'string'
|
393
405
|
field :band_members, 'string'
|
@@ -395,6 +407,7 @@ module FacebookAds
|
|
395
407
|
field :bio, 'string'
|
396
408
|
field :birthday, 'string'
|
397
409
|
field :booking_agent, 'string'
|
410
|
+
field :breaking_news_usage, 'object'
|
398
411
|
field :built, 'string'
|
399
412
|
field :business, 'object'
|
400
413
|
field :can_checkin, 'bool'
|
@@ -436,7 +449,6 @@ module FacebookAds
|
|
436
449
|
field :has_lead_access, 'HasLeadAccess'
|
437
450
|
field :has_transitioned_to_new_page_experience, 'bool'
|
438
451
|
field :has_whatsapp_business_number, 'bool'
|
439
|
-
field :has_whatsapp_enterprise_number_using_cloud_api, 'bool'
|
440
452
|
field :has_whatsapp_number, 'bool'
|
441
453
|
field :hometown, 'string'
|
442
454
|
field :hours, 'hash'
|
@@ -480,7 +492,6 @@ module FacebookAds
|
|
480
492
|
field :offer_eligible, 'bool'
|
481
493
|
field :overall_star_rating, 'double'
|
482
494
|
field :owner_business, 'Business'
|
483
|
-
field :page_about_story, 'PageAboutStory'
|
484
495
|
field :page_token, 'string'
|
485
496
|
field :parent_page, 'Page'
|
486
497
|
field :parking, 'PageParking'
|
@@ -808,6 +819,8 @@ module FacebookAds
|
|
808
819
|
api.has_param :audience_exp, 'bool'
|
809
820
|
api.has_param :backdated_time, 'datetime'
|
810
821
|
api.has_param :backdated_time_granularity, { enum: -> { Page::BACKDATED_TIME_GRANULARITY }}
|
822
|
+
api.has_param :breaking_news, 'bool'
|
823
|
+
api.has_param :breaking_news_expiration, 'int'
|
811
824
|
api.has_param :call_to_action, 'object'
|
812
825
|
api.has_param :caption, 'string'
|
813
826
|
api.has_param :child_attachments, { list: 'object' }
|
@@ -833,7 +846,6 @@ module FacebookAds
|
|
833
846
|
api.has_param :formatting, { enum: -> { Page::FORMATTING }}
|
834
847
|
api.has_param :fun_fact_prompt_id, 'int'
|
835
848
|
api.has_param :fun_fact_toastee_id, 'int'
|
836
|
-
api.has_param :has_nickname, 'bool'
|
837
849
|
api.has_param :height, 'int'
|
838
850
|
api.has_param :holiday_card, 'string'
|
839
851
|
api.has_param :home_checkin_city_id, 'object'
|
@@ -1397,6 +1409,14 @@ module FacebookAds
|
|
1397
1409
|
end
|
1398
1410
|
end
|
1399
1411
|
|
1412
|
+
has_edge :thread_action do |edge|
|
1413
|
+
edge.post 'Page' do |api|
|
1414
|
+
api.has_param :action, { enum: -> { Page::ACTION }}
|
1415
|
+
api.has_param :action_type, { enum: -> { Page::ACTION_TYPE }}
|
1416
|
+
api.has_param :user_id, 'hash'
|
1417
|
+
end
|
1418
|
+
end
|
1419
|
+
|
1400
1420
|
has_edge :thread_owner do |edge|
|
1401
1421
|
edge.get 'PageThreadOwner' do |api|
|
1402
1422
|
api.has_param :recipient, 'string'
|
@@ -1526,7 +1546,6 @@ module FacebookAds
|
|
1526
1546
|
api.has_param :fun_fact_toastee_id, 'int'
|
1527
1547
|
api.has_param :guide, { list: { list: 'int' } }
|
1528
1548
|
api.has_param :guide_enabled, 'bool'
|
1529
|
-
api.has_param :has_nickname, 'bool'
|
1530
1549
|
api.has_param :holiday_card, 'string'
|
1531
1550
|
api.has_param :initial_heading, 'int'
|
1532
1551
|
api.has_param :initial_pitch, 'int'
|
@@ -14,12 +14,17 @@ module FacebookAds
|
|
14
14
|
# pull request for this class.
|
15
15
|
|
16
16
|
class ProductCatalog < AdObject
|
17
|
+
ADDITIONAL_VERTICAL_OPTION = [
|
18
|
+
"LOCAL_DA_CATALOG",
|
19
|
+
"LOCAL_PRODUCTS",
|
20
|
+
]
|
21
|
+
|
17
22
|
VERTICAL = [
|
18
23
|
"adoptable_pets",
|
19
|
-
"bookable",
|
20
24
|
"commerce",
|
21
25
|
"destinations",
|
22
26
|
"flights",
|
27
|
+
"generic",
|
23
28
|
"home_listings",
|
24
29
|
"hotels",
|
25
30
|
"jobs",
|
@@ -27,7 +32,6 @@ module FacebookAds
|
|
27
32
|
"local_service_businesses",
|
28
33
|
"offer_items",
|
29
34
|
"offline_commerce",
|
30
|
-
"ticketed_experiences",
|
31
35
|
"transactable_items",
|
32
36
|
"vehicles",
|
33
37
|
]
|
@@ -97,12 +101,14 @@ module FacebookAds
|
|
97
101
|
field :feed_count, 'int'
|
98
102
|
field :id, 'string'
|
99
103
|
field :is_catalog_segment, 'bool'
|
104
|
+
field :is_local_catalog, 'bool'
|
100
105
|
field :name, 'string'
|
101
106
|
field :owner_business, 'Business'
|
102
107
|
field :product_count, 'int'
|
103
108
|
field :store_catalog_settings, 'StoreCatalogSettings'
|
104
109
|
field :user_access_expire_time, 'datetime'
|
105
110
|
field :vertical, 'string'
|
111
|
+
field :additional_vertical_option, { enum: -> { ADDITIONAL_VERTICAL_OPTION }}
|
106
112
|
field :catalog_segment_filter, 'object'
|
107
113
|
field :catalog_segment_product_set_id, 'string'
|
108
114
|
field :destination_catalog_settings, 'hash'
|
@@ -452,9 +458,6 @@ module FacebookAds
|
|
452
458
|
api.has_param :material, 'string'
|
453
459
|
api.has_param :mobile_link, 'string'
|
454
460
|
api.has_param :name, 'string'
|
455
|
-
api.has_param :offer_price_amount, 'int'
|
456
|
-
api.has_param :offer_price_end_date, 'datetime'
|
457
|
-
api.has_param :offer_price_start_date, 'datetime'
|
458
461
|
api.has_param :ordering_index, 'int'
|
459
462
|
api.has_param :origin_country, { enum: -> { ProductItem::ORIGIN_COUNTRY }}
|
460
463
|
api.has_param :pattern, 'string'
|
@@ -15,11 +15,20 @@ module FacebookAds
|
|
15
15
|
|
16
16
|
class ProductCatalogDiagnosticGroup < AdObject
|
17
17
|
AFFECTED_CHANNELS = [
|
18
|
-
"
|
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",
|
19
29
|
"shops",
|
20
|
-
"test_capability",
|
21
30
|
"universal_checkout",
|
22
|
-
"
|
31
|
+
"whatsapp",
|
23
32
|
]
|
24
33
|
|
25
34
|
AFFECTED_ENTITY = [
|
@@ -70,9 +70,6 @@ module FacebookAds
|
|
70
70
|
api.has_param :material, 'string'
|
71
71
|
api.has_param :mobile_link, 'string'
|
72
72
|
api.has_param :name, 'string'
|
73
|
-
api.has_param :offer_price_amount, 'int'
|
74
|
-
api.has_param :offer_price_end_date, 'datetime'
|
75
|
-
api.has_param :offer_price_start_date, 'datetime'
|
76
73
|
api.has_param :ordering_index, 'int'
|
77
74
|
api.has_param :pattern, 'string'
|
78
75
|
api.has_param :price, 'int'
|
@@ -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,14 +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",
|
340
356
|
"INVALID_SHELTER_PAGE_ID",
|
341
357
|
"INVALID_SHIPPING_PROFILE_PARAMS",
|
342
358
|
"INVALID_SUBSCRIPTION_DISABLE_PARAMS",
|
343
359
|
"INVALID_SUBSCRIPTION_ENABLE_PARAMS",
|
344
360
|
"INVALID_SUBSCRIPTION_PARAMS",
|
361
|
+
"INVALID_VEHICLE_STATE",
|
362
|
+
"INVALID_VIRTUAL_TOUR_URL_DOMAIN",
|
345
363
|
"INVENTORY_ZERO_AVAILABILITY_IN_STOCK",
|
346
364
|
"IN_ANOTHER_PRODUCT_LAUNCH",
|
347
365
|
"ITEM_GROUP_NOT_SPECIFIED",
|
@@ -361,8 +379,10 @@ module FacebookAds
|
|
361
379
|
"MISSING_SIZE",
|
362
380
|
"MISSING_TAX_CATEGORY",
|
363
381
|
"NEGATIVE_COMMUNITY_FEEDBACK",
|
382
|
+
"NEGATIVE_PRICE",
|
364
383
|
"NOT_ENOUGH_IMAGES",
|
365
384
|
"NOT_ENOUGH_UNIQUE_PRODUCTS",
|
385
|
+
"OVERLAY_DISCLAIMER_EXCEEDED_MAX_LENGTH",
|
366
386
|
"PART_OF_PRODUCT_LAUNCH",
|
367
387
|
"PRODUCT_EXPIRED",
|
368
388
|
"PRODUCT_ITEM_HIDDEN_FROM_ALL_SHOPS",
|
@@ -767,9 +787,6 @@ module FacebookAds
|
|
767
787
|
field :iphone_app_store_id, 'int'
|
768
788
|
field :iphone_url, 'string'
|
769
789
|
field :launch_date, 'string'
|
770
|
-
field :offer_price_amount, 'int'
|
771
|
-
field :offer_price_end_date, 'datetime'
|
772
|
-
field :offer_price_start_date, 'datetime'
|
773
790
|
field :return_policy_days, 'int'
|
774
791
|
field :windows_phone_app_id, 'string'
|
775
792
|
field :windows_phone_app_name, 'string'
|