facebookbusiness 0.11.0.0 → 0.13.0.0
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.rb +1 -0
- data/lib/facebook_ads/ad_objects/ad_account.rb +36 -24
- data/lib/facebook_ads/ad_objects/ad_account_ad_volume.rb +6 -0
- data/lib/facebook_ads/ad_objects/ad_account_delivery_estimate.rb +6 -9
- data/lib/facebook_ads/ad_objects/ad_account_matched_search_applications_edge_data.rb +9 -0
- data/lib/facebook_ads/ad_objects/ad_account_reach_estimate.rb +2 -1
- data/lib/facebook_ads/ad_objects/ad_account_targeting_unified.rb +12 -1
- data/lib/facebook_ads/ad_objects/ad_activity.rb +2 -0
- data/lib/facebook_ads/ad_objects/ad_asset_feed_spec.rb +3 -1
- data/lib/facebook_ads/ad_objects/ad_async_request_set.rb +1 -7
- data/lib/facebook_ads/ad_objects/ad_campaign_activity.rb +6 -16
- data/lib/facebook_ads/ad_objects/ad_campaign_delivery_estimate.rb +6 -9
- data/lib/facebook_ads/ad_objects/ad_creative.rb +6 -0
- data/lib/facebook_ads/ad_objects/ad_creative_link_data.rb +1 -0
- data/lib/facebook_ads/ad_objects/ad_creative_link_data_call_to_action.rb +2 -0
- data/lib/facebook_ads/ad_objects/ad_creative_link_data_image_overlay_spec.rb +2 -0
- data/lib/facebook_ads/ad_objects/ad_image.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 +0 -6
- data/lib/facebook_ads/ad_objects/ad_preview.rb +8 -1
- data/lib/facebook_ads/ad_objects/ad_promoted_object.rb +1 -0
- data/lib/facebook_ads/ad_objects/ad_rule.rb +27 -0
- data/lib/facebook_ads/ad_objects/ad_rule_execution_spec.rb +3 -0
- data/lib/facebook_ads/ad_objects/ad_set.rb +12 -24
- 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/ad_study_objective_offsite_datasets.rb +37 -0
- data/lib/facebook_ads/ad_objects/ad_video.rb +34 -4
- 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_action_stats.rb +2 -0
- data/lib/facebook_ads/ad_objects/ads_insights.rb +6 -6
- data/lib/facebook_ads/ad_objects/ads_pixel.rb +7 -0
- data/lib/facebook_ads/ad_objects/album.rb +0 -1
- data/lib/facebook_ads/ad_objects/application.rb +38 -50
- data/lib/facebook_ads/ad_objects/{adgroup_relevance_score.rb → ar_effects_batch_status.rb} +3 -4
- data/lib/facebook_ads/ad_objects/audio_copyright.rb +0 -4
- data/lib/facebook_ads/ad_objects/automotive_model.rb +2 -0
- data/lib/facebook_ads/ad_objects/broad_targeting_categories.rb +2 -1
- data/lib/facebook_ads/ad_objects/business.rb +87 -52
- data/lib/facebook_ads/ad_objects/business_asset_group.rb +6 -0
- data/lib/facebook_ads/ad_objects/business_image.rb +44 -0
- data/lib/facebook_ads/ad_objects/{billed_amount_details.rb → business_managed_partner_eligibility.rb} +4 -5
- data/lib/facebook_ads/ad_objects/campaign.rb +4 -0
- data/lib/facebook_ads/ad_objects/canvas.rb +17 -6
- data/lib/facebook_ads/ad_objects/chat_plugin.rb +48 -0
- data/lib/facebook_ads/ad_objects/{audience_insights_study_spec.rb → cloud_game.rb} +10 -11
- data/lib/facebook_ads/ad_objects/comment.rb +2 -0
- data/lib/facebook_ads/ad_objects/commerce_merchant_settings.rb +6 -1
- data/lib/facebook_ads/ad_objects/commerce_order.rb +8 -0
- data/lib/facebook_ads/ad_objects/content_delivery_report.rb +10 -0
- data/lib/facebook_ads/ad_objects/{business_agreement.rb → copyright_audio_asset.rb} +5 -10
- data/lib/facebook_ads/ad_objects/cpas_business_setup_config.rb +43 -0
- data/lib/facebook_ads/ad_objects/cpas_merchant_config.rb +41 -0
- data/lib/facebook_ads/ad_objects/custom_audience.rb +9 -1
- data/lib/facebook_ads/ad_objects/custom_audience_data_source.rb +1 -0
- data/lib/facebook_ads/ad_objects/destination.rb +1 -0
- data/lib/facebook_ads/ad_objects/event.rb +12 -7
- data/lib/facebook_ads/ad_objects/flight.rb +1 -0
- data/lib/facebook_ads/ad_objects/fundraiser_person_to_charity.rb +74 -0
- data/lib/facebook_ads/ad_objects/group.rb +24 -4
- data/lib/facebook_ads/ad_objects/home_listing.rb +1 -3
- data/lib/facebook_ads/ad_objects/hotel.rb +1 -0
- data/lib/facebook_ads/ad_objects/ig_comment.rb +2 -0
- data/lib/facebook_ads/ad_objects/ig_media.rb +0 -1
- data/lib/facebook_ads/ad_objects/ig_user.rb +9 -0
- data/lib/facebook_ads/ad_objects/insights_result.rb +1 -0
- data/lib/facebook_ads/ad_objects/instagram_insights_result.rb +4 -0
- data/lib/facebook_ads/ad_objects/instagram_user.rb +1 -0
- data/lib/facebook_ads/ad_objects/{ad_account_content_filter_levels_inheritance.rb → instant_articles_stats.rb} +6 -5
- data/lib/facebook_ads/ad_objects/{ad_report_spec.rb → jobs_job.rb} +39 -18
- data/lib/facebook_ads/ad_objects/life_event.rb +0 -9
- data/lib/facebook_ads/ad_objects/live_video.rb +22 -19
- data/lib/facebook_ads/ad_objects/live_video_input_stream.rb +0 -1
- data/lib/facebook_ads/ad_objects/live_video_recommended_encoder_settings.rb +39 -0
- data/lib/facebook_ads/ad_objects/local_service_business.rb +98 -0
- data/lib/facebook_ads/ad_objects/{invoice_campaign.rb → managed_partner_business.rb} +8 -9
- data/lib/facebook_ads/ad_objects/media_fingerprint.rb +1 -0
- data/lib/facebook_ads/ad_objects/{product_feed_upload_diagnostics_report.rb → messaging_feature_status.rb} +2 -3
- data/lib/facebook_ads/ad_objects/messenger_destination_page_welcome_message.rb +1 -0
- data/lib/facebook_ads/ad_objects/offline_conversion_data_set.rb +6 -5
- data/lib/facebook_ads/ad_objects/offline_conversion_data_set_permissions.rb +40 -0
- data/lib/facebook_ads/ad_objects/{oracle_transaction.rb → offline_conversion_data_set_upload.rb} +36 -21
- data/lib/facebook_ads/ad_objects/offline_conversion_data_set_usage.rb +37 -0
- data/lib/facebook_ads/ad_objects/omega_customer_trx.rb +3 -3
- data/lib/facebook_ads/ad_objects/page.rb +84 -100
- data/lib/facebook_ads/ad_objects/page_post.rb +2 -2
- data/lib/facebook_ads/ad_objects/page_user_message_thread_label.rb +1 -1
- data/lib/facebook_ads/ad_objects/payment_engine_payment.rb +1 -0
- data/lib/facebook_ads/ad_objects/post.rb +2 -2
- data/lib/facebook_ads/ad_objects/private_lift_study_instance.rb +2 -0
- data/lib/facebook_ads/ad_objects/product_catalog.rb +52 -11
- data/lib/facebook_ads/ad_objects/product_feed.rb +17 -17
- data/lib/facebook_ads/ad_objects/product_feed_rule.rb +0 -8
- data/lib/facebook_ads/ad_objects/product_group.rb +6 -1
- data/lib/facebook_ads/ad_objects/{domain.rb → product_image.rb} +2 -3
- data/lib/facebook_ads/ad_objects/product_item.rb +272 -0
- data/lib/facebook_ads/ad_objects/product_item_importer_address.rb +42 -0
- data/lib/facebook_ads/ad_objects/product_set.rb +2 -7
- data/lib/facebook_ads/ad_objects/profile.rb +2 -0
- data/lib/facebook_ads/ad_objects/reach_frequency_prediction.rb +2 -1
- data/lib/facebook_ads/ad_objects/saved_audience.rb +3 -2
- data/lib/facebook_ads/ad_objects/shop.rb +37 -0
- data/lib/facebook_ads/ad_objects/text_with_entities.rb +37 -0
- data/lib/facebook_ads/ad_objects/user.rb +19 -54
- data/lib/facebook_ads/ad_objects/vehicle.rb +11 -0
- data/lib/facebook_ads/ad_objects/vehicle_offer.rb +1 -0
- data/lib/facebook_ads/ad_objects/video_copyright.rb +0 -4
- data/lib/facebook_ads/ad_objects/whats_app_business_account.rb +30 -0
- data/lib/facebook_ads/ad_objects/woodhenge_purchased_payg_receipt.rb +38 -0
- data/lib/facebook_ads/version.rb +2 -2
- metadata +26 -17
- data/lib/facebook_ads/ad_objects/atlas_campaign.rb +0 -153
- data/lib/facebook_ads/ad_objects/business_unit.rb +0 -132
- data/lib/facebook_ads/ad_objects/live_encoder.rb +0 -100
- data/lib/facebook_ads/ad_objects/measurement_upload_event.rb +0 -220
- data/lib/facebook_ads/ad_objects/referral.rb +0 -45
@@ -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 CpasBusinessSetupConfig < AdObject
|
29
|
+
|
30
|
+
field :accepted_collab_ads_tos, 'bool'
|
31
|
+
field :business, 'Business'
|
32
|
+
field :business_capabilities_status, 'hash'
|
33
|
+
field :capabilities_compliance_status, 'hash'
|
34
|
+
field :id, 'string'
|
35
|
+
field :ad_accounts, { list: 'string' }
|
36
|
+
has_no_delete
|
37
|
+
|
38
|
+
has_edge :ad_accounts do |edge|
|
39
|
+
edge.get 'AdAccount'
|
40
|
+
end
|
41
|
+
|
42
|
+
end
|
43
|
+
end
|
@@ -0,0 +1,41 @@
|
|
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 CpasMerchantConfig < AdObject
|
29
|
+
|
30
|
+
field :accepted_tos, 'bool'
|
31
|
+
field :beta_features, { list: 'string' }
|
32
|
+
field :business_outcomes_status, 'hash'
|
33
|
+
field :id, 'string'
|
34
|
+
field :is_test_merchant, 'bool'
|
35
|
+
field :outcomes_compliance_status, 'hash'
|
36
|
+
field :qualified_to_onboard, 'bool'
|
37
|
+
has_no_post
|
38
|
+
has_no_delete
|
39
|
+
|
40
|
+
end
|
41
|
+
end
|
@@ -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",
|
@@ -77,9 +78,15 @@ module FacebookAds
|
|
77
78
|
"WEBSITE",
|
78
79
|
]
|
79
80
|
|
81
|
+
ACTION_SOURCE = [
|
82
|
+
"PHYSICAL_STORE",
|
83
|
+
"WEBSITE",
|
84
|
+
]
|
85
|
+
|
80
86
|
|
81
87
|
field :account_id, 'string'
|
82
|
-
field :
|
88
|
+
field :approximate_count_lower_bound, 'int'
|
89
|
+
field :approximate_count_upper_bound, 'int'
|
83
90
|
field :customer_file_source, 'string'
|
84
91
|
field :data_source, 'CustomAudienceDataSource'
|
85
92
|
field :data_source_types, 'string'
|
@@ -100,6 +107,7 @@ module FacebookAds
|
|
100
107
|
field :name, 'string'
|
101
108
|
field :operation_status, 'CustomAudienceStatus'
|
102
109
|
field :opt_out_link, 'string'
|
110
|
+
field :page_deletion_marked_delete_time, 'int'
|
103
111
|
field :permission_for_actions, 'AudiencePermissionForActions'
|
104
112
|
field :pixel_id, 'string'
|
105
113
|
field :regulated_audience_spec, 'LookalikeSpec'
|
@@ -68,6 +68,7 @@ module FacebookAds
|
|
68
68
|
"group",
|
69
69
|
"private",
|
70
70
|
"public",
|
71
|
+
"work_company",
|
71
72
|
]
|
72
73
|
|
73
74
|
EVENT_STATE_FILTER = [
|
@@ -87,6 +88,7 @@ module FacebookAds
|
|
87
88
|
field :can_guests_invite, 'bool'
|
88
89
|
field :category, { enum: -> { CATEGORY }}
|
89
90
|
field :cover, 'CoverPhoto'
|
91
|
+
field :created_time, 'datetime'
|
90
92
|
field :declined_count, 'int'
|
91
93
|
field :description, 'string'
|
92
94
|
field :discount_code_enabled, 'bool'
|
@@ -109,6 +111,7 @@ module FacebookAds
|
|
109
111
|
field :place, 'Place'
|
110
112
|
field :scheduled_publish_time, 'string'
|
111
113
|
field :start_time, 'string'
|
114
|
+
field :ticket_setting, 'object'
|
112
115
|
field :ticket_uri, 'string'
|
113
116
|
field :ticket_uri_start_sales_time, 'string'
|
114
117
|
field :ticketing_privacy_uri, 'string'
|
@@ -129,7 +132,10 @@ module FacebookAds
|
|
129
132
|
|
130
133
|
has_edge :live_videos do |edge|
|
131
134
|
edge.get 'NullNode'
|
132
|
-
|
135
|
+
end
|
136
|
+
|
137
|
+
has_edge :livevideos do |edge|
|
138
|
+
edge.post do |api|
|
133
139
|
api.has_param :content_tags, { list: 'string' }
|
134
140
|
api.has_param :description, 'string'
|
135
141
|
api.has_param :enable_backup_ingest, 'bool'
|
@@ -138,18 +144,17 @@ module FacebookAds
|
|
138
144
|
api.has_param :front_z_rotation, 'double'
|
139
145
|
api.has_param :is_audio_only, 'bool'
|
140
146
|
api.has_param :is_spherical, 'bool'
|
141
|
-
api.has_param :live_encoders, { list: 'string' }
|
142
147
|
api.has_param :original_fov, 'int'
|
143
148
|
api.has_param :planned_start_time, 'int'
|
144
149
|
api.has_param :privacy, 'string'
|
145
|
-
api.has_param :projection, { enum:
|
150
|
+
api.has_param :projection, { enum: %w{CUBEMAP EQUIRECTANGULAR HALF_EQUIRECTANGULAR }}
|
146
151
|
api.has_param :published, 'bool'
|
147
152
|
api.has_param :schedule_custom_profile_image, 'file'
|
148
|
-
api.has_param :spatial_audio_format, { enum:
|
149
|
-
api.has_param :status, { enum:
|
150
|
-
api.has_param :stereoscopic_mode, { enum:
|
153
|
+
api.has_param :spatial_audio_format, { enum: %w{ambiX_4 }}
|
154
|
+
api.has_param :status, { enum: %w{LIVE_NOW SCHEDULED_CANCELED SCHEDULED_LIVE SCHEDULED_UNPUBLISHED UNPUBLISHED }}
|
155
|
+
api.has_param :stereoscopic_mode, { enum: %w{LEFT_RIGHT MONO TOP_BOTTOM }}
|
151
156
|
api.has_param :stop_on_delete_stream, 'bool'
|
152
|
-
api.has_param :stream_type, { enum:
|
157
|
+
api.has_param :stream_type, { enum: %w{AMBIENT REGULAR }}
|
153
158
|
api.has_param :title, 'string'
|
154
159
|
end
|
155
160
|
end
|
@@ -0,0 +1,74 @@
|
|
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 FundraiserPersonToCharity < AdObject
|
29
|
+
FUNDRAISER_TYPE = [
|
30
|
+
"person_for_charity",
|
31
|
+
]
|
32
|
+
|
33
|
+
|
34
|
+
field :amount_raised, 'int'
|
35
|
+
field :charity_id, 'string'
|
36
|
+
field :currency, 'string'
|
37
|
+
field :description, 'string'
|
38
|
+
field :donations_count, 'int'
|
39
|
+
field :donors_count, 'int'
|
40
|
+
field :end_time, 'datetime'
|
41
|
+
field :external_amount_raised, 'int'
|
42
|
+
field :external_donations_count, 'int'
|
43
|
+
field :external_donors_count, 'int'
|
44
|
+
field :external_event_name, 'string'
|
45
|
+
field :external_event_start_time, 'datetime'
|
46
|
+
field :external_event_uri, 'string'
|
47
|
+
field :external_fundraiser_uri, 'string'
|
48
|
+
field :external_id, 'string'
|
49
|
+
field :goal_amount, 'int'
|
50
|
+
field :id, 'string'
|
51
|
+
field :internal_amount_raised, 'int'
|
52
|
+
field :internal_donations_count, 'int'
|
53
|
+
field :internal_donors_count, 'int'
|
54
|
+
field :name, 'string'
|
55
|
+
field :uri, 'string'
|
56
|
+
has_no_delete
|
57
|
+
|
58
|
+
has_edge :end_fundraiser do |edge|
|
59
|
+
edge.post
|
60
|
+
end
|
61
|
+
|
62
|
+
has_edge :external_donations do |edge|
|
63
|
+
edge.get
|
64
|
+
edge.post do |api|
|
65
|
+
api.has_param :amount_received, 'int'
|
66
|
+
api.has_param :currency, 'string'
|
67
|
+
api.has_param :donation_id_hash, 'string'
|
68
|
+
api.has_param :donation_time, 'int'
|
69
|
+
api.has_param :donor_id_hash, 'string'
|
70
|
+
end
|
71
|
+
end
|
72
|
+
|
73
|
+
end
|
74
|
+
end
|
@@ -39,6 +39,7 @@ module FacebookAds
|
|
39
39
|
]
|
40
40
|
|
41
41
|
PURPOSE = [
|
42
|
+
"BOOKS",
|
42
43
|
"CASUAL",
|
43
44
|
"CLOSE_FRIENDS",
|
44
45
|
"CLUB",
|
@@ -49,6 +50,8 @@ module FacebookAds
|
|
49
50
|
"EPHEMERAL",
|
50
51
|
"EVENT_PLANNING",
|
51
52
|
"FAMILY",
|
53
|
+
"FANDOM_RADAR",
|
54
|
+
"FANTASY_LEAGUE",
|
52
55
|
"FITNESS",
|
53
56
|
"FOR_SALE",
|
54
57
|
"FOR_WORK",
|
@@ -59,6 +62,7 @@ module FacebookAds
|
|
59
62
|
"JOBS",
|
60
63
|
"LEARNING",
|
61
64
|
"MENTORSHIP",
|
65
|
+
"MUSIC_CASA_BUNDLE",
|
62
66
|
"NEIGHBORS",
|
63
67
|
"NONE",
|
64
68
|
"OCULUS",
|
@@ -70,11 +74,13 @@ module FacebookAds
|
|
70
74
|
"SCHOOL_CLASS",
|
71
75
|
"SORORITY",
|
72
76
|
"SPORTS",
|
77
|
+
"SPORTS_ACTIVITY",
|
73
78
|
"STREAMER",
|
74
79
|
"STUDY_GROUP",
|
75
80
|
"SUPPORT",
|
76
81
|
"TEAMMATES",
|
77
82
|
"THEME",
|
83
|
+
"TOGETHER_VR",
|
78
84
|
"TRAVEL_PLANNING",
|
79
85
|
"WORK_ANNOUNCEMENT",
|
80
86
|
"WORK_DEMO_GROUP",
|
@@ -83,18 +89,21 @@ module FacebookAds
|
|
83
89
|
"WORK_FEEDBACK",
|
84
90
|
"WORK_FOR_SALE",
|
85
91
|
"WORK_GARDEN",
|
92
|
+
"WORK_GUEST_GROUP",
|
86
93
|
"WORK_LEARNING",
|
87
94
|
"WORK_MENTORSHIP",
|
88
95
|
"WORK_MULTI_COMPANY",
|
89
96
|
"WORK_RECRUITING",
|
90
97
|
"WORK_RESUME_REVIEW",
|
91
98
|
"WORK_SOCIAL",
|
99
|
+
"WORK_STAGES",
|
92
100
|
"WORK_TEAM",
|
93
101
|
"WORK_TEAMWORK",
|
94
102
|
"WORK_VC_CALL",
|
95
103
|
]
|
96
104
|
|
97
105
|
GROUP_TYPE = [
|
106
|
+
"BOOKS",
|
98
107
|
"CASUAL",
|
99
108
|
"CLOSE_FRIENDS",
|
100
109
|
"CLUB",
|
@@ -105,6 +114,8 @@ module FacebookAds
|
|
105
114
|
"EPHEMERAL",
|
106
115
|
"EVENT_PLANNING",
|
107
116
|
"FAMILY",
|
117
|
+
"FANDOM_RADAR",
|
118
|
+
"FANTASY_LEAGUE",
|
108
119
|
"FITNESS",
|
109
120
|
"FOR_SALE",
|
110
121
|
"FOR_WORK",
|
@@ -115,6 +126,7 @@ module FacebookAds
|
|
115
126
|
"JOBS",
|
116
127
|
"LEARNING",
|
117
128
|
"MENTORSHIP",
|
129
|
+
"MUSIC_CASA_BUNDLE",
|
118
130
|
"NEIGHBORS",
|
119
131
|
"NONE",
|
120
132
|
"OCULUS",
|
@@ -126,11 +138,13 @@ module FacebookAds
|
|
126
138
|
"SCHOOL_CLASS",
|
127
139
|
"SORORITY",
|
128
140
|
"SPORTS",
|
141
|
+
"SPORTS_ACTIVITY",
|
129
142
|
"STREAMER",
|
130
143
|
"STUDY_GROUP",
|
131
144
|
"SUPPORT",
|
132
145
|
"TEAMMATES",
|
133
146
|
"THEME",
|
147
|
+
"TOGETHER_VR",
|
134
148
|
"TRAVEL_PLANNING",
|
135
149
|
"WORK_ANNOUNCEMENT",
|
136
150
|
"WORK_DEMO_GROUP",
|
@@ -139,12 +153,14 @@ module FacebookAds
|
|
139
153
|
"WORK_FEEDBACK",
|
140
154
|
"WORK_FOR_SALE",
|
141
155
|
"WORK_GARDEN",
|
156
|
+
"WORK_GUEST_GROUP",
|
142
157
|
"WORK_LEARNING",
|
143
158
|
"WORK_MENTORSHIP",
|
144
159
|
"WORK_MULTI_COMPANY",
|
145
160
|
"WORK_RECRUITING",
|
146
161
|
"WORK_RESUME_REVIEW",
|
147
162
|
"WORK_SOCIAL",
|
163
|
+
"WORK_STAGES",
|
148
164
|
"WORK_TEAM",
|
149
165
|
"WORK_TEAMWORK",
|
150
166
|
"WORK_VC_CALL",
|
@@ -305,7 +321,6 @@ module FacebookAds
|
|
305
321
|
api.has_param :ref, { list: 'string' }
|
306
322
|
api.has_param :referenceable_image_ids, { list: 'string' }
|
307
323
|
api.has_param :referral_id, 'string'
|
308
|
-
api.has_param :sales_promo_id, 'int'
|
309
324
|
api.has_param :scheduled_publish_time, 'datetime'
|
310
325
|
api.has_param :source, 'string'
|
311
326
|
api.has_param :sponsor_id, 'string'
|
@@ -365,7 +380,6 @@ module FacebookAds
|
|
365
380
|
api.has_param :front_z_rotation, 'double'
|
366
381
|
api.has_param :is_audio_only, 'bool'
|
367
382
|
api.has_param :is_spherical, 'bool'
|
368
|
-
api.has_param :live_encoders, { list: 'string' }
|
369
383
|
api.has_param :original_fov, 'int'
|
370
384
|
api.has_param :planned_start_time, 'int'
|
371
385
|
api.has_param :privacy, 'string'
|
@@ -422,7 +436,6 @@ module FacebookAds
|
|
422
436
|
api.has_param :ios_bundle_id, 'string'
|
423
437
|
api.has_param :is_explicit_location, 'bool'
|
424
438
|
api.has_param :is_explicit_place, 'bool'
|
425
|
-
api.has_param :is_visual_search, 'bool'
|
426
439
|
api.has_param :manual_privacy, 'bool'
|
427
440
|
api.has_param :message, 'string'
|
428
441
|
api.has_param :name, 'string'
|
@@ -466,6 +479,13 @@ module FacebookAds
|
|
466
479
|
end
|
467
480
|
end
|
468
481
|
|
482
|
+
has_edge :shift_settings do |edge|
|
483
|
+
edge.post do |api|
|
484
|
+
api.has_param :external_id, 'string'
|
485
|
+
api.has_param :shift_feature_setting, { enum: %w{ALL_FEATURES_OFF ALL_FEATURES_ON SHIFT_COVER_ONLY_ON SHIFT_VIEWER_ONLY_ON }}
|
486
|
+
end
|
487
|
+
end
|
488
|
+
|
469
489
|
has_edge :videos do |edge|
|
470
490
|
edge.get 'AdVideo' do |api|
|
471
491
|
api.has_param :type, { enum: -> { AdVideo::TYPE }}
|
@@ -520,10 +540,10 @@ module FacebookAds
|
|
520
540
|
api.has_param :original_fov, 'int'
|
521
541
|
api.has_param :original_projection_type, { enum: -> { AdVideo::ORIGINAL_PROJECTION_TYPE }}
|
522
542
|
api.has_param :publish_event_id, 'int'
|
543
|
+
api.has_param :published, 'bool'
|
523
544
|
api.has_param :react_mode_metadata, 'string'
|
524
545
|
api.has_param :referenced_sticker_id, 'string'
|
525
546
|
api.has_param :replace_video_id, 'string'
|
526
|
-
api.has_param :sales_promo_id, 'int'
|
527
547
|
api.has_param :scheduled_publish_time, 'int'
|
528
548
|
api.has_param :slideshow_spec, 'hash'
|
529
549
|
api.has_param :source, 'string'
|
@@ -38,7 +38,6 @@ module FacebookAds
|
|
38
38
|
|
39
39
|
field :ac_type, 'string'
|
40
40
|
field :additional_fees_description, 'string'
|
41
|
-
field :address, 'object'
|
42
41
|
field :agent_company, 'string'
|
43
42
|
field :agent_email, 'string'
|
44
43
|
field :agent_fb_page_id, 'Page'
|
@@ -49,11 +48,9 @@ module FacebookAds
|
|
49
48
|
field :area_unit, 'string'
|
50
49
|
field :availability, 'string'
|
51
50
|
field :category_specific_fields, 'CatalogSubVerticalList'
|
52
|
-
field :co_2_emission_rating_eu, 'object'
|
53
51
|
field :currency, 'string'
|
54
52
|
field :days_on_market, 'int'
|
55
53
|
field :description, 'string'
|
56
|
-
field :energy_rating_eu, 'object'
|
57
54
|
field :furnish_type, 'string'
|
58
55
|
field :group_id, 'string'
|
59
56
|
field :heating_type, 'string'
|
@@ -80,6 +77,7 @@ module FacebookAds
|
|
80
77
|
field :sanitized_images, { list: 'string' }
|
81
78
|
field :url, 'string'
|
82
79
|
field :year_built, 'int'
|
80
|
+
field :address, 'object'
|
83
81
|
|
84
82
|
has_edge :augmented_realities_metadata do |edge|
|
85
83
|
edge.get
|
@@ -27,10 +27,12 @@ module FacebookAds
|
|
27
27
|
|
28
28
|
class IgComment < AdObject
|
29
29
|
|
30
|
+
field :from, 'object'
|
30
31
|
field :hidden, 'bool'
|
31
32
|
field :id, 'string'
|
32
33
|
field :like_count, 'int'
|
33
34
|
field :media, 'IgMedia'
|
35
|
+
field :parent_id, 'string'
|
34
36
|
field :text, 'string'
|
35
37
|
field :timestamp, 'datetime'
|
36
38
|
field :user, 'IgUser'
|
@@ -59,6 +59,13 @@ module FacebookAds
|
|
59
59
|
end
|
60
60
|
end
|
61
61
|
|
62
|
+
has_edge :live_media do |edge|
|
63
|
+
edge.get 'IgMedia' do |api|
|
64
|
+
api.has_param :since, 'datetime'
|
65
|
+
api.has_param :until, 'datetime'
|
66
|
+
end
|
67
|
+
end
|
68
|
+
|
62
69
|
has_edge :media do |edge|
|
63
70
|
edge.get 'IgMedia' do |api|
|
64
71
|
api.has_param :since, 'datetime'
|
@@ -66,7 +73,9 @@ module FacebookAds
|
|
66
73
|
end
|
67
74
|
edge.post 'IgMedia' do |api|
|
68
75
|
api.has_param :caption, 'string'
|
76
|
+
api.has_param :children, { list: 'string' }
|
69
77
|
api.has_param :image_url, 'string'
|
78
|
+
api.has_param :is_carousel_item, 'bool'
|
70
79
|
api.has_param :location_id, 'string'
|
71
80
|
api.has_param :media_type, 'string'
|
72
81
|
api.has_param :thumb_offset, 'string'
|
@@ -32,12 +32,16 @@ module FacebookAds
|
|
32
32
|
"carousel_album_reach",
|
33
33
|
"carousel_album_saved",
|
34
34
|
"carousel_album_video_views",
|
35
|
+
"comments",
|
35
36
|
"engagement",
|
36
37
|
"exits",
|
37
38
|
"impressions",
|
39
|
+
"likes",
|
40
|
+
"plays",
|
38
41
|
"reach",
|
39
42
|
"replies",
|
40
43
|
"saved",
|
44
|
+
"shares",
|
41
45
|
"taps_back",
|
42
46
|
"taps_forward",
|
43
47
|
"video_views",
|
@@ -25,12 +25,13 @@ 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 InstantArticlesStats < AdObject
|
29
29
|
|
30
|
-
field :
|
31
|
-
field :
|
32
|
-
field :
|
33
|
-
field :
|
30
|
+
field :error, 'string'
|
31
|
+
field :metadata, 'hash'
|
32
|
+
field :metric, 'object'
|
33
|
+
field :totals, 'hash'
|
34
|
+
field :x_axis_breakdown, { list: 'hash' }
|
34
35
|
has_no_id
|
35
36
|
has_no_get
|
36
37
|
has_no_post
|
@@ -25,27 +25,48 @@ 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
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
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'
|
38
49
|
field :id, 'string'
|
39
|
-
field :
|
40
|
-
field :
|
41
|
-
field :
|
42
|
-
field :
|
43
|
-
field :
|
44
|
-
field :
|
45
|
-
field :time_interval, 'object'
|
46
|
-
field :time_ranges, { list: 'object' }
|
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'
|
47
56
|
has_no_post
|
48
57
|
has_no_delete
|
49
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
|
+
|
50
71
|
end
|
51
72
|
end
|
@@ -38,15 +38,6 @@ module FacebookAds
|
|
38
38
|
has_no_post
|
39
39
|
has_no_delete
|
40
40
|
|
41
|
-
has_edge :comments do |edge|
|
42
|
-
edge.get 'Comment' do |api|
|
43
|
-
api.has_param :filter, { enum: -> { Comment::FILTER }}
|
44
|
-
api.has_param :live_filter, { enum: -> { Comment::LIVE_FILTER }}
|
45
|
-
api.has_param :order, { enum: -> { Comment::ORDER }}
|
46
|
-
api.has_param :since, 'datetime'
|
47
|
-
end
|
48
|
-
end
|
49
|
-
|
50
41
|
has_edge :likes do |edge|
|
51
42
|
edge.get 'Profile'
|
52
43
|
end
|