facebookbusiness 23.0.1 → 23.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.rb +2 -0
- data/lib/facebook_ads/ad_objects/ad_account.rb +48 -0
- 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 +47 -0
- data/lib/facebook_ads/ad_objects/ad_account_live_video_advertiser.rb +1 -0
- data/lib/facebook_ads/ad_objects/ad_account_matched_search_applications_edge_data.rb +29 -0
- data/lib/facebook_ads/ad_objects/ad_account_targeting_unified.rb +1 -0
- data/lib/facebook_ads/ad_objects/ad_account_user_settings.rb +6 -0
- data/lib/facebook_ads/ad_objects/ad_activity.rb +2 -0
- data/lib/facebook_ads/ad_objects/ad_asset_customization_rule_customization_spec.rb +1 -0
- data/lib/facebook_ads/ad_objects/ad_asset_feed_additional_data_reconsideration_offer.rb +26 -0
- data/lib/facebook_ads/ad_objects/ad_asset_feed_spec.rb +8 -0
- data/lib/facebook_ads/ad_objects/ad_asset_feed_spec_link_url.rb +2 -0
- data/lib/facebook_ads/ad_objects/ad_campaign_frequency_control_specs.rb +1 -0
- data/lib/facebook_ads/ad_objects/ad_campaign_group_structure_tree.rb +1 -1
- data/lib/facebook_ads/ad_objects/ad_campaign_learning_stage_info.rb +3 -0
- data/lib/facebook_ads/ad_objects/ad_creative.rb +10 -1
- data/lib/facebook_ads/ad_objects/ad_creative_asset_groups_spec.rb +1 -0
- data/lib/facebook_ads/ad_objects/ad_creative_branded_content_ads.rb +2 -0
- data/lib/facebook_ads/ad_objects/ad_creative_features_spec.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 +8 -0
- data/lib/facebook_ads/ad_objects/ad_creative_link_data_call_to_action_value.rb +4 -0
- data/lib/facebook_ads/ad_objects/ad_creative_link_data_child_attachment.rb +3 -0
- data/lib/facebook_ads/ad_objects/ad_creative_media_sourcing_spec.rb +6 -0
- data/lib/facebook_ads/ad_objects/ad_creative_site_links_spec.rb +2 -0
- data/lib/facebook_ads/ad_objects/ad_creative_sourcing_spec.rb +5 -0
- data/lib/facebook_ads/ad_objects/ad_custom_derived_metrics.rb +6 -0
- data/lib/facebook_ads/ad_objects/ad_preview.rb +6 -0
- data/lib/facebook_ads/ad_objects/ad_promoted_object.rb +5 -0
- data/lib/facebook_ads/ad_objects/ad_report_run.rb +1 -0
- data/lib/facebook_ads/ad_objects/ad_rule_history.rb +1 -0
- data/lib/facebook_ads/ad_objects/ad_set.rb +16 -0
- data/lib/facebook_ads/ad_objects/ad_study.rb +1 -0
- data/lib/facebook_ads/ad_objects/ad_video.rb +3 -0
- data/lib/facebook_ads/ad_objects/adgroup_metadata.rb +1 -0
- data/lib/facebook_ads/ad_objects/ads_action_stats.rb +3 -0
- data/lib/facebook_ads/ad_objects/ads_histogram_stats.rb +3 -0
- data/lib/facebook_ads/ad_objects/ads_insights.rb +17 -11
- data/lib/facebook_ads/ad_objects/ads_user_settings.rb +14 -0
- data/lib/facebook_ads/ad_objects/ads_value_adjustment_rule_collection.rb +2 -1
- data/lib/facebook_ads/ad_objects/application.rb +1 -1
- data/lib/facebook_ads/ad_objects/audio_asset.rb +1 -0
- data/lib/facebook_ads/ad_objects/avatar.rb +0 -12
- data/lib/facebook_ads/ad_objects/branded_content_shadow_ig_media_id.rb +5 -0
- data/lib/facebook_ads/ad_objects/business.rb +8 -0
- data/lib/facebook_ads/ad_objects/business_agreement.rb +4 -0
- data/lib/facebook_ads/ad_objects/business_asset_sharing_agreement.rb +4 -0
- data/lib/facebook_ads/ad_objects/business_owned_object_on_behalf_of_request.rb +4 -0
- data/lib/facebook_ads/ad_objects/campaign.rb +12 -0
- data/lib/facebook_ads/ad_objects/canvas.rb +2 -0
- data/lib/facebook_ads/ad_objects/commerce_merchant_settings.rb +0 -3
- data/lib/facebook_ads/ad_objects/copyright_ownership_transfer.rb +1 -0
- data/lib/facebook_ads/ad_objects/ctx_default_optimization_config.rb +1 -0
- data/lib/facebook_ads/ad_objects/ctxdfo_objective_defaults.rb +27 -0
- data/lib/facebook_ads/ad_objects/custom_audience.rb +1 -0
- data/lib/facebook_ads/ad_objects/custom_audience_integrity_flags_and_appeal_status.rb +2 -0
- data/lib/facebook_ads/ad_objects/customer_elasticity_study_metrics.rb +25 -0
- data/lib/facebook_ads/ad_objects/guidance_lift_estimate.rb +29 -0
- data/lib/facebook_ads/ad_objects/ig_media.rb +1 -0
- data/lib/facebook_ads/ad_objects/ig_user.rb +7 -0
- data/lib/facebook_ads/ad_objects/ig_user_for_ig_only_api.rb +2 -1
- data/lib/facebook_ads/ad_objects/insights_value.rb +2 -0
- data/lib/facebook_ads/ad_objects/instagram_business_asset.rb +40 -0
- data/lib/facebook_ads/ad_objects/lead_gen_data_draft.rb +1 -0
- data/lib/facebook_ads/ad_objects/lead_gen_form_preview_details.rb +1 -0
- data/lib/facebook_ads/ad_objects/lead_gen_question_option.rb +1 -0
- data/lib/facebook_ads/ad_objects/{favorite_catalog.rb → marketing_messages_onboarding_status.rb} +5 -3
- data/lib/facebook_ads/ad_objects/media_copyright_attribution.rb +0 -1
- data/lib/facebook_ads/ad_objects/{fb_lite_to_nt_transitions.rb → messenger_call_permissions.rb} +2 -2
- data/lib/facebook_ads/ad_objects/messenger_call_settings.rb +1 -0
- data/lib/facebook_ads/ad_objects/open_bridge_configuration.rb +1 -0
- data/lib/facebook_ads/ad_objects/page.rb +47 -1
- data/lib/facebook_ads/ad_objects/{avatar_profile_picture.rb → partner_center_export_file.rb} +2 -1
- data/lib/facebook_ads/ad_objects/partnership_ads_identity.rb +1 -0
- data/lib/facebook_ads/ad_objects/product_catalog.rb +14 -0
- data/lib/facebook_ads/ad_objects/product_catalog_check_marketplace_partner_deals_status.rb +27 -0
- data/lib/facebook_ads/ad_objects/product_group.rb +2 -0
- data/lib/facebook_ads/ad_objects/product_item.rb +10 -1
- data/lib/facebook_ads/ad_objects/reach_frequency_prediction.rb +1 -1
- data/lib/facebook_ads/ad_objects/regional_regulation_identities.rb +2 -0
- data/lib/facebook_ads/ad_objects/server_side/attribution_data.rb +58 -4
- data/lib/facebook_ads/ad_objects/shadow_ig_user_collaboration_invites.rb +28 -0
- data/lib/facebook_ads/ad_objects/shop.rb +0 -1
- data/lib/facebook_ads/ad_objects/trending_topics_spec.rb +27 -0
- data/lib/facebook_ads/ad_objects/unified_thread.rb +1 -0
- data/lib/facebook_ads/ad_objects/user.rb +1 -6
- data/lib/facebook_ads/ad_objects/user_page_one_time_opt_in_token_settings.rb +1 -0
- data/lib/facebook_ads/ad_objects/video_copyright.rb +2 -0
- data/lib/facebook_ads/ad_objects/video_copyright_match.rb +1 -0
- data/lib/facebook_ads/ad_objects/whats_app_business_account.rb +50 -1
- data/lib/facebook_ads/ad_objects/whats_app_business_health_status.rb +1 -0
- data/lib/facebook_ads/version.rb +1 -1
- metadata +12 -5
@@ -195,6 +195,12 @@ module FacebookAds
|
|
195
195
|
end
|
196
196
|
end
|
197
197
|
|
198
|
+
has_edge :check_marketplace_partner_deals_status do |edge|
|
199
|
+
edge.get 'ProductCatalogCheckMarketplacePartnerDealsStatus' do |api|
|
200
|
+
api.has_param :session_id, 'string'
|
201
|
+
end
|
202
|
+
end
|
203
|
+
|
198
204
|
has_edge :check_marketplace_partner_sellers_status do |edge|
|
199
205
|
edge.get 'ProductCatalogCheckMarketplacePartnerSellersStatus' do |api|
|
200
206
|
api.has_param :session_id, 'string'
|
@@ -356,6 +362,12 @@ module FacebookAds
|
|
356
362
|
end
|
357
363
|
end
|
358
364
|
|
365
|
+
has_edge :marketplace_partner_deals_details do |edge|
|
366
|
+
edge.post 'ProductCatalog' do |api|
|
367
|
+
api.has_param :requests, 'hash'
|
368
|
+
end
|
369
|
+
end
|
370
|
+
|
359
371
|
has_edge :marketplace_partner_sellers_details do |edge|
|
360
372
|
edge.post 'ProductCatalog' do |api|
|
361
373
|
api.has_param :requests, 'hash'
|
@@ -497,6 +509,7 @@ module FacebookAds
|
|
497
509
|
api.has_param :iphone_app_store_id, 'int'
|
498
510
|
api.has_param :iphone_url, 'string'
|
499
511
|
api.has_param :launch_date, 'string'
|
512
|
+
api.has_param :live_special_price, 'string'
|
500
513
|
api.has_param :manufacturer_info, 'string'
|
501
514
|
api.has_param :manufacturer_part_number, 'string'
|
502
515
|
api.has_param :marked_for_product_launch, { enum: -> { ProductItem::MARKED_FOR_PRODUCT_LAUNCH }}
|
@@ -517,6 +530,7 @@ module FacebookAds
|
|
517
530
|
api.has_param :retailer_id, 'string'
|
518
531
|
api.has_param :retailer_product_group_id, 'string'
|
519
532
|
api.has_param :return_policy_days, 'int'
|
533
|
+
api.has_param :rich_text_description, 'string'
|
520
534
|
api.has_param :sale_price, 'int'
|
521
535
|
api.has_param :sale_price_end_date, 'datetime'
|
522
536
|
api.has_param :sale_price_start_date, 'datetime'
|
@@ -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 ProductCatalogCheckMarketplacePartnerDealsStatus < AdObject
|
17
|
+
|
18
|
+
field :errors, { list: 'object' }
|
19
|
+
field :session_id, 'string'
|
20
|
+
field :status, 'string'
|
21
|
+
has_no_id
|
22
|
+
has_no_get
|
23
|
+
has_no_post
|
24
|
+
has_no_delete
|
25
|
+
|
26
|
+
end
|
27
|
+
end
|
@@ -66,6 +66,7 @@ module FacebookAds
|
|
66
66
|
api.has_param :iphone_app_store_id, 'int'
|
67
67
|
api.has_param :iphone_url, 'string'
|
68
68
|
api.has_param :launch_date, 'string'
|
69
|
+
api.has_param :live_special_price, 'string'
|
69
70
|
api.has_param :manufacturer_part_number, 'string'
|
70
71
|
api.has_param :marked_for_product_launch, { enum: -> { ProductItem::MARKED_FOR_PRODUCT_LAUNCH }}
|
71
72
|
api.has_param :material, 'string'
|
@@ -83,6 +84,7 @@ module FacebookAds
|
|
83
84
|
api.has_param :quantity_to_sell_on_facebook, 'int'
|
84
85
|
api.has_param :retailer_id, 'string'
|
85
86
|
api.has_param :return_policy_days, 'int'
|
87
|
+
api.has_param :rich_text_description, 'string'
|
86
88
|
api.has_param :sale_price, 'int'
|
87
89
|
api.has_param :sale_price_end_date, 'datetime'
|
88
90
|
api.has_param :sale_price_start_date, 'datetime'
|
@@ -83,6 +83,11 @@ module FacebookAds
|
|
83
83
|
"oz",
|
84
84
|
]
|
85
85
|
|
86
|
+
STATUS = [
|
87
|
+
"PUBLISHED",
|
88
|
+
"STAGING",
|
89
|
+
]
|
90
|
+
|
86
91
|
VIDEO_FETCH_STATUS = [
|
87
92
|
"DIRECT_UPLOAD",
|
88
93
|
"FETCHED",
|
@@ -329,7 +334,6 @@ module FacebookAds
|
|
329
334
|
"COMMERCE_ACCOUNT_NOT_LEGALLY_COMPLIANT",
|
330
335
|
"CRAWLED_AVAILABILITY_MISMATCH",
|
331
336
|
"DA_DISABLED_BY_USER",
|
332
|
-
"DA_POLICY_UNFIT_FOR_AUDIENCE",
|
333
337
|
"DA_POLICY_VIOLATION",
|
334
338
|
"DELETED_ITEM",
|
335
339
|
"DIGITAL_GOODS_NOT_AVAILABLE_FOR_CHECKOUT",
|
@@ -393,6 +397,7 @@ module FacebookAds
|
|
393
397
|
"MARKETPLACE_DISABLED_BY_USER",
|
394
398
|
"MARKETPLACE_PARTNER_AUCTION_NO_BID_CLOSE_TIME",
|
395
399
|
"MARKETPLACE_PARTNER_CURRENCY_NOT_VALID",
|
400
|
+
"MARKETPLACE_PARTNER_DISTRIBUTION_DISABLED",
|
396
401
|
"MARKETPLACE_PARTNER_LISTING_COUNTRY_NOT_MATCH_CATALOG",
|
397
402
|
"MARKETPLACE_PARTNER_LISTING_LIMIT_EXCEEDED",
|
398
403
|
"MARKETPLACE_PARTNER_MISSING_LATLONG",
|
@@ -451,6 +456,7 @@ module FacebookAds
|
|
451
456
|
"QUALITY_ITEM_LINK_BROKEN",
|
452
457
|
"QUALITY_ITEM_LINK_REDIRECTING",
|
453
458
|
"RETAILER_ID_NOT_PROVIDED",
|
459
|
+
"RETAILER_ID_USED_BY_GROUP",
|
454
460
|
"SHOPIFY_INVALID_RETAILER_ID",
|
455
461
|
"SHOPIFY_ITEM_MISSING_SHIPPING_PROFILE",
|
456
462
|
"SHOPS_POLICY_VIOLATION",
|
@@ -786,6 +792,7 @@ module FacebookAds
|
|
786
792
|
field :invalidation_errors, { list: 'ProductItemInvalidationError' }
|
787
793
|
field :inventory, 'int'
|
788
794
|
field :is_bundle_hero, 'bool'
|
795
|
+
field :live_special_price, 'string'
|
789
796
|
field :manufacturer_info, 'string'
|
790
797
|
field :manufacturer_part_number, 'string'
|
791
798
|
field :marked_for_product_launch, 'string'
|
@@ -809,6 +816,7 @@ module FacebookAds
|
|
809
816
|
field :retailer_product_group_id, 'string'
|
810
817
|
field :review_rejection_reasons, { list: 'string' }
|
811
818
|
field :review_status, { enum: -> { REVIEW_STATUS }}
|
819
|
+
field :rich_text_description, 'string'
|
812
820
|
field :sale_price, 'string'
|
813
821
|
field :sale_price_end_date, 'string'
|
814
822
|
field :sale_price_start_date, 'string'
|
@@ -817,6 +825,7 @@ module FacebookAds
|
|
817
825
|
field :short_description, 'string'
|
818
826
|
field :size, 'string'
|
819
827
|
field :start_date, 'string'
|
828
|
+
field :status, { enum: -> { STATUS }}
|
820
829
|
field :tags, { list: 'string' }
|
821
830
|
field :url, 'string'
|
822
831
|
field :vendor_id, 'string'
|
@@ -136,6 +136,7 @@ module FacebookAds
|
|
136
136
|
field :timezone_id, 'int'
|
137
137
|
field :timezone_name, 'string'
|
138
138
|
field :topline_id, 'int'
|
139
|
+
field :trending_topics_spec, 'TrendingTopicsSpec'
|
139
140
|
field :video_view_length_constraint, 'int'
|
140
141
|
field :viewtag, 'string'
|
141
142
|
field :action, { enum: -> { ACTION }}
|
@@ -154,7 +155,6 @@ module FacebookAds
|
|
154
155
|
field :rf_prediction_id_to_release, 'string'
|
155
156
|
field :rf_prediction_id_to_share, 'string'
|
156
157
|
field :stop_time, 'int'
|
157
|
-
field :trending_topics_spec, 'hash'
|
158
158
|
has_no_post
|
159
159
|
has_no_delete
|
160
160
|
|
@@ -25,6 +25,8 @@ module FacebookAds
|
|
25
25
|
field :taiwan_finserv_payer, 'string'
|
26
26
|
field :taiwan_universal_beneficiary, 'string'
|
27
27
|
field :taiwan_universal_payer, 'string'
|
28
|
+
field :universal_beneficiary, 'string'
|
29
|
+
field :universal_payer, 'string'
|
28
30
|
has_no_id
|
29
31
|
has_no_get
|
30
32
|
has_no_post
|
@@ -49,6 +49,15 @@ module FacebookAds
|
|
49
49
|
# The share of value generated by this click-conversion pair that is attributed to Meta.
|
50
50
|
attr_accessor :attribution_value
|
51
51
|
|
52
|
+
# The attribution source to differentiate the source of the data, e.g. whether this is from AMM or Custom Attribution or any other sources.
|
53
|
+
attr_accessor :attribution_source
|
54
|
+
|
55
|
+
# The engagement type that caused the original credited conversion.
|
56
|
+
attr_accessor :touchpoint_type
|
57
|
+
|
58
|
+
# The time when the touchpoint event occurred with the ad that the install was credited to.
|
59
|
+
attr_accessor :touchpoint_ts
|
60
|
+
|
52
61
|
|
53
62
|
|
54
63
|
# @param [String] scope
|
@@ -60,7 +69,10 @@ module FacebookAds
|
|
60
69
|
# @param [String] attribution_model
|
61
70
|
# @param [String] attr_window
|
62
71
|
# @param [Float] attribution_value
|
63
|
-
|
72
|
+
# @param [String] attribution_source
|
73
|
+
# @param [String] touchpoint_type
|
74
|
+
# @param [Integer] touchpoint_ts
|
75
|
+
def initialize(scope: nil, visit_time: nil, ad_id: nil, adset_id: nil, campaign_id: nil, attribution_share: nil, attribution_model: nil, attr_window: nil, attribution_value: nil, attribution_source: nil, touchpoint_type: nil, touchpoint_ts: nil)
|
64
76
|
unless scope.nil?
|
65
77
|
self.scope = scope
|
66
78
|
end
|
@@ -88,6 +100,15 @@ module FacebookAds
|
|
88
100
|
unless attribution_value.nil?
|
89
101
|
self.attribution_value = attribution_value
|
90
102
|
end
|
103
|
+
unless attribution_source.nil?
|
104
|
+
self.attribution_source = attribution_source
|
105
|
+
end
|
106
|
+
unless touchpoint_type.nil?
|
107
|
+
self.touchpoint_type = touchpoint_type
|
108
|
+
end
|
109
|
+
unless touchpoint_ts.nil?
|
110
|
+
self.touchpoint_ts = touchpoint_ts
|
111
|
+
end
|
91
112
|
end
|
92
113
|
|
93
114
|
# build the object using the input hash
|
@@ -131,7 +152,19 @@ module FacebookAds
|
|
131
152
|
end
|
132
153
|
|
133
154
|
if attributes.has_key?(:'attribution_value')
|
134
|
-
self.
|
155
|
+
self.attribution_value = attributes[:'attribution_value']
|
156
|
+
end
|
157
|
+
|
158
|
+
if attributes.has_key?(:'attribution_source')
|
159
|
+
self.attribution_source = attributes[:'attribution_source']
|
160
|
+
end
|
161
|
+
|
162
|
+
if attributes.has_key?(:'touchpoint_type')
|
163
|
+
self.touchpoint_type = attributes[:'touchpoint_type']
|
164
|
+
end
|
165
|
+
|
166
|
+
if attributes.has_key?(:'touchpoint_ts')
|
167
|
+
self.touchpoint_ts = attributes[:'touchpoint_ts']
|
135
168
|
end
|
136
169
|
end
|
137
170
|
|
@@ -147,7 +180,10 @@ module FacebookAds
|
|
147
180
|
attribution_share == o.attribution_share &&
|
148
181
|
attribution_model == o.attribution_model &&
|
149
182
|
attr_window == o.attr_window &&
|
150
|
-
attribution_value == o.attribution_value
|
183
|
+
attribution_value == o.attribution_value &&
|
184
|
+
attribution_source == o.attribution_source &&
|
185
|
+
touchpoint_type == o.touchpoint_type &&
|
186
|
+
touchpoint_ts == o.touchpoint_ts
|
151
187
|
end
|
152
188
|
|
153
189
|
# @see the `==` method
|
@@ -159,7 +195,7 @@ module FacebookAds
|
|
159
195
|
# @return [Fixnum] Hash code
|
160
196
|
def hash
|
161
197
|
[
|
162
|
-
scope, visit_time, ad_id, adset_id, campaign_id, attribution_share, attribution_model, attr_window, attribution_value
|
198
|
+
scope, visit_time, ad_id, adset_id, campaign_id, attribution_share, attribution_model, attr_window, attribution_value, attribution_source, touchpoint_type, touchpoint_ts
|
163
199
|
].hash
|
164
200
|
end
|
165
201
|
|
@@ -192,6 +228,15 @@ module FacebookAds
|
|
192
228
|
unless attribution_value.nil?
|
193
229
|
hash['attribution_value'] = attribution_value
|
194
230
|
end
|
231
|
+
unless attribution_source.nil?
|
232
|
+
hash['attribution_source'] = attribution_source
|
233
|
+
end
|
234
|
+
unless touchpoint_type.nil?
|
235
|
+
hash['touchpoint_type'] = touchpoint_type
|
236
|
+
end
|
237
|
+
unless touchpoint_ts.nil?
|
238
|
+
hash['touchpoint_ts'] = touchpoint_ts
|
239
|
+
end
|
195
240
|
hash.to_s
|
196
241
|
end
|
197
242
|
|
@@ -226,6 +271,15 @@ module FacebookAds
|
|
226
271
|
unless attribution_value.nil?
|
227
272
|
hash['attribution_value'] = attribution_value
|
228
273
|
end
|
274
|
+
unless attribution_source.nil?
|
275
|
+
hash['attribution_source'] = attribution_source
|
276
|
+
end
|
277
|
+
unless touchpoint_type.nil?
|
278
|
+
hash['touchpoint_type'] = touchpoint_type
|
279
|
+
end
|
280
|
+
unless touchpoint_ts.nil?
|
281
|
+
hash['touchpoint_ts'] = touchpoint_ts
|
282
|
+
end
|
229
283
|
hash
|
230
284
|
end
|
231
285
|
|
@@ -0,0 +1,28 @@
|
|
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 ShadowIgUserCollaborationInvites < AdObject
|
17
|
+
|
18
|
+
field :caption, 'string'
|
19
|
+
field :media_id, 'string'
|
20
|
+
field :media_owner_username, 'string'
|
21
|
+
field :media_url, 'string'
|
22
|
+
has_no_id
|
23
|
+
has_no_get
|
24
|
+
has_no_post
|
25
|
+
has_no_delete
|
26
|
+
|
27
|
+
end
|
28
|
+
end
|
@@ -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 TrendingTopicsSpec < AdObject
|
17
|
+
|
18
|
+
field :is_all_trending, 'bool'
|
19
|
+
field :is_special_budget_alloc, 'bool'
|
20
|
+
field :trending_topics, { list: 'string' }
|
21
|
+
has_no_id
|
22
|
+
has_no_get
|
23
|
+
has_no_post
|
24
|
+
has_no_delete
|
25
|
+
|
26
|
+
end
|
27
|
+
end
|
@@ -38,7 +38,6 @@ module FacebookAds
|
|
38
38
|
|
39
39
|
field :about, 'string'
|
40
40
|
field :age_range, 'AgeRange'
|
41
|
-
field :avatar_2d_profile_picture, 'AvatarProfilePicture'
|
42
41
|
field :birthday, 'string'
|
43
42
|
field :client_business_id, 'string'
|
44
43
|
field :community, 'Group'
|
@@ -52,7 +51,6 @@ module FacebookAds
|
|
52
51
|
field :gender, 'string'
|
53
52
|
field :hometown, 'Page'
|
54
53
|
field :id, 'string'
|
55
|
-
field :id_for_avatars, 'string'
|
56
54
|
field :inspirational_people, { list: 'Experience' }
|
57
55
|
field :install_type, 'string'
|
58
56
|
field :installed, 'bool'
|
@@ -192,10 +190,6 @@ module FacebookAds
|
|
192
190
|
edge.get 'WhatsAppBusinessAccount'
|
193
191
|
end
|
194
192
|
|
195
|
-
has_edge :avatars do |edge|
|
196
|
-
edge.get 'Avatar'
|
197
|
-
end
|
198
|
-
|
199
193
|
has_edge :business_users do |edge|
|
200
194
|
edge.get 'BusinessUser'
|
201
195
|
end
|
@@ -222,6 +216,7 @@ module FacebookAds
|
|
222
216
|
has_edge :conversations do |edge|
|
223
217
|
edge.get 'UnifiedThread' do |api|
|
224
218
|
api.has_param :folder, 'string'
|
219
|
+
api.has_param :is_owner, 'bool'
|
225
220
|
api.has_param :platform, { enum: -> { UnifiedThread::PLATFORM }}
|
226
221
|
api.has_param :tags, { list: 'string' }
|
227
222
|
api.has_param :user_id, 'string'
|
@@ -16,6 +16,7 @@ module FacebookAds
|
|
16
16
|
class UserPageOneTimeOptInTokenSettings < AdObject
|
17
17
|
|
18
18
|
field :creation_timestamp, 'int'
|
19
|
+
field :custom_audience_ids, { list: 'string' }
|
19
20
|
field :next_eligible_time, 'int'
|
20
21
|
field :next_eligible_time_for_paid_messaging, 'int'
|
21
22
|
field :notification_messages_frequency, 'string'
|
@@ -28,8 +28,10 @@ module FacebookAds
|
|
28
28
|
|
29
29
|
|
30
30
|
field :content_category, 'string'
|
31
|
+
field :content_protect_protection_disabled_reason, 'string'
|
31
32
|
field :copyright_content_id, 'string'
|
32
33
|
field :creator, 'User'
|
34
|
+
field :disable_protection_by_content_protect_status, 'bool'
|
33
35
|
field :excluded_ownership_segments, { list: 'VideoCopyrightSegment' }
|
34
36
|
field :id, 'string'
|
35
37
|
field :in_conflict, 'bool'
|
@@ -40,6 +40,11 @@ module FacebookAds
|
|
40
40
|
"VIEW_TEMPLATES",
|
41
41
|
]
|
42
42
|
|
43
|
+
TYPE = [
|
44
|
+
"INTERACTIVE",
|
45
|
+
"TEXT",
|
46
|
+
]
|
47
|
+
|
43
48
|
CATEGORY = [
|
44
49
|
"AUTHENTICATION",
|
45
50
|
"MARKETING",
|
@@ -55,9 +60,15 @@ module FacebookAds
|
|
55
60
|
"POSITIONAL",
|
56
61
|
]
|
57
62
|
|
63
|
+
SEND_TYPE = [
|
64
|
+
"CAMPAIGN",
|
65
|
+
"DIRECT",
|
66
|
+
]
|
67
|
+
|
58
68
|
SUB_CATEGORY = [
|
59
69
|
"ORDER_DETAILS",
|
60
70
|
"ORDER_STATUS",
|
71
|
+
"RICH_ORDER_STATUS",
|
61
72
|
]
|
62
73
|
|
63
74
|
PROVIDER_NAME = [
|
@@ -127,6 +138,7 @@ module FacebookAds
|
|
127
138
|
api.has_param :metric_types, { list: { enum: %w{AVERAGE_DURATION COST COUNT UNKNOWN }} }
|
128
139
|
api.has_param :phone_numbers, { list: 'string' }
|
129
140
|
api.has_param :start, 'int'
|
141
|
+
api.has_param :tiers, { list: 'string' }
|
130
142
|
end
|
131
143
|
end
|
132
144
|
|
@@ -171,13 +183,36 @@ module FacebookAds
|
|
171
183
|
end
|
172
184
|
end
|
173
185
|
|
186
|
+
has_edge :group_analytics do |edge|
|
187
|
+
edge.get do |api|
|
188
|
+
api.has_param :end, 'datetime'
|
189
|
+
api.has_param :granularity, { enum: %w{DAILY }}
|
190
|
+
api.has_param :group_ids, { list: 'string' }
|
191
|
+
api.has_param :metric_types, { list: { enum: %w{CLICKS COST DELIVERED PARTICIPANTS_JOINED PARTICIPANTS_LEFT READ REPLIES SENT }} }
|
192
|
+
api.has_param :start, 'datetime'
|
193
|
+
end
|
194
|
+
end
|
195
|
+
|
196
|
+
has_edge :marketing_campaigns do |edge|
|
197
|
+
edge.get
|
198
|
+
end
|
199
|
+
|
174
200
|
has_edge :message_campaigns do |edge|
|
175
201
|
edge.get
|
176
202
|
end
|
177
203
|
|
204
|
+
has_edge :message_samples do |edge|
|
205
|
+
edge.post 'WhatsAppBusinessAccount' do |api|
|
206
|
+
api.has_param :interactive, 'hash'
|
207
|
+
api.has_param :text, 'hash'
|
208
|
+
api.has_param :type, { enum: -> { WhatsAppBusinessAccount::TYPE }}
|
209
|
+
end
|
210
|
+
end
|
211
|
+
|
178
212
|
has_edge :message_template_previews do |edge|
|
179
213
|
edge.get do |api|
|
180
214
|
api.has_param :add_security_recommendation, 'bool'
|
215
|
+
api.has_param :business_name, 'string'
|
181
216
|
api.has_param :button_types, { list: { enum: %w{OTP }} }
|
182
217
|
api.has_param :category, { enum: %w{AUTHENTICATION }}
|
183
218
|
api.has_param :code_expiration_minutes, 'int'
|
@@ -197,10 +232,12 @@ module FacebookAds
|
|
197
232
|
api.has_param :name, 'string'
|
198
233
|
api.has_param :name_or_content, 'string'
|
199
234
|
api.has_param :quality_score, { list: { enum: %w{GREEN RED UNKNOWN YELLOW }} }
|
235
|
+
api.has_param :source, { enum: %w{AUTO_GENERATED MANUAL }}
|
200
236
|
api.has_param :status, { list: { enum: %w{APPROVED ARCHIVED DELETED DISABLED IN_APPEAL LIMIT_EXCEEDED PAUSED PENDING PENDING_DELETION REJECTED }} }
|
201
237
|
end
|
202
238
|
edge.post 'WhatsAppBusinessAccount' do |api|
|
203
239
|
api.has_param :allow_category_change, 'bool'
|
240
|
+
api.has_param :bid_spec, 'hash'
|
204
241
|
api.has_param :category, { enum: -> { WhatsAppBusinessAccount::CATEGORY }}
|
205
242
|
api.has_param :components, { list: 'hash' }
|
206
243
|
api.has_param :cta_url_link_tracking_opted_out, 'bool'
|
@@ -213,6 +250,7 @@ module FacebookAds
|
|
213
250
|
api.has_param :message_send_ttl_seconds, 'int'
|
214
251
|
api.has_param :name, 'string'
|
215
252
|
api.has_param :parameter_format, { enum: -> { WhatsAppBusinessAccount::PARAMETER_FORMAT }}
|
253
|
+
api.has_param :send_type, { enum: -> { WhatsAppBusinessAccount::SEND_TYPE }}
|
216
254
|
api.has_param :sub_category, { enum: -> { WhatsAppBusinessAccount::SUB_CATEGORY }}
|
217
255
|
end
|
218
256
|
end
|
@@ -226,8 +264,10 @@ module FacebookAds
|
|
226
264
|
|
227
265
|
has_edge :migrate_message_templates do |edge|
|
228
266
|
edge.post 'WhatsAppBusinessAccount' do |api|
|
267
|
+
api.has_param :count, 'int'
|
229
268
|
api.has_param :page_number, 'int'
|
230
269
|
api.has_param :source_waba_id, 'string'
|
270
|
+
api.has_param :template_ids, { list: 'string' }
|
231
271
|
end
|
232
272
|
end
|
233
273
|
|
@@ -272,7 +312,7 @@ module FacebookAds
|
|
272
312
|
api.has_param :granularity, { enum: %w{DAILY HALF_HOUR MONTHLY }}
|
273
313
|
api.has_param :metric_types, { list: { enum: %w{COST VOLUME }} }
|
274
314
|
api.has_param :phone_numbers, { list: 'string' }
|
275
|
-
api.has_param :pricing_categories, { list: { enum: %w{AUTHENTICATION AUTHENTICATION_INTERNATIONAL GROUP_MARKETING GROUP_SERVICE GROUP_UTILITY MARKETING MARKETING_LITE SERVICE UTILITY }} }
|
315
|
+
api.has_param :pricing_categories, { list: { enum: %w{AUTHENTICATION AUTHENTICATION_INTERNATIONAL GROUP_MARKETING GROUP_MARKETING_LITE GROUP_SERVICE GROUP_UTILITY MARKETING MARKETING_LITE MARKETING_LITE_DYNAMIC SERVICE UTILITY }} }
|
276
316
|
api.has_param :pricing_types, { list: { enum: %w{FREE_CUSTOMER_SERVICE FREE_ENTRY_POINT FREE_GROUP_CUSTOMER_SERVICE REGULAR }} }
|
277
317
|
api.has_param :start, 'int'
|
278
318
|
api.has_param :tiers, { list: 'string' }
|
@@ -327,6 +367,7 @@ module FacebookAds
|
|
327
367
|
api.has_param :product_type, { enum: %w{CLOUD_API MARKETING_MESSAGES_LITE_API }}
|
328
368
|
api.has_param :start, 'datetime'
|
329
369
|
api.has_param :template_ids, { list: 'string' }
|
370
|
+
api.has_param :use_waba_timezone, 'bool'
|
330
371
|
end
|
331
372
|
end
|
332
373
|
|
@@ -367,10 +408,18 @@ module FacebookAds
|
|
367
408
|
end
|
368
409
|
|
369
410
|
has_edge :welcome_message_sequences do |edge|
|
411
|
+
edge.delete do |api|
|
412
|
+
api.has_param :sequence_id, 'string'
|
413
|
+
end
|
370
414
|
edge.get 'CtxPartnerAppWelcomeMessageFlow' do |api|
|
371
415
|
api.has_param :app_id, 'string'
|
372
416
|
api.has_param :sequence_id, 'string'
|
373
417
|
end
|
418
|
+
edge.post do |api|
|
419
|
+
api.has_param :name, 'string'
|
420
|
+
api.has_param :sequence_id, 'string'
|
421
|
+
api.has_param :welcome_message_sequence, 'object'
|
422
|
+
end
|
374
423
|
end
|
375
424
|
|
376
425
|
end
|
@@ -16,6 +16,7 @@ module FacebookAds
|
|
16
16
|
class WhatsAppBusinessHealthStatus < AdObject
|
17
17
|
|
18
18
|
field :additional_info, { list: 'string' }
|
19
|
+
field :can_receive_call_sip, 'string'
|
19
20
|
field :can_send_message, 'string'
|
20
21
|
field :entity_type, 'string'
|
21
22
|
field :errors, { list: 'object' }
|