facebookbusiness 0.7.0.1 → 0.8.0.3
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_account.rb +16 -19
- data/lib/facebook_ads/ad_objects/ad_account_ad_volume.rb +23 -0
- data/lib/facebook_ads/ad_objects/ad_account_delivery_estimate.rb +1 -0
- data/lib/facebook_ads/ad_objects/ad_account_matched_search_applications_edge_data.rb +1 -0
- data/lib/facebook_ads/ad_objects/ad_account_targeting_unified.rb +1 -0
- data/lib/facebook_ads/ad_objects/ad_activity.rb +7 -0
- data/lib/facebook_ads/ad_objects/ad_asset_feed_spec.rb +2 -0
- data/lib/facebook_ads/ad_objects/ad_campaign_activity.rb +2 -2
- 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/{atlas_url.rb → ad_creative_instagram_branded_content.rb} +1 -2
- data/lib/facebook_ads/ad_objects/ad_creative_interactive_components_spec.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_network_analytics_sync_query_result.rb +1 -0
- data/lib/facebook_ads/ad_objects/ad_place_page_set.rb +6 -0
- data/lib/facebook_ads/ad_objects/ad_preview.rb +0 -1
- data/lib/facebook_ads/ad_objects/ad_report_spec.rb +0 -1
- data/lib/facebook_ads/ad_objects/ad_set.rb +2 -0
- data/lib/facebook_ads/ad_objects/ad_study.rb +2 -0
- data/lib/facebook_ads/ad_objects/ad_video.rb +12 -27
- data/lib/facebook_ads/ad_objects/adgroup_placement_specific_review_feedback.rb +4 -0
- data/lib/facebook_ads/ad_objects/{ads_interest.rb → adoptable_pet.rb} +19 -5
- data/lib/facebook_ads/ad_objects/ads_insights.rb +4 -0
- data/lib/facebook_ads/ad_objects/ads_pixel.rb +3 -0
- data/lib/facebook_ads/ad_objects/application.rb +26 -0
- data/lib/facebook_ads/ad_objects/atlas_campaign.rb +3 -3
- data/lib/facebook_ads/ad_objects/automotive_model.rb +1 -0
- data/lib/facebook_ads/ad_objects/business.rb +46 -117
- data/lib/facebook_ads/ad_objects/business_asset_group.rb +2 -3
- data/lib/facebook_ads/ad_objects/business_role_request.rb +9 -0
- data/lib/facebook_ads/ad_objects/business_unit.rb +1 -1
- data/lib/facebook_ads/ad_objects/business_user.rb +9 -0
- data/lib/facebook_ads/ad_objects/campaign.rb +257 -0
- data/lib/facebook_ads/ad_objects/catalog_sub_vertical_list.rb +88 -0
- data/lib/facebook_ads/ad_objects/commerce_merchant_settings.rb +27 -0
- data/lib/facebook_ads/ad_objects/commerce_order.rb +6 -0
- data/lib/facebook_ads/ad_objects/commerce_order_transaction_detail.rb +4 -0
- data/lib/facebook_ads/ad_objects/{creative_asset_tag.rb → connections_targeting.rb} +2 -2
- data/lib/facebook_ads/ad_objects/{business_creative_folder_sharing_agreement.rb → cpas_advertiser_partnership_recommendation.rb} +8 -11
- data/lib/facebook_ads/ad_objects/{brand_audience.rb → cpas_collaboration_request.rb} +15 -9
- data/lib/facebook_ads/ad_objects/custom_audience_data_source.rb +1 -0
- data/lib/facebook_ads/ad_objects/da_check.rb +7 -0
- data/lib/facebook_ads/ad_objects/destination.rb +1 -0
- data/lib/facebook_ads/ad_objects/event.rb +12 -1
- data/lib/facebook_ads/ad_objects/extended_credit.rb +7 -0
- data/lib/facebook_ads/ad_objects/external_event_source.rb +1 -0
- data/lib/facebook_ads/ad_objects/flight.rb +1 -0
- data/lib/facebook_ads/ad_objects/group.rb +10 -1
- data/lib/facebook_ads/ad_objects/home_listing.rb +1 -0
- data/lib/facebook_ads/ad_objects/hotel.rb +1 -0
- data/lib/facebook_ads/ad_objects/ig_media.rb +1 -0
- data/lib/facebook_ads/ad_objects/life_event.rb +0 -4
- data/lib/facebook_ads/ad_objects/link.rb +0 -6
- data/lib/facebook_ads/ad_objects/live_video.rb +12 -16
- data/lib/facebook_ads/ad_objects/media_fingerprint.rb +0 -1
- data/lib/facebook_ads/ad_objects/native_offer_view.rb +0 -1
- data/lib/facebook_ads/ad_objects/oracle_transaction.rb +0 -7
- data/lib/facebook_ads/ad_objects/page.rb +34 -65
- data/lib/facebook_ads/ad_objects/page_admin_note.rb +1 -0
- data/lib/facebook_ads/ad_objects/page_call_to_action.rb +3 -0
- data/lib/facebook_ads/ad_objects/page_change_proposal.rb +2 -0
- data/lib/facebook_ads/ad_objects/page_post.rb +2 -0
- data/lib/facebook_ads/ad_objects/{business_creative.rb → payment_subscription.rb} +24 -16
- data/lib/facebook_ads/ad_objects/photo.rb +6 -0
- data/lib/facebook_ads/ad_objects/post.rb +4 -2
- data/lib/facebook_ads/ad_objects/product_catalog.rb +42 -0
- data/lib/facebook_ads/ad_objects/product_feed.rb +31 -0
- data/lib/facebook_ads/ad_objects/product_group.rb +1 -0
- data/lib/facebook_ads/ad_objects/product_item.rb +2 -0
- data/lib/facebook_ads/ad_objects/product_set.rb +4 -0
- data/lib/facebook_ads/ad_objects/{client_transparency_status.rb → product_set_metadata.rb} +5 -5
- data/lib/facebook_ads/ad_objects/profile.rb +1 -0
- data/lib/facebook_ads/ad_objects/profile_picture_source.rb +4 -0
- data/lib/facebook_ads/ad_objects/publisher_block_list.rb +6 -0
- data/lib/facebook_ads/ad_objects/saved_audience.rb +1 -0
- data/lib/facebook_ads/ad_objects/security_settings.rb +0 -1
- data/lib/facebook_ads/ad_objects/server_side/batch_processor.rb +73 -0
- data/lib/facebook_ads/ad_objects/server_side/content.rb +75 -13
- data/lib/facebook_ads/ad_objects/server_side/custom_data.rb +45 -6
- data/lib/facebook_ads/ad_objects/server_side/delivery_category.rb +33 -0
- data/lib/facebook_ads/ad_objects/server_side/event.rb +62 -3
- data/lib/facebook_ads/ad_objects/server_side/event_request.rb +134 -13
- data/lib/facebook_ads/ad_objects/server_side/event_request_async.rb +43 -0
- data/lib/facebook_ads/ad_objects/{whats_app_business_profile.rb → server_side/http_method.rb} +7 -15
- data/lib/facebook_ads/ad_objects/server_side/http_service_interface.rb +33 -0
- data/lib/facebook_ads/ad_objects/server_side/http_util.rb +31 -0
- data/lib/facebook_ads/ad_objects/server_side/user_data.rb +145 -17
- data/lib/facebook_ads/ad_objects/server_side/util.rb +216 -149
- data/lib/facebook_ads/ad_objects/system_user.rb +9 -4
- data/lib/facebook_ads/ad_objects/targeting.rb +4 -3
- data/lib/facebook_ads/ad_objects/{user_influence.rb → targeting_relaxation.rb} +2 -4
- data/lib/facebook_ads/ad_objects/third_party_measurement_report_dataset.rb +1 -0
- data/lib/facebook_ads/ad_objects/unified_thread.rb +1 -0
- data/lib/facebook_ads/ad_objects/user.rb +9 -15
- data/lib/facebook_ads/ad_objects/vehicle.rb +1 -0
- data/lib/facebook_ads/ad_objects/vehicle_offer.rb +1 -0
- data/lib/facebook_ads/ad_objects/whats_app_business_account.rb +22 -0
- data/lib/facebook_ads/errors.rb +1 -1
- data/lib/facebook_ads/version.rb +2 -2
- metadata +64 -25
- data/lib/facebook_ads/ad_objects/business_creative_folder.rb +0 -79
- data/lib/facebook_ads/ad_objects/business_image.rb +0 -95
- data/lib/facebook_ads/ad_objects/iterative_split_test_config.rb +0 -43
- data/lib/facebook_ads/ad_objects/messenger_platform_referral.rb +0 -39
- data/lib/facebook_ads/ad_objects/page_about_story.rb +0 -39
- data/lib/facebook_ads/ad_objects/split_test_config.rb +0 -41
- data/lib/facebook_ads/ad_objects/streaming_reaction.rb +0 -51
- data/lib/facebook_ads/ad_objects/user_taggable_friend.rb +0 -49
@@ -62,6 +62,7 @@ module FacebookAds
|
|
62
62
|
field :estimated_payment_details, 'object'
|
63
63
|
field :id, 'string'
|
64
64
|
field :is_group_buy, 'bool'
|
65
|
+
field :is_test_order, 'bool'
|
65
66
|
field :last_updated, 'string'
|
66
67
|
field :merchant_order_id, 'string'
|
67
68
|
field :order_status, 'object'
|
@@ -75,6 +76,7 @@ module FacebookAds
|
|
75
76
|
edge.post 'CommerceOrder' do |api|
|
76
77
|
api.has_param :idempotency_key, 'string'
|
77
78
|
api.has_param :merchant_order_reference, 'string'
|
79
|
+
api.has_param :return_error_response, 'bool'
|
78
80
|
end
|
79
81
|
end
|
80
82
|
|
@@ -96,6 +98,10 @@ module FacebookAds
|
|
96
98
|
edge.get
|
97
99
|
end
|
98
100
|
|
101
|
+
has_edge :promotion_details do |edge|
|
102
|
+
edge.get
|
103
|
+
end
|
104
|
+
|
99
105
|
has_edge :promotions do |edge|
|
100
106
|
edge.get
|
101
107
|
end
|
@@ -25,10 +25,10 @@ module FacebookAds
|
|
25
25
|
# on github and we'll fix in our codegen framework. We'll not be able to accept
|
26
26
|
# pull request for this class.
|
27
27
|
|
28
|
-
class
|
28
|
+
class ConnectionsTargeting < AdObject
|
29
29
|
|
30
|
+
field :id, 'string'
|
30
31
|
field :name, 'string'
|
31
|
-
has_no_id
|
32
32
|
has_no_get
|
33
33
|
has_no_post
|
34
34
|
has_no_delete
|
@@ -25,20 +25,17 @@ module FacebookAds
|
|
25
25
|
# on github and we'll fix in our codegen framework. We'll not be able to accept
|
26
26
|
# pull request for this class.
|
27
27
|
|
28
|
-
class
|
29
|
-
REQUEST_STATUS = [
|
30
|
-
"APPROVE",
|
31
|
-
"DECLINE",
|
32
|
-
"EXPIRED",
|
33
|
-
"IN_PROGRESS",
|
34
|
-
"PENDING",
|
35
|
-
]
|
28
|
+
class CpasAdvertiserPartnershipRecommendation < AdObject
|
36
29
|
|
37
|
-
|
38
|
-
field :
|
30
|
+
field :advertiser_business_id, 'string'
|
31
|
+
field :brand_business_id, 'string'
|
32
|
+
field :brands, { list: 'string' }
|
33
|
+
field :countries, { list: 'string' }
|
39
34
|
field :id, 'string'
|
40
|
-
field :
|
35
|
+
field :merchant_business_id, 'string'
|
36
|
+
field :merchant_categories, { list: 'string' }
|
41
37
|
field :status, 'string'
|
38
|
+
field :status_reason, 'string'
|
42
39
|
has_no_post
|
43
40
|
has_no_delete
|
44
41
|
|
@@ -25,18 +25,24 @@ module FacebookAds
|
|
25
25
|
# on github and we'll fix in our codegen framework. We'll not be able to accept
|
26
26
|
# pull request for this class.
|
27
27
|
|
28
|
-
class
|
28
|
+
class CpasCollaborationRequest < AdObject
|
29
|
+
REQUESTER_AGENCY_OR_BRAND = [
|
30
|
+
"AGENCY",
|
31
|
+
"BRAND",
|
32
|
+
"MERCHANT",
|
33
|
+
]
|
29
34
|
|
30
|
-
|
31
|
-
field :
|
32
|
-
field :
|
35
|
+
|
36
|
+
field :brands, { list: 'string' }
|
37
|
+
field :contact_email, 'string'
|
38
|
+
field :contact_first_name, 'string'
|
39
|
+
field :contact_last_name, 'string'
|
33
40
|
field :id, 'string'
|
34
|
-
field :
|
35
|
-
field :
|
41
|
+
field :phone_number, 'string'
|
42
|
+
field :receiver_business, 'Business'
|
43
|
+
field :requester_agency_or_brand, 'string'
|
44
|
+
field :sender_client_business, 'Business'
|
36
45
|
field :status, 'string'
|
37
|
-
field :targeting, 'Targeting'
|
38
|
-
field :time_created, 'datetime'
|
39
|
-
field :time_updated, 'datetime'
|
40
46
|
has_no_post
|
41
47
|
has_no_delete
|
42
48
|
|
@@ -54,8 +54,17 @@ module FacebookAds
|
|
54
54
|
"WORKSHOP",
|
55
55
|
]
|
56
56
|
|
57
|
+
ONLINE_EVENT_FORMAT = [
|
58
|
+
"fb_live",
|
59
|
+
"messenger_room",
|
60
|
+
"none",
|
61
|
+
"other",
|
62
|
+
"third_party",
|
63
|
+
]
|
64
|
+
|
57
65
|
TYPE = [
|
58
66
|
"community",
|
67
|
+
"friends",
|
59
68
|
"group",
|
60
69
|
"private",
|
61
70
|
"public",
|
@@ -93,6 +102,8 @@ module FacebookAds
|
|
93
102
|
field :maybe_count, 'int'
|
94
103
|
field :name, 'string'
|
95
104
|
field :noreply_count, 'int'
|
105
|
+
field :online_event_format, { enum: -> { ONLINE_EVENT_FORMAT }}
|
106
|
+
field :online_event_third_party_url, 'string'
|
96
107
|
field :owner, 'object'
|
97
108
|
field :parent_group, 'Group'
|
98
109
|
field :place, 'Place'
|
@@ -121,6 +132,7 @@ module FacebookAds
|
|
121
132
|
edge.post 'LiveVideo' do |api|
|
122
133
|
api.has_param :content_tags, { list: 'string' }
|
123
134
|
api.has_param :description, 'string'
|
135
|
+
api.has_param :enable_backup_ingest, 'bool'
|
124
136
|
api.has_param :encoding_settings, 'string'
|
125
137
|
api.has_param :fisheye_video_cropped, 'bool'
|
126
138
|
api.has_param :front_z_rotation, 'double'
|
@@ -132,7 +144,6 @@ module FacebookAds
|
|
132
144
|
api.has_param :privacy, 'string'
|
133
145
|
api.has_param :projection, { enum: -> { LiveVideo::PROJECTION }}
|
134
146
|
api.has_param :published, 'bool'
|
135
|
-
api.has_param :save_vod, 'bool'
|
136
147
|
api.has_param :schedule_custom_profile_image, 'file'
|
137
148
|
api.has_param :spatial_audio_format, { enum: -> { LiveVideo::SPATIAL_AUDIO_FORMAT }}
|
138
149
|
api.has_param :status, { enum: -> { LiveVideo::STATUS }}
|
@@ -73,6 +73,7 @@ module FacebookAds
|
|
73
73
|
"STUDY_GROUP",
|
74
74
|
"SUPPORT",
|
75
75
|
"TEAMMATES",
|
76
|
+
"THEME",
|
76
77
|
"TRAVEL_PLANNING",
|
77
78
|
"WORK_ANNOUNCEMENT",
|
78
79
|
"WORK_DEMO_GROUP",
|
@@ -80,10 +81,12 @@ module FacebookAds
|
|
80
81
|
"WORK_EPHEMERAL",
|
81
82
|
"WORK_FEEDBACK",
|
82
83
|
"WORK_FOR_SALE",
|
84
|
+
"WORK_GARDEN",
|
83
85
|
"WORK_LEARNING",
|
84
86
|
"WORK_MENTORSHIP",
|
85
87
|
"WORK_MULTI_COMPANY",
|
86
88
|
"WORK_RECRUITING",
|
89
|
+
"WORK_RESUME_REVIEW",
|
87
90
|
"WORK_SOCIAL",
|
88
91
|
"WORK_TEAM",
|
89
92
|
"WORK_TEAMWORK",
|
@@ -125,6 +128,7 @@ module FacebookAds
|
|
125
128
|
"STUDY_GROUP",
|
126
129
|
"SUPPORT",
|
127
130
|
"TEAMMATES",
|
131
|
+
"THEME",
|
128
132
|
"TRAVEL_PLANNING",
|
129
133
|
"WORK_ANNOUNCEMENT",
|
130
134
|
"WORK_DEMO_GROUP",
|
@@ -132,10 +136,12 @@ module FacebookAds
|
|
132
136
|
"WORK_EPHEMERAL",
|
133
137
|
"WORK_FEEDBACK",
|
134
138
|
"WORK_FOR_SALE",
|
139
|
+
"WORK_GARDEN",
|
135
140
|
"WORK_LEARNING",
|
136
141
|
"WORK_MENTORSHIP",
|
137
142
|
"WORK_MULTI_COMPANY",
|
138
143
|
"WORK_RECRUITING",
|
144
|
+
"WORK_RESUME_REVIEW",
|
139
145
|
"WORK_SOCIAL",
|
140
146
|
"WORK_TEAM",
|
141
147
|
"WORK_TEAMWORK",
|
@@ -351,6 +357,7 @@ module FacebookAds
|
|
351
357
|
edge.post 'LiveVideo' do |api|
|
352
358
|
api.has_param :content_tags, { list: 'string' }
|
353
359
|
api.has_param :description, 'string'
|
360
|
+
api.has_param :enable_backup_ingest, 'bool'
|
354
361
|
api.has_param :encoding_settings, 'string'
|
355
362
|
api.has_param :fisheye_video_cropped, 'bool'
|
356
363
|
api.has_param :front_z_rotation, 'double'
|
@@ -362,7 +369,6 @@ module FacebookAds
|
|
362
369
|
api.has_param :privacy, 'string'
|
363
370
|
api.has_param :projection, { enum: -> { LiveVideo::PROJECTION }}
|
364
371
|
api.has_param :published, 'bool'
|
365
|
-
api.has_param :save_vod, 'bool'
|
366
372
|
api.has_param :schedule_custom_profile_image, 'file'
|
367
373
|
api.has_param :spatial_audio_format, { enum: -> { LiveVideo::SPATIAL_AUDIO_FORMAT }}
|
368
374
|
api.has_param :status, { enum: -> { LiveVideo::STATUS }}
|
@@ -450,6 +456,7 @@ module FacebookAds
|
|
450
456
|
|
451
457
|
has_edge :picture do |edge|
|
452
458
|
edge.get 'ProfilePictureSource' do |api|
|
459
|
+
api.has_param :breaking_change, { enum: -> { ProfilePictureSource::BREAKING_CHANGE }}
|
453
460
|
api.has_param :height, 'int'
|
454
461
|
api.has_param :redirect, 'bool'
|
455
462
|
api.has_param :type, { enum: -> { ProfilePictureSource::TYPE }}
|
@@ -477,6 +484,7 @@ module FacebookAds
|
|
477
484
|
api.has_param :composer_type, 'string'
|
478
485
|
api.has_param :container_type, { enum: -> { AdVideo::CONTAINER_TYPE }}
|
479
486
|
api.has_param :content_category, { enum: -> { AdVideo::CONTENT_CATEGORY }}
|
487
|
+
api.has_param :creative_tools, 'string'
|
480
488
|
api.has_param :description, 'string'
|
481
489
|
api.has_param :embeddable, 'bool'
|
482
490
|
api.has_param :end_offset, 'int'
|
@@ -532,6 +540,7 @@ module FacebookAds
|
|
532
540
|
api.has_param :upload_session_id, 'string'
|
533
541
|
api.has_param :upload_setting_properties, 'string'
|
534
542
|
api.has_param :video_file_chunk, 'string'
|
543
|
+
api.has_param :video_id_original, 'string'
|
535
544
|
api.has_param :video_start_time_ms, 'int'
|
536
545
|
api.has_param :waterfall_id, 'string'
|
537
546
|
end
|
@@ -39,6 +39,7 @@ module FacebookAds
|
|
39
39
|
field :area_size, 'int'
|
40
40
|
field :area_unit, 'string'
|
41
41
|
field :availability, 'string'
|
42
|
+
field :category_specific_fields, 'CatalogSubVerticalList'
|
42
43
|
field :co_2_emission_rating_eu, 'object'
|
43
44
|
field :currency, 'string'
|
44
45
|
field :days_on_market, 'int'
|
@@ -31,6 +31,7 @@ module FacebookAds
|
|
31
31
|
field :applinks, 'CatalogItemAppLinks'
|
32
32
|
field :brand, 'string'
|
33
33
|
field :category, 'string'
|
34
|
+
field :category_specific_fields, 'CatalogSubVerticalList'
|
34
35
|
field :currency, 'string'
|
35
36
|
field :description, 'string'
|
36
37
|
field :guest_ratings, 'string'
|
@@ -26,6 +26,18 @@ module FacebookAds
|
|
26
26
|
# pull request for this class.
|
27
27
|
|
28
28
|
class LiveVideo < AdObject
|
29
|
+
BROADCAST_STATUS = [
|
30
|
+
"live",
|
31
|
+
"live_stopped",
|
32
|
+
"processing",
|
33
|
+
"scheduled_canceled",
|
34
|
+
"scheduled_expired",
|
35
|
+
"scheduled_live",
|
36
|
+
"scheduled_unpublished",
|
37
|
+
"unpublished",
|
38
|
+
"vod",
|
39
|
+
]
|
40
|
+
|
29
41
|
PROJECTION = [
|
30
42
|
"CUBEMAP",
|
31
43
|
"EQUIRECTANGULAR",
|
@@ -55,18 +67,6 @@ module FacebookAds
|
|
55
67
|
"REGULAR",
|
56
68
|
]
|
57
69
|
|
58
|
-
BROADCAST_STATUS = [
|
59
|
-
"LIVE",
|
60
|
-
"LIVE_STOPPED",
|
61
|
-
"PROCESSING",
|
62
|
-
"SCHEDULED_CANCELED",
|
63
|
-
"SCHEDULED_EXPIRED",
|
64
|
-
"SCHEDULED_LIVE",
|
65
|
-
"SCHEDULED_UNPUBLISHED",
|
66
|
-
"UNPUBLISHED",
|
67
|
-
"VOD",
|
68
|
-
]
|
69
|
-
|
70
70
|
SOURCE = [
|
71
71
|
"owner",
|
72
72
|
"target",
|
@@ -141,10 +141,6 @@ module FacebookAds
|
|
141
141
|
edge.post 'LiveVideoInputStream'
|
142
142
|
end
|
143
143
|
|
144
|
-
has_edge :likes do |edge|
|
145
|
-
edge.get 'Profile'
|
146
|
-
end
|
147
|
-
|
148
144
|
has_edge :polls do |edge|
|
149
145
|
edge.get 'VideoPoll'
|
150
146
|
edge.post 'VideoPoll' do |api|
|
@@ -37,7 +37,6 @@ module FacebookAds
|
|
37
37
|
field :amount_due, 'CurrencyAmount'
|
38
38
|
field :billed_amount_details, 'BilledAmountDetails'
|
39
39
|
field :billing_period, 'string'
|
40
|
-
field :campaign, 'AtlasCampaign'
|
41
40
|
field :cdn_download_uri, 'string'
|
42
41
|
field :currency, 'string'
|
43
42
|
field :download_uri, 'string'
|
@@ -58,11 +57,5 @@ module FacebookAds
|
|
58
57
|
edge.get 'InvoiceCampaign'
|
59
58
|
end
|
60
59
|
|
61
|
-
has_edge :data do |edge|
|
62
|
-
edge.get 'AtlasUrl' do |api|
|
63
|
-
api.has_param :redirect, 'bool'
|
64
|
-
end
|
65
|
-
end
|
66
|
-
|
67
60
|
end
|
68
61
|
end
|
@@ -92,6 +92,12 @@ module FacebookAds
|
|
92
92
|
"Vietnamese",
|
93
93
|
]
|
94
94
|
|
95
|
+
PICKUP_OPTIONS = [
|
96
|
+
"CURBSIDE",
|
97
|
+
"IN_STORE",
|
98
|
+
"OTHER",
|
99
|
+
]
|
100
|
+
|
95
101
|
TEMPORARY_STATUS = [
|
96
102
|
"DIFFERENTLY_OPEN",
|
97
103
|
"NO_DATA",
|
@@ -107,6 +113,7 @@ module FacebookAds
|
|
107
113
|
"MANAGE",
|
108
114
|
"MANAGE_JOBS",
|
109
115
|
"MANAGE_LEADS",
|
116
|
+
"MESSAGING",
|
110
117
|
"MODERATE",
|
111
118
|
"MODERATE_COMMUNITY",
|
112
119
|
"PAGES_MESSAGING",
|
@@ -114,6 +121,7 @@ module FacebookAds
|
|
114
121
|
"PROFILE_PLUS_ADVERTISE",
|
115
122
|
"PROFILE_PLUS_ANALYZE",
|
116
123
|
"PROFILE_PLUS_CREATE_CONTENT",
|
124
|
+
"PROFILE_PLUS_LIVE_STREAM_MODERATION",
|
117
125
|
"PROFILE_PLUS_MANAGE",
|
118
126
|
"PROFILE_PLUS_MESSAGING",
|
119
127
|
"PROFILE_PLUS_MODERATE",
|
@@ -129,6 +137,7 @@ module FacebookAds
|
|
129
137
|
"MANAGE",
|
130
138
|
"MANAGE_JOBS",
|
131
139
|
"MANAGE_LEADS",
|
140
|
+
"MESSAGING",
|
132
141
|
"MODERATE",
|
133
142
|
"MODERATE_COMMUNITY",
|
134
143
|
"PAGES_MESSAGING",
|
@@ -136,6 +145,7 @@ module FacebookAds
|
|
136
145
|
"PROFILE_PLUS_ADVERTISE",
|
137
146
|
"PROFILE_PLUS_ANALYZE",
|
138
147
|
"PROFILE_PLUS_CREATE_CONTENT",
|
148
|
+
"PROFILE_PLUS_LIVE_STREAM_MODERATION",
|
139
149
|
"PROFILE_PLUS_MANAGE",
|
140
150
|
"PROFILE_PLUS_MESSAGING",
|
141
151
|
"PROFILE_PLUS_MODERATE",
|
@@ -257,7 +267,6 @@ module FacebookAds
|
|
257
267
|
"branded_camera",
|
258
268
|
"category",
|
259
269
|
"checkins",
|
260
|
-
"commerce_order",
|
261
270
|
"company_overview",
|
262
271
|
"conversations",
|
263
272
|
"culinary_team",
|
@@ -293,6 +302,7 @@ module FacebookAds
|
|
293
302
|
"messaging_checkout_updates",
|
294
303
|
"messaging_direct_sends",
|
295
304
|
"messaging_fblogin_account_linking",
|
305
|
+
"messaging_feedback",
|
296
306
|
"messaging_game_plays",
|
297
307
|
"messaging_handovers",
|
298
308
|
"messaging_optins",
|
@@ -328,29 +338,6 @@ module FacebookAds
|
|
328
338
|
"website",
|
329
339
|
]
|
330
340
|
|
331
|
-
DOMAIN_ACTION_TYPE = [
|
332
|
-
"ADD",
|
333
|
-
"REMOVE",
|
334
|
-
]
|
335
|
-
|
336
|
-
PAYMENT_DEV_MODE_ACTION = [
|
337
|
-
"ADD",
|
338
|
-
"REMOVE",
|
339
|
-
]
|
340
|
-
|
341
|
-
SETTING_TYPE = [
|
342
|
-
"ACCOUNT_LINKING",
|
343
|
-
"CALL_TO_ACTIONS",
|
344
|
-
"DOMAIN_WHITELISTING",
|
345
|
-
"GREETING",
|
346
|
-
"PAYMENT",
|
347
|
-
]
|
348
|
-
|
349
|
-
THREAD_STATE = [
|
350
|
-
"EXISTING_THREAD",
|
351
|
-
"NEW_THREAD",
|
352
|
-
]
|
353
|
-
|
354
341
|
|
355
342
|
field :about, 'string'
|
356
343
|
field :access_token, 'string'
|
@@ -443,7 +430,6 @@ module FacebookAds
|
|
443
430
|
field :new_like_count, 'int'
|
444
431
|
field :offer_eligible, 'bool'
|
445
432
|
field :overall_star_rating, 'double'
|
446
|
-
field :page_about_story, 'PageAboutStory'
|
447
433
|
field :page_token, 'string'
|
448
434
|
field :parent_page, 'Page'
|
449
435
|
field :parking, 'PageParking'
|
@@ -452,6 +438,7 @@ module FacebookAds
|
|
452
438
|
field :personal_interests, 'string'
|
453
439
|
field :pharma_safety_info, 'string'
|
454
440
|
field :phone, 'string'
|
441
|
+
field :pickup_options, { list: 'string' }
|
455
442
|
field :place_type, 'string'
|
456
443
|
field :plot_outline, 'string'
|
457
444
|
field :preferred_audience, 'Targeting'
|
@@ -558,6 +545,13 @@ module FacebookAds
|
|
558
545
|
end
|
559
546
|
end
|
560
547
|
|
548
|
+
has_edge :business_data do |edge|
|
549
|
+
edge.post 'Page' do |api|
|
550
|
+
api.has_param :data, { list: 'string' }
|
551
|
+
api.has_param :partner_agent, 'string'
|
552
|
+
end
|
553
|
+
end
|
554
|
+
|
561
555
|
has_edge :call_to_actions do |edge|
|
562
556
|
edge.get 'PageCallToAction'
|
563
557
|
end
|
@@ -689,6 +683,13 @@ module FacebookAds
|
|
689
683
|
end
|
690
684
|
end
|
691
685
|
|
686
|
+
has_edge :extend_thread_control do |edge|
|
687
|
+
edge.post 'Page' do |api|
|
688
|
+
api.has_param :duration, 'int'
|
689
|
+
api.has_param :recipient, 'object'
|
690
|
+
end
|
691
|
+
end
|
692
|
+
|
692
693
|
has_edge :feed do |edge|
|
693
694
|
edge.get 'PagePost' do |api|
|
694
695
|
api.has_param :include_hidden, 'bool'
|
@@ -913,6 +914,7 @@ module FacebookAds
|
|
913
914
|
api.has_param :crossposting_actions, { list: 'hash' }
|
914
915
|
api.has_param :custom_labels, { list: 'string' }
|
915
916
|
api.has_param :description, 'string'
|
917
|
+
api.has_param :enable_backup_ingest, 'bool'
|
916
918
|
api.has_param :encoding_settings, 'string'
|
917
919
|
api.has_param :fisheye_video_cropped, 'bool'
|
918
920
|
api.has_param :front_z_rotation, 'double'
|
@@ -925,7 +927,6 @@ module FacebookAds
|
|
925
927
|
api.has_param :privacy, 'string'
|
926
928
|
api.has_param :projection, { enum: -> { LiveVideo::PROJECTION }}
|
927
929
|
api.has_param :published, 'bool'
|
928
|
-
api.has_param :save_vod, 'bool'
|
929
930
|
api.has_param :schedule_custom_profile_image, 'file'
|
930
931
|
api.has_param :spatial_audio_format, { enum: -> { LiveVideo::SPATIAL_AUDIO_FORMAT }}
|
931
932
|
api.has_param :status, { enum: -> { LiveVideo::STATUS }}
|
@@ -955,6 +956,7 @@ module FacebookAds
|
|
955
956
|
api.has_param :page_username, 'string'
|
956
957
|
api.has_param :permanently_closed, 'bool'
|
957
958
|
api.has_param :phone, 'string'
|
959
|
+
api.has_param :pickup_options, { list: { enum: -> { Page::PICKUP_OPTIONS }} }
|
958
960
|
api.has_param :place_topics, { list: 'string' }
|
959
961
|
api.has_param :price_range, 'string'
|
960
962
|
api.has_param :store_code, 'string'
|
@@ -1007,7 +1009,7 @@ module FacebookAds
|
|
1007
1009
|
|
1008
1010
|
has_edge :messenger_profile do |edge|
|
1009
1011
|
edge.delete do |api|
|
1010
|
-
api.has_param :fields, { list: { enum: %w{ACCOUNT_LINKING_URL GET_STARTED GREETING HOME_URL ICE_BREAKERS PAYMENT_SETTINGS PERSISTENT_MENU TARGET_AUDIENCE WHITELISTED_DOMAINS }} }
|
1012
|
+
api.has_param :fields, { list: { enum: %w{ACCOUNT_LINKING_URL GET_STARTED GREETING HOME_URL ICE_BREAKERS PAYMENT_SETTINGS PERSISTENT_MENU PLATFORM TARGET_AUDIENCE WHITELISTED_DOMAINS }} }
|
1011
1013
|
end
|
1012
1014
|
edge.get 'MessengerProfile'
|
1013
1015
|
edge.post 'Page' do |api|
|
@@ -1051,6 +1053,7 @@ module FacebookAds
|
|
1051
1053
|
|
1052
1054
|
has_edge :nlp_configs do |edge|
|
1053
1055
|
edge.post 'Page' do |api|
|
1056
|
+
api.has_param :api_version, 'object'
|
1054
1057
|
api.has_param :custom_token, 'string'
|
1055
1058
|
api.has_param :model, { enum: -> { Page::MODEL }}
|
1056
1059
|
api.has_param :n_best, 'int'
|
@@ -1060,16 +1063,6 @@ module FacebookAds
|
|
1060
1063
|
end
|
1061
1064
|
end
|
1062
1065
|
|
1063
|
-
has_edge :page_about_story do |edge|
|
1064
|
-
edge.post 'Page' do |api|
|
1065
|
-
api.has_param :composed_text, { list: 'hash' }
|
1066
|
-
api.has_param :cover_photo, 'hash'
|
1067
|
-
api.has_param :entity_map, { list: 'hash' }
|
1068
|
-
api.has_param :is_published, 'bool'
|
1069
|
-
api.has_param :title, 'string'
|
1070
|
-
end
|
1071
|
-
end
|
1072
|
-
|
1073
1066
|
has_edge :page_backed_instagram_accounts do |edge|
|
1074
1067
|
edge.get 'InstagramUser'
|
1075
1068
|
edge.post 'InstagramUser'
|
@@ -1123,7 +1116,6 @@ module FacebookAds
|
|
1123
1116
|
api.has_param :initial_view_heading_override_degrees, 'int'
|
1124
1117
|
api.has_param :initial_view_pitch_override_degrees, 'int'
|
1125
1118
|
api.has_param :initial_view_vertical_fov_override_degrees, 'int'
|
1126
|
-
api.has_param :instagram_product_tags, { list: 'hash' }
|
1127
1119
|
api.has_param :ios_bundle_id, 'string'
|
1128
1120
|
api.has_param :is_explicit_location, 'bool'
|
1129
1121
|
api.has_param :is_explicit_place, 'bool'
|
@@ -1167,6 +1159,7 @@ module FacebookAds
|
|
1167
1159
|
|
1168
1160
|
has_edge :picture do |edge|
|
1169
1161
|
edge.get 'ProfilePictureSource' do |api|
|
1162
|
+
api.has_param :breaking_change, { enum: -> { ProfilePictureSource::BREAKING_CHANGE }}
|
1170
1163
|
api.has_param :height, 'int'
|
1171
1164
|
api.has_param :redirect, 'bool'
|
1172
1165
|
api.has_param :type, { enum: -> { ProfilePictureSource::TYPE }}
|
@@ -1174,6 +1167,7 @@ module FacebookAds
|
|
1174
1167
|
end
|
1175
1168
|
edge.post 'ProfilePictureSource' do |api|
|
1176
1169
|
api.has_param :android_key_hash, 'string'
|
1170
|
+
api.has_param :burn_media_effect, 'bool'
|
1177
1171
|
api.has_param :caption, 'string'
|
1178
1172
|
api.has_param :composer_session_id, 'string'
|
1179
1173
|
api.has_param :has_umg, 'bool'
|
@@ -1200,10 +1194,6 @@ module FacebookAds
|
|
1200
1194
|
end
|
1201
1195
|
end
|
1202
1196
|
|
1203
|
-
has_edge :place_topics do |edge|
|
1204
|
-
edge.get 'PlaceTopic'
|
1205
|
-
end
|
1206
|
-
|
1207
1197
|
has_edge :posts do |edge|
|
1208
1198
|
edge.get 'PagePost' do |api|
|
1209
1199
|
api.has_param :include_hidden, 'bool'
|
@@ -1275,9 +1265,6 @@ module FacebookAds
|
|
1275
1265
|
end
|
1276
1266
|
|
1277
1267
|
has_edge :tabs do |edge|
|
1278
|
-
edge.delete do |api|
|
1279
|
-
api.has_param :tab, 'string'
|
1280
|
-
end
|
1281
1268
|
edge.get 'Tab' do |api|
|
1282
1269
|
api.has_param :tab, { list: 'string' }
|
1283
1270
|
end
|
@@ -1308,26 +1295,6 @@ module FacebookAds
|
|
1308
1295
|
end
|
1309
1296
|
end
|
1310
1297
|
|
1311
|
-
has_edge :thread_settings do |edge|
|
1312
|
-
edge.delete do |api|
|
1313
|
-
api.has_param :setting_type, { enum: -> { Page::SETTING_TYPE }}
|
1314
|
-
api.has_param :thread_state, { enum: -> { Page::THREAD_STATE }}
|
1315
|
-
end
|
1316
|
-
edge.post 'Page' do |api|
|
1317
|
-
api.has_param :account_linking_url, 'string'
|
1318
|
-
api.has_param :call_to_actions, { list: 'object' }
|
1319
|
-
api.has_param :domain_action_type, { enum: -> { Page::DOMAIN_ACTION_TYPE }}
|
1320
|
-
api.has_param :greeting, 'object'
|
1321
|
-
api.has_param :payment_dev_mode_action, { enum: -> { Page::PAYMENT_DEV_MODE_ACTION }}
|
1322
|
-
api.has_param :payment_privacy_url, 'string'
|
1323
|
-
api.has_param :payment_public_key, 'string'
|
1324
|
-
api.has_param :payment_testers, { list: 'string' }
|
1325
|
-
api.has_param :setting_type, { enum: -> { Page::SETTING_TYPE }}
|
1326
|
-
api.has_param :thread_state, { enum: -> { Page::THREAD_STATE }}
|
1327
|
-
api.has_param :whitelisted_domains, { list: 'string' }
|
1328
|
-
end
|
1329
|
-
end
|
1330
|
-
|
1331
1298
|
has_edge :threads do |edge|
|
1332
1299
|
edge.get 'UnifiedThread' do |api|
|
1333
1300
|
api.has_param :folder, 'string'
|
@@ -1399,6 +1366,7 @@ module FacebookAds
|
|
1399
1366
|
api.has_param :container_type, { enum: -> { AdVideo::CONTAINER_TYPE }}
|
1400
1367
|
api.has_param :content_category, { enum: -> { AdVideo::CONTENT_CATEGORY }}
|
1401
1368
|
api.has_param :content_tags, { list: 'string' }
|
1369
|
+
api.has_param :creative_tools, 'string'
|
1402
1370
|
api.has_param :crossposted_video_id, 'string'
|
1403
1371
|
api.has_param :custom_labels, { list: 'string' }
|
1404
1372
|
api.has_param :description, 'string'
|
@@ -1471,6 +1439,7 @@ module FacebookAds
|
|
1471
1439
|
api.has_param :upload_setting_properties, 'string'
|
1472
1440
|
api.has_param :video_asset_id, 'string'
|
1473
1441
|
api.has_param :video_file_chunk, 'string'
|
1442
|
+
api.has_param :video_id_original, 'string'
|
1474
1443
|
api.has_param :video_start_time_ms, 'int'
|
1475
1444
|
api.has_param :waterfall_id, 'string'
|
1476
1445
|
end
|