facebookbusiness 0.11.0.0 → 0.12.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_account.rb +28 -4
- data/lib/facebook_ads/ad_objects/ad_account_ad_volume.rb +2 -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 +9 -0
- data/lib/facebook_ads/ad_objects/ad_account_targeting_unified.rb +9 -0
- data/lib/facebook_ads/ad_objects/ad_asset_feed_spec.rb +4 -0
- data/lib/facebook_ads/ad_objects/ad_async_request_set.rb +1 -7
- data/lib/facebook_ads/ad_objects/ad_campaign_delivery_estimate.rb +1 -0
- data/lib/facebook_ads/ad_objects/ad_creative.rb +2 -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_link_data_image_overlay_spec.rb +1 -0
- data/lib/facebook_ads/ad_objects/ad_place_page_set.rb +0 -6
- data/lib/facebook_ads/ad_objects/ad_preview.rb +3 -1
- data/lib/facebook_ads/ad_objects/ad_rule_execution_spec.rb +3 -0
- data/lib/facebook_ads/ad_objects/ad_set.rb +2 -0
- data/lib/facebook_ads/ad_objects/ad_study.rb +0 -1
- data/lib/facebook_ads/ad_objects/ad_study_objective.rb +1 -1
- data/lib/facebook_ads/ad_objects/{referral.rb → ad_study_objective_offsite_datasets.rb} +5 -13
- data/lib/facebook_ads/ad_objects/ad_video.rb +18 -1
- data/lib/facebook_ads/ad_objects/adgroup_placement_specific_review_feedback.rb +1 -0
- data/lib/facebook_ads/ad_objects/adoptable_pet.rb +1 -0
- data/lib/facebook_ads/ad_objects/ads_insights.rb +3 -6
- data/lib/facebook_ads/ad_objects/ads_pixel.rb +3 -0
- data/lib/facebook_ads/ad_objects/application.rb +7 -32
- data/lib/facebook_ads/ad_objects/{ad_account_content_filter_levels_inheritance.rb → ar_effects_batch_status.rb} +4 -5
- data/lib/facebook_ads/ad_objects/automotive_model.rb +1 -0
- data/lib/facebook_ads/ad_objects/business.rb +52 -23
- data/lib/facebook_ads/ad_objects/business_asset_group.rb +6 -0
- data/lib/facebook_ads/ad_objects/business_managed_partner_eligibility.rb +39 -0
- data/lib/facebook_ads/ad_objects/canvas.rb +20 -0
- data/lib/facebook_ads/ad_objects/chat_plugin.rb +48 -0
- data/lib/facebook_ads/ad_objects/cloud_game.rb +43 -0
- data/lib/facebook_ads/ad_objects/commerce_merchant_settings.rb +0 -1
- data/lib/facebook_ads/ad_objects/commerce_order.rb +1 -0
- data/lib/facebook_ads/ad_objects/content_delivery_report.rb +8 -0
- data/lib/facebook_ads/ad_objects/custom_audience.rb +2 -0
- data/lib/facebook_ads/ad_objects/destination.rb +1 -0
- data/lib/facebook_ads/ad_objects/event.rb +1 -1
- 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/invoice_campaign.rb +1 -0
- data/lib/facebook_ads/ad_objects/jobs_job.rb +72 -0
- data/lib/facebook_ads/ad_objects/live_video.rb +4 -1
- data/lib/facebook_ads/ad_objects/local_service_business.rb +65 -0
- data/lib/facebook_ads/ad_objects/managed_partner_business.rb +43 -0
- data/lib/facebook_ads/ad_objects/messenger_destination_page_welcome_message.rb +1 -0
- data/lib/facebook_ads/ad_objects/omega_customer_trx.rb +1 -0
- data/lib/facebook_ads/ad_objects/page.rb +70 -12
- data/lib/facebook_ads/ad_objects/page_user_message_thread_label.rb +1 -1
- data/lib/facebook_ads/ad_objects/partner_study.rb +4 -0
- data/lib/facebook_ads/ad_objects/product_catalog.rb +7 -4
- data/lib/facebook_ads/ad_objects/product_feed.rb +0 -4
- data/lib/facebook_ads/ad_objects/product_item.rb +1 -0
- data/lib/facebook_ads/ad_objects/product_set.rb +1 -0
- data/lib/facebook_ads/ad_objects/saved_audience.rb +1 -0
- data/lib/facebook_ads/ad_objects/{product_feed_upload_diagnostics_report.rb → text_with_entities.rb} +2 -3
- data/lib/facebook_ads/ad_objects/user.rb +0 -37
- 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 +15 -0
- data/lib/facebook_ads/ad_objects/woodhenge_purchased_payg_receipt.rb +38 -0
- data/lib/facebook_ads/version.rb +2 -2
- metadata +12 -6
- data/lib/facebook_ads/ad_objects/measurement_upload_event.rb +0 -220
@@ -0,0 +1,43 @@
|
|
1
|
+
# Copyright (c) 2017-present, Facebook, Inc. All rights reserved.
|
2
|
+
#
|
3
|
+
# You are hereby granted a non-exclusive, worldwide, royalty-free license to use,
|
4
|
+
# copy, modify, and distribute this software in source code or binary form for use
|
5
|
+
# in connection with the web services and APIs provided by Facebook.
|
6
|
+
#
|
7
|
+
# As with any software that integrates with the Facebook platform, your use of
|
8
|
+
# this software is subject to the Facebook Platform Policy
|
9
|
+
# [http://developers.facebook.com/policy/]. This copyright notice shall be
|
10
|
+
# included in all copies or substantial portions of the software.
|
11
|
+
#
|
12
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
13
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
14
|
+
# FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
15
|
+
# COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
16
|
+
# IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
17
|
+
# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
18
|
+
|
19
|
+
# FB:AUTOGEN
|
20
|
+
|
21
|
+
module FacebookAds
|
22
|
+
# This class is auto-generated.
|
23
|
+
|
24
|
+
# For any issues or feature requests related to this class, please let us know
|
25
|
+
# on github and we'll fix in our codegen framework. We'll not be able to accept
|
26
|
+
# pull request for this class.
|
27
|
+
|
28
|
+
class CloudGame < AdObject
|
29
|
+
|
30
|
+
field :id, 'string'
|
31
|
+
field :name, 'string'
|
32
|
+
field :owner, 'Profile'
|
33
|
+
field :playable_ad_file_size, 'int'
|
34
|
+
field :playable_ad_orientation, 'string'
|
35
|
+
field :playable_ad_package_name, 'string'
|
36
|
+
field :playable_ad_reject_reason, 'string'
|
37
|
+
field :playable_ad_status, 'string'
|
38
|
+
field :playable_ad_upload_time, 'datetime'
|
39
|
+
has_no_post
|
40
|
+
has_no_delete
|
41
|
+
|
42
|
+
end
|
43
|
+
end
|
@@ -48,7 +48,6 @@ module FacebookAds
|
|
48
48
|
field :privacy_url_by_locale, 'hash'
|
49
49
|
field :review_rejection_messages, { list: 'string' }
|
50
50
|
field :review_rejection_reasons, { list: 'string' }
|
51
|
-
field :review_status, 'string'
|
52
51
|
field :supported_card_types, { list: 'string' }
|
53
52
|
field :terms, 'string'
|
54
53
|
field :terms_url_by_locale, 'hash'
|
@@ -138,6 +138,7 @@ module FacebookAds
|
|
138
138
|
api.has_param :merchant_order_reference, 'string'
|
139
139
|
api.has_param :shipment_origin_postal_code, 'string'
|
140
140
|
api.has_param :shipping_tax_details, 'hash'
|
141
|
+
api.has_param :should_use_default_fulfillment_location, 'bool'
|
141
142
|
api.has_param :tracking_info, 'hash'
|
142
143
|
end
|
143
144
|
end
|
@@ -40,7 +40,9 @@ module FacebookAds
|
|
40
40
|
POSITION = [
|
41
41
|
"ALL_PLACEMENTS",
|
42
42
|
"AN_CLASSIC",
|
43
|
+
"BIZ_DISCO_FEED",
|
43
44
|
"FACEBOOK_GROUPS_FEED",
|
45
|
+
"FACEBOOK_REELS",
|
44
46
|
"FACEBOOK_STORIES",
|
45
47
|
"FEED",
|
46
48
|
"GROUPS",
|
@@ -48,6 +50,7 @@ module FacebookAds
|
|
48
50
|
"INSTAGRAM_EXPLORE",
|
49
51
|
"INSTAGRAM_IGTV",
|
50
52
|
"INSTAGRAM_REELS",
|
53
|
+
"INSTAGRAM_SHOP",
|
51
54
|
"INSTAGRAM_STORIES",
|
52
55
|
"INSTANT_ARTICLE",
|
53
56
|
"INSTREAM_VIDEO",
|
@@ -55,7 +58,12 @@ module FacebookAds
|
|
55
58
|
"MARKETPLACE",
|
56
59
|
"MESSENGER_INBOX",
|
57
60
|
"MESSENGER_STORIES",
|
61
|
+
"OCULUS_REWARDED_VIDEO",
|
62
|
+
"OCULUS_TWILIGHT_DEVELOPER_UPDATE",
|
58
63
|
"OCULUS_TWILIGHT_FEED",
|
64
|
+
"OCULUS_TWILIGHT_FEED_SPOTLIGHT",
|
65
|
+
"OCULUS_TWILIGHT_SEARCH",
|
66
|
+
"OCULUS_VR_APPS",
|
59
67
|
"OTHERS",
|
60
68
|
"REWARDED_VIDEO",
|
61
69
|
"RIGHT_HAND_COLUMN",
|
@@ -44,6 +44,7 @@ module FacebookAds
|
|
44
44
|
"FLIGHT",
|
45
45
|
"HOME_LISTING",
|
46
46
|
"HOTEL",
|
47
|
+
"JOB",
|
47
48
|
"LOCAL_SERVICE_BUSINESS",
|
48
49
|
"LOCATION_BASED_ITEM",
|
49
50
|
"MEDIA_TITLE",
|
@@ -100,6 +101,7 @@ module FacebookAds
|
|
100
101
|
field :name, 'string'
|
101
102
|
field :operation_status, 'CustomAudienceStatus'
|
102
103
|
field :opt_out_link, 'string'
|
104
|
+
field :page_deletion_marked_delete_time, 'int'
|
103
105
|
field :permission_for_actions, 'AudiencePermissionForActions'
|
104
106
|
field :pixel_id, 'string'
|
105
107
|
field :regulated_audience_spec, 'LookalikeSpec'
|
@@ -87,6 +87,7 @@ module FacebookAds
|
|
87
87
|
field :can_guests_invite, 'bool'
|
88
88
|
field :category, { enum: -> { CATEGORY }}
|
89
89
|
field :cover, 'CoverPhoto'
|
90
|
+
field :created_time, 'datetime'
|
90
91
|
field :declined_count, 'int'
|
91
92
|
field :description, 'string'
|
92
93
|
field :discount_code_enabled, 'bool'
|
@@ -140,7 +141,6 @@ module FacebookAds
|
|
140
141
|
api.has_param :is_spherical, 'bool'
|
141
142
|
api.has_param :live_encoders, { list: 'string' }
|
142
143
|
api.has_param :original_fov, 'int'
|
143
|
-
api.has_param :planned_start_time, 'int'
|
144
144
|
api.has_param :privacy, 'string'
|
145
145
|
api.has_param :projection, { enum: -> { LiveVideo::PROJECTION }}
|
146
146
|
api.has_param :published, 'bool'
|
@@ -49,6 +49,7 @@ module FacebookAds
|
|
49
49
|
"EPHEMERAL",
|
50
50
|
"EVENT_PLANNING",
|
51
51
|
"FAMILY",
|
52
|
+
"FANTASY_LEAGUE",
|
52
53
|
"FITNESS",
|
53
54
|
"FOR_SALE",
|
54
55
|
"FOR_WORK",
|
@@ -105,6 +106,7 @@ module FacebookAds
|
|
105
106
|
"EPHEMERAL",
|
106
107
|
"EVENT_PLANNING",
|
107
108
|
"FAMILY",
|
109
|
+
"FANTASY_LEAGUE",
|
108
110
|
"FITNESS",
|
109
111
|
"FOR_SALE",
|
110
112
|
"FOR_WORK",
|
@@ -367,7 +369,6 @@ module FacebookAds
|
|
367
369
|
api.has_param :is_spherical, 'bool'
|
368
370
|
api.has_param :live_encoders, { list: 'string' }
|
369
371
|
api.has_param :original_fov, 'int'
|
370
|
-
api.has_param :planned_start_time, 'int'
|
371
372
|
api.has_param :privacy, 'string'
|
372
373
|
api.has_param :projection, { enum: -> { LiveVideo::PROJECTION }}
|
373
374
|
api.has_param :published, 'bool'
|
@@ -466,6 +467,13 @@ module FacebookAds
|
|
466
467
|
end
|
467
468
|
end
|
468
469
|
|
470
|
+
has_edge :shift_settings do |edge|
|
471
|
+
edge.post do |api|
|
472
|
+
api.has_param :external_id, 'string'
|
473
|
+
api.has_param :shift_feature_setting, { enum: %w{ALL_FEATURES_OFF ALL_FEATURES_ON SHIFT_COVER_ONLY_ON SHIFT_VIEWER_ONLY_ON }}
|
474
|
+
end
|
475
|
+
end
|
476
|
+
|
469
477
|
has_edge :videos do |edge|
|
470
478
|
edge.get 'AdVideo' do |api|
|
471
479
|
api.has_param :type, { enum: -> { AdVideo::TYPE }}
|
@@ -520,6 +528,7 @@ module FacebookAds
|
|
520
528
|
api.has_param :original_fov, 'int'
|
521
529
|
api.has_param :original_projection_type, { enum: -> { AdVideo::ORIGINAL_PROJECTION_TYPE }}
|
522
530
|
api.has_param :publish_event_id, 'int'
|
531
|
+
api.has_param :published, 'bool'
|
523
532
|
api.has_param :react_mode_metadata, 'string'
|
524
533
|
api.has_param :referenced_sticker_id, 'string'
|
525
534
|
api.has_param :replace_video_id, 'string'
|
@@ -0,0 +1,72 @@
|
|
1
|
+
# Copyright (c) 2017-present, Facebook, Inc. All rights reserved.
|
2
|
+
#
|
3
|
+
# You are hereby granted a non-exclusive, worldwide, royalty-free license to use,
|
4
|
+
# copy, modify, and distribute this software in source code or binary form for use
|
5
|
+
# in connection with the web services and APIs provided by Facebook.
|
6
|
+
#
|
7
|
+
# As with any software that integrates with the Facebook platform, your use of
|
8
|
+
# this software is subject to the Facebook Platform Policy
|
9
|
+
# [http://developers.facebook.com/policy/]. This copyright notice shall be
|
10
|
+
# included in all copies or substantial portions of the software.
|
11
|
+
#
|
12
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
13
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
14
|
+
# FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
15
|
+
# COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
16
|
+
# IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
17
|
+
# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
18
|
+
|
19
|
+
# FB:AUTOGEN
|
20
|
+
|
21
|
+
module FacebookAds
|
22
|
+
# This class is auto-generated.
|
23
|
+
|
24
|
+
# For any issues or feature requests related to this class, please let us know
|
25
|
+
# on github and we'll fix in our codegen framework. We'll not be able to accept
|
26
|
+
# pull request for this class.
|
27
|
+
|
28
|
+
class JobsJob < AdObject
|
29
|
+
IMAGE_FETCH_STATUS = [
|
30
|
+
"DIRECT_UPLOAD",
|
31
|
+
"FETCHED",
|
32
|
+
"FETCH_FAILED",
|
33
|
+
"NO_STATUS",
|
34
|
+
"OUTDATED",
|
35
|
+
"PARTIAL_FETCH",
|
36
|
+
]
|
37
|
+
|
38
|
+
|
39
|
+
field :address, 'object'
|
40
|
+
field :applinks, 'CatalogItemAppLinks'
|
41
|
+
field :category_specific_fields, 'CatalogSubVerticalList'
|
42
|
+
field :custom_label_0, 'string'
|
43
|
+
field :custom_label_1, 'string'
|
44
|
+
field :custom_label_2, 'string'
|
45
|
+
field :custom_label_3, 'string'
|
46
|
+
field :custom_label_4, 'string'
|
47
|
+
field :custom_label_5, 'string'
|
48
|
+
field :custom_label_6, 'string'
|
49
|
+
field :id, 'string'
|
50
|
+
field :image_fetch_status, { enum: -> { IMAGE_FETCH_STATUS }}
|
51
|
+
field :images, { list: 'string' }
|
52
|
+
field :jobs_job_id, 'string'
|
53
|
+
field :sanitized_images, { list: 'string' }
|
54
|
+
field :unit_price, 'object'
|
55
|
+
field :url, 'string'
|
56
|
+
has_no_post
|
57
|
+
has_no_delete
|
58
|
+
|
59
|
+
has_edge :augmented_realities_metadata do |edge|
|
60
|
+
edge.get
|
61
|
+
end
|
62
|
+
|
63
|
+
has_edge :channels_to_integrity_status do |edge|
|
64
|
+
edge.get 'CatalogItemChannelsToIntegrityStatus'
|
65
|
+
end
|
66
|
+
|
67
|
+
has_edge :videos_metadata do |edge|
|
68
|
+
edge.get
|
69
|
+
end
|
70
|
+
|
71
|
+
end
|
72
|
+
end
|
@@ -75,11 +75,14 @@ module FacebookAds
|
|
75
75
|
LIVE_COMMENT_MODERATION_SETTING = [
|
76
76
|
"DEFAULT",
|
77
77
|
"DISCUSSION",
|
78
|
+
"FOLLOWED",
|
78
79
|
"FOLLOWER",
|
80
|
+
"NO_HYPERLINK",
|
79
81
|
"PROTECTED_MODE",
|
80
82
|
"RESTRICTED",
|
81
83
|
"SLOW",
|
82
84
|
"SUPPORTER",
|
85
|
+
"TAGGED",
|
83
86
|
]
|
84
87
|
|
85
88
|
PERSISTENT_STREAM_KEY_STATUS = [
|
@@ -97,7 +100,7 @@ module FacebookAds
|
|
97
100
|
field :dash_ingest_url, 'string'
|
98
101
|
field :dash_preview_url, 'string'
|
99
102
|
field :description, 'string'
|
100
|
-
field :embed_html, '
|
103
|
+
field :embed_html, 'object'
|
101
104
|
field :from, 'object'
|
102
105
|
field :id, 'string'
|
103
106
|
field :ingest_streams, { list: 'LiveVideoInputStream' }
|
@@ -0,0 +1,65 @@
|
|
1
|
+
# Copyright (c) 2017-present, Facebook, Inc. All rights reserved.
|
2
|
+
#
|
3
|
+
# You are hereby granted a non-exclusive, worldwide, royalty-free license to use,
|
4
|
+
# copy, modify, and distribute this software in source code or binary form for use
|
5
|
+
# in connection with the web services and APIs provided by Facebook.
|
6
|
+
#
|
7
|
+
# As with any software that integrates with the Facebook platform, your use of
|
8
|
+
# this software is subject to the Facebook Platform Policy
|
9
|
+
# [http://developers.facebook.com/policy/]. This copyright notice shall be
|
10
|
+
# included in all copies or substantial portions of the software.
|
11
|
+
#
|
12
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
13
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
14
|
+
# FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
15
|
+
# COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
16
|
+
# IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
17
|
+
# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
18
|
+
|
19
|
+
# FB:AUTOGEN
|
20
|
+
|
21
|
+
module FacebookAds
|
22
|
+
# This class is auto-generated.
|
23
|
+
|
24
|
+
# For any issues or feature requests related to this class, please let us know
|
25
|
+
# on github and we'll fix in our codegen framework. We'll not be able to accept
|
26
|
+
# pull request for this class.
|
27
|
+
|
28
|
+
class LocalServiceBusiness < AdObject
|
29
|
+
IMAGE_FETCH_STATUS = [
|
30
|
+
"DIRECT_UPLOAD",
|
31
|
+
"FETCHED",
|
32
|
+
"FETCH_FAILED",
|
33
|
+
"NO_STATUS",
|
34
|
+
"OUTDATED",
|
35
|
+
"PARTIAL_FETCH",
|
36
|
+
]
|
37
|
+
|
38
|
+
|
39
|
+
field :applinks, 'CatalogItemAppLinks'
|
40
|
+
field :brand, 'string'
|
41
|
+
field :category_specific_fields, 'CatalogSubVerticalList'
|
42
|
+
field :currency, 'string'
|
43
|
+
field :custom_label_0, 'string'
|
44
|
+
field :custom_label_1, 'string'
|
45
|
+
field :custom_label_2, 'string'
|
46
|
+
field :custom_label_3, 'string'
|
47
|
+
field :custom_label_4, 'string'
|
48
|
+
field :description, 'string'
|
49
|
+
field :id, 'string'
|
50
|
+
field :image_fetch_status, { enum: -> { IMAGE_FETCH_STATUS }}
|
51
|
+
field :images, { list: 'string' }
|
52
|
+
field :local_service_business_id, 'string'
|
53
|
+
field :price, 'string'
|
54
|
+
field :sanitized_images, { list: 'string' }
|
55
|
+
field :title, 'string'
|
56
|
+
field :url, 'string'
|
57
|
+
has_no_post
|
58
|
+
has_no_delete
|
59
|
+
|
60
|
+
has_edge :channels_to_integrity_status do |edge|
|
61
|
+
edge.get 'CatalogItemChannelsToIntegrityStatus'
|
62
|
+
end
|
63
|
+
|
64
|
+
end
|
65
|
+
end
|
@@ -0,0 +1,43 @@
|
|
1
|
+
# Copyright (c) 2017-present, Facebook, Inc. All rights reserved.
|
2
|
+
#
|
3
|
+
# You are hereby granted a non-exclusive, worldwide, royalty-free license to use,
|
4
|
+
# copy, modify, and distribute this software in source code or binary form for use
|
5
|
+
# in connection with the web services and APIs provided by Facebook.
|
6
|
+
#
|
7
|
+
# As with any software that integrates with the Facebook platform, your use of
|
8
|
+
# this software is subject to the Facebook Platform Policy
|
9
|
+
# [http://developers.facebook.com/policy/]. This copyright notice shall be
|
10
|
+
# included in all copies or substantial portions of the software.
|
11
|
+
#
|
12
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
13
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
14
|
+
# FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
15
|
+
# COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
16
|
+
# IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
17
|
+
# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
18
|
+
|
19
|
+
# FB:AUTOGEN
|
20
|
+
|
21
|
+
module FacebookAds
|
22
|
+
# This class is auto-generated.
|
23
|
+
|
24
|
+
# For any issues or feature requests related to this class, please let us know
|
25
|
+
# on github and we'll fix in our codegen framework. We'll not be able to accept
|
26
|
+
# pull request for this class.
|
27
|
+
|
28
|
+
class ManagedPartnerBusiness < AdObject
|
29
|
+
|
30
|
+
field :ad_account, 'AdAccount'
|
31
|
+
field :catalog_segment, 'ProductCatalog'
|
32
|
+
field :extended_credit, 'ExtendedCredit'
|
33
|
+
field :page, 'Page'
|
34
|
+
field :seller_business_info, 'object'
|
35
|
+
field :seller_business_status, 'string'
|
36
|
+
field :template, { list: 'object' }
|
37
|
+
has_no_id
|
38
|
+
has_no_get
|
39
|
+
has_no_post
|
40
|
+
has_no_delete
|
41
|
+
|
42
|
+
end
|
43
|
+
end
|
@@ -126,6 +126,7 @@ module FacebookAds
|
|
126
126
|
"PROFILE_PLUS_MANAGE",
|
127
127
|
"PROFILE_PLUS_MESSAGING",
|
128
128
|
"PROFILE_PLUS_MODERATE",
|
129
|
+
"PROFILE_PLUS_REVENUE",
|
129
130
|
"READ_PAGE_MAILBOXES",
|
130
131
|
"VIEW_MONETIZATION_INSIGHTS",
|
131
132
|
]
|
@@ -151,10 +152,46 @@ module FacebookAds
|
|
151
152
|
"PROFILE_PLUS_MANAGE",
|
152
153
|
"PROFILE_PLUS_MESSAGING",
|
153
154
|
"PROFILE_PLUS_MODERATE",
|
155
|
+
"PROFILE_PLUS_REVENUE",
|
154
156
|
"READ_PAGE_MAILBOXES",
|
155
157
|
"VIEW_MONETIZATION_INSIGHTS",
|
156
158
|
]
|
157
159
|
|
160
|
+
ALIGNMENT = [
|
161
|
+
"LEFT",
|
162
|
+
"RIGHT",
|
163
|
+
]
|
164
|
+
|
165
|
+
ENTRY_POINT_ICON = [
|
166
|
+
"CHAT_ANGULAR_ICON",
|
167
|
+
"CHAT_ROUND_ICON",
|
168
|
+
"MESSENGER_ICON",
|
169
|
+
"NONE",
|
170
|
+
]
|
171
|
+
|
172
|
+
ENTRY_POINT_LABEL = [
|
173
|
+
"ASK_US",
|
174
|
+
"CHAT",
|
175
|
+
"HELP",
|
176
|
+
"NONE",
|
177
|
+
]
|
178
|
+
|
179
|
+
GREETING_DIALOG_DISPLAY = [
|
180
|
+
"HIDE",
|
181
|
+
"SHOW",
|
182
|
+
"WELCOME_MESSAGE",
|
183
|
+
]
|
184
|
+
|
185
|
+
GUEST_CHAT_MODE = [
|
186
|
+
"DISABLED",
|
187
|
+
"ENABLED",
|
188
|
+
]
|
189
|
+
|
190
|
+
MOBILE_CHAT_DISPLAY = [
|
191
|
+
"APP_SWITCH",
|
192
|
+
"CHAT_TAB",
|
193
|
+
]
|
194
|
+
|
158
195
|
BACKDATED_TIME_GRANULARITY = [
|
159
196
|
"day",
|
160
197
|
"hour",
|
@@ -308,6 +345,7 @@ module FacebookAds
|
|
308
345
|
"messaging_account_linking",
|
309
346
|
"messaging_appointments",
|
310
347
|
"messaging_checkout_updates",
|
348
|
+
"messaging_customer_information",
|
311
349
|
"messaging_direct_sends",
|
312
350
|
"messaging_fblogin_account_linking",
|
313
351
|
"messaging_feedback",
|
@@ -541,10 +579,6 @@ module FacebookAds
|
|
541
579
|
end
|
542
580
|
end
|
543
581
|
|
544
|
-
has_edge :audio_isrcs do |edge|
|
545
|
-
edge.get
|
546
|
-
end
|
547
|
-
|
548
582
|
has_edge :blocked do |edge|
|
549
583
|
edge.delete do |api|
|
550
584
|
api.has_param :asid, 'string'
|
@@ -565,19 +599,18 @@ module FacebookAds
|
|
565
599
|
end
|
566
600
|
|
567
601
|
has_edge :business_data do |edge|
|
568
|
-
edge.delete do |api|
|
569
|
-
api.has_param :email, 'string'
|
570
|
-
api.has_param :external_id, 'string'
|
571
|
-
api.has_param :object_name, { enum: %w{contact order order_item }}
|
572
|
-
api.has_param :order_id, 'string'
|
573
|
-
api.has_param :order_item_id, 'string'
|
574
|
-
end
|
575
602
|
edge.post 'Page' do |api|
|
576
603
|
api.has_param :data, { list: 'string' }
|
577
604
|
api.has_param :partner_agent, 'string'
|
578
605
|
end
|
579
606
|
end
|
580
607
|
|
608
|
+
has_edge :businessprojects do |edge|
|
609
|
+
edge.get do |api|
|
610
|
+
api.has_param :business, 'string'
|
611
|
+
end
|
612
|
+
end
|
613
|
+
|
581
614
|
has_edge :call_to_actions do |edge|
|
582
615
|
edge.get 'PageCallToAction'
|
583
616
|
end
|
@@ -615,6 +648,24 @@ module FacebookAds
|
|
615
648
|
end
|
616
649
|
end
|
617
650
|
|
651
|
+
has_edge :chat_plugin do |edge|
|
652
|
+
edge.get 'ChatPlugin'
|
653
|
+
edge.post 'Page' do |api|
|
654
|
+
api.has_param :alignment, { enum: -> { Page::ALIGNMENT }}
|
655
|
+
api.has_param :desktop_bottom_spacing, 'int'
|
656
|
+
api.has_param :desktop_side_spacing, 'int'
|
657
|
+
api.has_param :entry_point_icon, { enum: -> { Page::ENTRY_POINT_ICON }}
|
658
|
+
api.has_param :entry_point_label, { enum: -> { Page::ENTRY_POINT_LABEL }}
|
659
|
+
api.has_param :greeting_dialog_display, { enum: -> { Page::GREETING_DIALOG_DISPLAY }}
|
660
|
+
api.has_param :guest_chat_mode, { enum: -> { Page::GUEST_CHAT_MODE }}
|
661
|
+
api.has_param :mobile_bottom_spacing, 'int'
|
662
|
+
api.has_param :mobile_chat_display, { enum: -> { Page::MOBILE_CHAT_DISPLAY }}
|
663
|
+
api.has_param :mobile_side_spacing, 'int'
|
664
|
+
api.has_param :theme_color, 'string'
|
665
|
+
api.has_param :welcome_screen_greeting, 'string'
|
666
|
+
end
|
667
|
+
end
|
668
|
+
|
618
669
|
has_edge :claimed_urls do |edge|
|
619
670
|
edge.get 'Url'
|
620
671
|
end
|
@@ -683,6 +734,7 @@ module FacebookAds
|
|
683
734
|
edge.get 'PageUserMessageThreadLabel'
|
684
735
|
edge.post 'PageUserMessageThreadLabel' do |api|
|
685
736
|
api.has_param :name, 'string'
|
737
|
+
api.has_param :page_label_name, 'string'
|
686
738
|
end
|
687
739
|
end
|
688
740
|
|
@@ -881,6 +933,13 @@ module FacebookAds
|
|
881
933
|
end
|
882
934
|
end
|
883
935
|
|
936
|
+
has_edge :insights_exports do |edge|
|
937
|
+
edge.get do |api|
|
938
|
+
api.has_param :data_level, { list: 'string' }
|
939
|
+
api.has_param :from_creation_date, 'datetime'
|
940
|
+
end
|
941
|
+
end
|
942
|
+
|
884
943
|
has_edge :instagram_accounts do |edge|
|
885
944
|
edge.get 'InstagramUser'
|
886
945
|
end
|
@@ -971,7 +1030,6 @@ module FacebookAds
|
|
971
1030
|
api.has_param :is_spherical, 'bool'
|
972
1031
|
api.has_param :live_encoders, { list: 'string' }
|
973
1032
|
api.has_param :original_fov, 'int'
|
974
|
-
api.has_param :planned_start_time, 'int'
|
975
1033
|
api.has_param :privacy, 'string'
|
976
1034
|
api.has_param :projection, { enum: -> { LiveVideo::PROJECTION }}
|
977
1035
|
api.has_param :published, 'bool'
|