facebookbusiness 21.0.2 → 22.0.1
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 +33 -3
- 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 +35 -0
- data/lib/facebook_ads/ad_objects/ad_account_amount_spent_history.rb +28 -0
- data/lib/facebook_ads/ad_objects/ad_account_delivery_estimate.rb +2 -0
- data/lib/facebook_ads/ad_objects/ad_account_live_video_advertiser.rb +2 -0
- data/lib/facebook_ads/ad_objects/ad_account_optimization_goals_aemv2_eligibility.rb +2 -0
- data/lib/facebook_ads/ad_objects/ad_account_spend_cap_change_history.rb +28 -0
- data/lib/facebook_ads/ad_objects/ad_account_targeting_unified.rb +3 -1
- data/lib/facebook_ads/ad_objects/ad_account_user_settings.rb +6 -0
- data/lib/facebook_ads/ad_objects/ad_asset_feed_spec.rb +5 -0
- data/lib/facebook_ads/ad_objects/ad_campaign_delivery_estimate.rb +2 -0
- data/lib/facebook_ads/ad_objects/ad_campaign_group_advantage_state.rb +28 -0
- data/lib/facebook_ads/ad_objects/ad_campaign_issues_info.rb +1 -0
- data/lib/facebook_ads/ad_objects/ad_creative.rb +5 -4
- data/lib/facebook_ads/ad_objects/ad_creative_branded_content_ads.rb +1 -0
- data/lib/facebook_ads/ad_objects/ad_creative_feature_customizations.rb +5 -0
- data/lib/facebook_ads/ad_objects/ad_creative_link_data_call_to_action.rb +3 -0
- data/lib/facebook_ads/ad_objects/ad_creative_object_story_spec.rb +1 -2
- data/lib/facebook_ads/ad_objects/ad_creative_regional_regulation_disclaimer.rb +5 -0
- data/lib/facebook_ads/ad_objects/ad_creative_sourcing_spec.rb +1 -0
- data/lib/facebook_ads/ad_objects/ad_promoted_object.rb +35 -0
- data/lib/facebook_ads/ad_objects/ad_rule_execution_spec.rb +1 -0
- data/lib/facebook_ads/ad_objects/ad_rule_history.rb +1 -0
- data/lib/facebook_ads/ad_objects/ad_set.rb +7 -1
- data/lib/facebook_ads/ad_objects/ad_video.rb +15 -23
- data/lib/facebook_ads/ad_objects/adgroup_issues_info.rb +1 -0
- data/lib/facebook_ads/ad_objects/{parent_catalog_report.rb → ads_eligibility.rb} +2 -3
- data/lib/facebook_ads/ad_objects/ads_insights.rb +25 -0
- data/lib/facebook_ads/ad_objects/{ads_data_partner.rb → ads_mcme_conversion.rb} +6 -2
- data/lib/facebook_ads/ad_objects/{ads_pixel_capi_setup_quality.rb → ads_pixel_capi_integration_quality.rb} +1 -1
- data/lib/facebook_ads/ad_objects/ads_quick_views.rb +2 -0
- data/lib/facebook_ads/ad_objects/ads_user_settings.rb +6 -0
- data/lib/facebook_ads/ad_objects/ads_value_adjustment_rule_collection.rb +8 -1
- data/lib/facebook_ads/ad_objects/album.rb +1 -0
- data/lib/facebook_ads/ad_objects/application.rb +16 -6
- data/lib/facebook_ads/ad_objects/audio_visual_reference_match.rb +1 -0
- data/lib/facebook_ads/ad_objects/automotive_model.rb +9 -0
- data/lib/facebook_ads/ad_objects/branded_content_shadow_ig_media_id.rb +1 -0
- data/lib/facebook_ads/ad_objects/business.rb +20 -10
- data/lib/facebook_ads/ad_objects/business_agreement.rb +1 -0
- data/lib/facebook_ads/ad_objects/business_asset_group.rb +1 -0
- data/lib/facebook_ads/ad_objects/business_asset_sharing_agreement.rb +1 -0
- data/lib/facebook_ads/ad_objects/business_owned_object_on_behalf_of_request.rb +1 -0
- data/lib/facebook_ads/ad_objects/campaign.rb +1 -0
- data/lib/facebook_ads/ad_objects/catalog_collection.rb +27 -0
- data/lib/facebook_ads/ad_objects/{domain.rb → catalog_content_version_config.rb} +2 -2
- data/lib/facebook_ads/ad_objects/copyright_reference_container.rb +1 -0
- data/lib/facebook_ads/ad_objects/{instagram_boostable_media_for_access_token.rb → creative_multicell_test_config.rb} +3 -3
- data/lib/facebook_ads/ad_objects/{instagram_video_metadata.rb → ctx_default_optimization_config.rb} +3 -4
- data/lib/facebook_ads/ad_objects/custom_audience.rb +11 -1
- data/lib/facebook_ads/ad_objects/custom_audience_health.rb +25 -0
- data/lib/facebook_ads/ad_objects/destination.rb +4 -0
- data/lib/facebook_ads/ad_objects/event.rb +1 -0
- data/lib/facebook_ads/ad_objects/fb_image_copyright_match.rb +1 -0
- data/lib/facebook_ads/ad_objects/flight.rb +15 -0
- data/lib/facebook_ads/ad_objects/funding_source_details_coupon.rb +1 -0
- data/lib/facebook_ads/ad_objects/funding_source_details_coupon_tiering.rb +26 -0
- data/lib/facebook_ads/ad_objects/group.rb +1 -0
- data/lib/facebook_ads/ad_objects/home_listing.rb +11 -0
- data/lib/facebook_ads/ad_objects/hotel.rb +10 -0
- data/lib/facebook_ads/ad_objects/ig_media_for_ig_only_api.rb +1 -0
- data/lib/facebook_ads/ad_objects/ig_user.rb +28 -0
- data/lib/facebook_ads/ad_objects/ig_user_for_ig_only_api.rb +17 -1
- data/lib/facebook_ads/ad_objects/insights_result.rb +17 -0
- data/lib/facebook_ads/ad_objects/insights_value.rb +2 -0
- data/lib/facebook_ads/ad_objects/instagram_insights_result.rb +1 -0
- data/lib/facebook_ads/ad_objects/lead_gen_form_preview_details.rb +5 -0
- data/lib/facebook_ads/ad_objects/message_delivery_estimate.rb +2 -0
- data/lib/facebook_ads/ad_objects/messenger_business_template.rb +2 -0
- data/lib/facebook_ads/ad_objects/music_work_copyright.rb +2 -0
- data/lib/facebook_ads/ad_objects/open_bridge_configuration.rb +0 -2
- data/lib/facebook_ads/ad_objects/page.rb +35 -29
- data/lib/facebook_ads/ad_objects/page_call_to_action.rb +1 -0
- data/lib/facebook_ads/ad_objects/page_change_proposal.rb +0 -2
- data/lib/facebook_ads/ad_objects/product_catalog.rb +5 -0
- data/lib/facebook_ads/ad_objects/product_item.rb +2 -0
- data/lib/facebook_ads/ad_objects/reach_frequency_prediction.rb +3 -3
- data/lib/facebook_ads/ad_objects/recommended_ig_media.rb +0 -1
- data/lib/facebook_ads/ad_objects/regional_regulation_identities.rb +6 -0
- data/lib/facebook_ads/ad_objects/{private_computation_environment.rb → store_location.rb} +8 -6
- data/lib/facebook_ads/ad_objects/targeting_subscriber_universe.rb +27 -0
- data/lib/facebook_ads/ad_objects/third_party_partner_lift_request.rb +3 -0
- data/lib/facebook_ads/ad_objects/threads_user.rb +26 -0
- data/lib/facebook_ads/ad_objects/user.rb +9 -2
- data/lib/facebook_ads/ad_objects/vehicle.rb +10 -0
- data/lib/facebook_ads/ad_objects/vehicle_offer.rb +11 -0
- data/lib/facebook_ads/ad_objects/video_copyright_match.rb +1 -0
- data/lib/facebook_ads/ad_objects/whats_app_business_account.rb +40 -7
- data/lib/facebook_ads/ad_objects/whats_app_business_partner_client_verification_submission.rb +1 -0
- data/lib/facebook_ads/version.rb +2 -2
- data/lib/facebook_ads.rb +2 -2
- metadata +21 -21
- data/lib/facebook_ads/ad_objects/instagram_carousel.rb +0 -41
- data/lib/facebook_ads/ad_objects/instagram_comment.rb +0 -37
- data/lib/facebook_ads/ad_objects/instagram_media.rb +0 -46
- data/lib/facebook_ads/ad_objects/marketing_message_targeting.rb +0 -29
- data/lib/facebook_ads/ad_objects/merchant_report.rb +0 -39
- data/lib/facebook_ads/ad_objects/negative_keyword_list.rb +0 -33
- data/lib/facebook_ads/ad_objects/product_catalog_user_permissions.rb +0 -34
- data/lib/facebook_ads/ad_objects/video_metrics_report.rb +0 -33
@@ -21,7 +21,9 @@ module FacebookAds
|
|
21
21
|
field :displayed_fb_matches_count, 'int'
|
22
22
|
field :displayed_ig_matches_count, 'int'
|
23
23
|
field :displayed_matches_count, 'int'
|
24
|
+
field :has_rev_share_eligible_isrcs, 'bool'
|
24
25
|
field :id, 'string'
|
26
|
+
field :is_linking_required_to_monetize_for_manual_claim, 'bool'
|
25
27
|
field :match_rule, 'VideoCopyrightRule'
|
26
28
|
field :status, 'string'
|
27
29
|
field :tags, { list: 'string' }
|
@@ -21,10 +21,8 @@ module FacebookAds
|
|
21
21
|
field :destination_id, 'string'
|
22
22
|
field :endpoint, 'string'
|
23
23
|
field :fallback_domain, 'string'
|
24
|
-
field :fallback_domain_enabled, 'bool'
|
25
24
|
field :first_party_domain, 'string'
|
26
25
|
field :host_business_id, 'string'
|
27
|
-
field :host_external_id, 'string'
|
28
26
|
field :id, 'string'
|
29
27
|
field :instance_id, 'string'
|
30
28
|
field :instance_version, 'string'
|
@@ -80,6 +80,17 @@ module FacebookAds
|
|
80
80
|
"Vietnamese",
|
81
81
|
]
|
82
82
|
|
83
|
+
GEN_AI_PROVENANCE_TYPE = [
|
84
|
+
"C2PA",
|
85
|
+
"C2PA_METADATA_EDITED",
|
86
|
+
"EXPLICIT",
|
87
|
+
"EXPLICIT_IMAGINE",
|
88
|
+
"EXPLICIT_IMAGINE_ME",
|
89
|
+
"INVISIBLE_WATERMARK",
|
90
|
+
"IPTC",
|
91
|
+
"IPTC_METADATA_EDITED",
|
92
|
+
]
|
93
|
+
|
83
94
|
PICKUP_OPTIONS = [
|
84
95
|
"CURBSIDE",
|
85
96
|
"IN_STORE",
|
@@ -98,6 +109,7 @@ module FacebookAds
|
|
98
109
|
"ANALYZE",
|
99
110
|
"CASHIER_ROLE",
|
100
111
|
"CREATE_CONTENT",
|
112
|
+
"GLOBAL_STRUCTURE_MANAGEMENT",
|
101
113
|
"MANAGE",
|
102
114
|
"MANAGE_JOBS",
|
103
115
|
"MANAGE_LEADS",
|
@@ -126,6 +138,7 @@ module FacebookAds
|
|
126
138
|
"ANALYZE",
|
127
139
|
"CASHIER_ROLE",
|
128
140
|
"CREATE_CONTENT",
|
141
|
+
"GLOBAL_STRUCTURE_MANAGEMENT",
|
129
142
|
"MANAGE",
|
130
143
|
"MANAGE_JOBS",
|
131
144
|
"MANAGE_LEADS",
|
@@ -232,6 +245,14 @@ module FacebookAds
|
|
232
245
|
"MESSENGER",
|
233
246
|
]
|
234
247
|
|
248
|
+
ACTIONS = [
|
249
|
+
"BAN_USER",
|
250
|
+
"BLOCK_USER",
|
251
|
+
"MOVE_TO_SPAM",
|
252
|
+
"UNBAN_USER",
|
253
|
+
"UNBLOCK_USER",
|
254
|
+
]
|
255
|
+
|
235
256
|
MODEL = [
|
236
257
|
"ARABIC",
|
237
258
|
"CHINESE",
|
@@ -297,6 +318,7 @@ module FacebookAds
|
|
297
318
|
"live_videos",
|
298
319
|
"local_delivery",
|
299
320
|
"location",
|
321
|
+
"marketing_message_delivery_failed",
|
300
322
|
"mcom_invoice_change",
|
301
323
|
"members",
|
302
324
|
"mention",
|
@@ -308,6 +330,7 @@ module FacebookAds
|
|
308
330
|
"message_mention",
|
309
331
|
"message_reactions",
|
310
332
|
"message_reads",
|
333
|
+
"message_template_status_update",
|
311
334
|
"messages",
|
312
335
|
"messaging_account_linking",
|
313
336
|
"messaging_appointments",
|
@@ -355,14 +378,6 @@ module FacebookAds
|
|
355
378
|
"website",
|
356
379
|
]
|
357
380
|
|
358
|
-
ACTION = [
|
359
|
-
"SPAM",
|
360
|
-
]
|
361
|
-
|
362
|
-
ACTION_TYPE = [
|
363
|
-
"REPORT_THREAD",
|
364
|
-
]
|
365
|
-
|
366
381
|
|
367
382
|
field :about, 'string'
|
368
383
|
field :access_token, 'string'
|
@@ -1053,7 +1068,6 @@ module FacebookAds
|
|
1053
1068
|
edge.post 'Page' do |api|
|
1054
1069
|
api.has_param :category, { enum: -> { Page::CATEGORY }}
|
1055
1070
|
api.has_param :components, { list: 'hash' }
|
1056
|
-
api.has_param :example, 'hash'
|
1057
1071
|
api.has_param :language, 'string'
|
1058
1072
|
api.has_param :library_template_button_inputs, { list: 'hash' }
|
1059
1073
|
api.has_param :library_template_name, 'string'
|
@@ -1129,6 +1143,13 @@ module FacebookAds
|
|
1129
1143
|
end
|
1130
1144
|
end
|
1131
1145
|
|
1146
|
+
has_edge :moderate_conversations do |edge|
|
1147
|
+
edge.post 'Page' do |api|
|
1148
|
+
api.has_param :actions, { list: { enum: -> { Page::ACTIONS }} }
|
1149
|
+
api.has_param :user_ids, { list: 'hash' }
|
1150
|
+
end
|
1151
|
+
end
|
1152
|
+
|
1132
1153
|
has_edge :nlp_configs do |edge|
|
1133
1154
|
edge.post 'Page' do |api|
|
1134
1155
|
api.has_param :api_version, 'object'
|
@@ -1172,14 +1193,6 @@ module FacebookAds
|
|
1172
1193
|
end
|
1173
1194
|
end
|
1174
1195
|
|
1175
|
-
has_edge :pass_thread_metadata do |edge|
|
1176
|
-
edge.post 'Page' do |api|
|
1177
|
-
api.has_param :metadata, 'string'
|
1178
|
-
api.has_param :recipient, 'object'
|
1179
|
-
api.has_param :target_app_id, 'int'
|
1180
|
-
end
|
1181
|
-
end
|
1182
|
-
|
1183
1196
|
has_edge :personas do |edge|
|
1184
1197
|
edge.get 'Persona'
|
1185
1198
|
edge.post 'Persona' do |api|
|
@@ -1239,6 +1252,7 @@ module FacebookAds
|
|
1239
1252
|
api.has_param :place, 'object'
|
1240
1253
|
api.has_param :privacy, 'string'
|
1241
1254
|
api.has_param :profile_id, 'int'
|
1255
|
+
api.has_param :provenance_info, 'hash'
|
1242
1256
|
api.has_param :proxied_app_id, 'string'
|
1243
1257
|
api.has_param :published, 'bool'
|
1244
1258
|
api.has_param :qn, 'string'
|
@@ -1319,10 +1333,6 @@ module FacebookAds
|
|
1319
1333
|
end
|
1320
1334
|
end
|
1321
1335
|
|
1322
|
-
has_edge :ratings do |edge|
|
1323
|
-
edge.get 'Recommendation'
|
1324
|
-
end
|
1325
|
-
|
1326
1336
|
has_edge :release_thread_control do |edge|
|
1327
1337
|
edge.post 'Page' do |api|
|
1328
1338
|
api.has_param :recipient, 'object'
|
@@ -1368,6 +1378,10 @@ module FacebookAds
|
|
1368
1378
|
edge.get 'CommerceMerchantSettingsSetupStatus'
|
1369
1379
|
end
|
1370
1380
|
|
1381
|
+
has_edge :store_locations do |edge|
|
1382
|
+
edge.get 'StoreLocation'
|
1383
|
+
end
|
1384
|
+
|
1371
1385
|
has_edge :stories do |edge|
|
1372
1386
|
edge.get 'Stories' do |api|
|
1373
1387
|
api.has_param :since, 'datetime'
|
@@ -1401,14 +1415,6 @@ module FacebookAds
|
|
1401
1415
|
end
|
1402
1416
|
end
|
1403
1417
|
|
1404
|
-
has_edge :thread_action do |edge|
|
1405
|
-
edge.post 'Page' do |api|
|
1406
|
-
api.has_param :action, { enum: -> { Page::ACTION }}
|
1407
|
-
api.has_param :action_type, { enum: -> { Page::ACTION_TYPE }}
|
1408
|
-
api.has_param :user_id, 'hash'
|
1409
|
-
end
|
1410
|
-
end
|
1411
|
-
|
1412
1418
|
has_edge :thread_owner do |edge|
|
1413
1419
|
edge.get 'PageThreadOwner' do |api|
|
1414
1420
|
api.has_param :recipient, 'string'
|
@@ -17,9 +17,7 @@ module FacebookAds
|
|
17
17
|
|
18
18
|
field :acceptance_status, 'string'
|
19
19
|
field :category, 'string'
|
20
|
-
field :current_value, 'string'
|
21
20
|
field :id, 'string'
|
22
|
-
field :proposed_value, 'string'
|
23
21
|
field :upcoming_change_info, 'PageUpcomingChange'
|
24
22
|
has_no_get
|
25
23
|
has_no_post
|
@@ -108,6 +108,7 @@ module FacebookAds
|
|
108
108
|
field :user_access_expire_time, 'datetime'
|
109
109
|
field :vertical, 'string'
|
110
110
|
field :additional_vertical_option, { enum: -> { ADDITIONAL_VERTICAL_OPTION }}
|
111
|
+
field :business_metadata, 'hash'
|
111
112
|
field :catalog_segment_filter, 'object'
|
112
113
|
field :catalog_segment_product_set_id, 'string'
|
113
114
|
field :destination_catalog_settings, 'hash'
|
@@ -540,6 +541,10 @@ module FacebookAds
|
|
540
541
|
end
|
541
542
|
end
|
542
543
|
|
544
|
+
has_edge :version_configs do |edge|
|
545
|
+
edge.get 'CatalogContentVersionConfig'
|
546
|
+
end
|
547
|
+
|
543
548
|
has_edge :version_items_batch do |edge|
|
544
549
|
edge.post 'ProductCatalog' do |api|
|
545
550
|
api.has_param :allow_upsert, 'bool'
|
@@ -390,6 +390,7 @@ module FacebookAds
|
|
390
390
|
"ITEM_PRICE_NOT_POSITIVE",
|
391
391
|
"ITEM_STALE_OUT_OF_STOCK",
|
392
392
|
"MARKETPLACE_DISABLED_BY_USER",
|
393
|
+
"MARKETPLACE_PARTNER_AUCTION_NO_BID_CLOSE_TIME",
|
393
394
|
"MARKETPLACE_PARTNER_LISTING_LIMIT_EXCEEDED",
|
394
395
|
"MARKETPLACE_PARTNER_NOT_LOCAL_ITEM",
|
395
396
|
"MARKETPLACE_PARTNER_NOT_SHIPPED_ITEM",
|
@@ -792,6 +793,7 @@ module FacebookAds
|
|
792
793
|
field :product_feed, 'ProductFeed'
|
793
794
|
field :product_group, 'ProductGroup'
|
794
795
|
field :product_local_info, 'ProductItemLocalInfo'
|
796
|
+
field :product_relationship, 'string'
|
795
797
|
field :product_type, 'string'
|
796
798
|
field :quantity_to_sell_on_facebook, 'int'
|
797
799
|
field :retailer_id, 'string'
|
@@ -100,6 +100,7 @@ module FacebookAds
|
|
100
100
|
field :instream_packages, { list: 'string' }
|
101
101
|
field :interval_frequency_cap, 'int'
|
102
102
|
field :interval_frequency_cap_reset_period, 'int'
|
103
|
+
field :is_balanced_frequency, 'bool'
|
103
104
|
field :is_bonus_media, 'int'
|
104
105
|
field :is_conversion_goal, 'int'
|
105
106
|
field :is_higher_average_frequency, 'bool'
|
@@ -127,6 +128,8 @@ module FacebookAds
|
|
127
128
|
field :status, 'int'
|
128
129
|
field :story_event_type, 'int'
|
129
130
|
field :target_cpm, 'int'
|
131
|
+
field :target_frequency, 'int'
|
132
|
+
field :target_frequency_reset_period, 'int'
|
130
133
|
field :target_spec, 'Targeting'
|
131
134
|
field :time_created, 'datetime'
|
132
135
|
field :time_updated, 'datetime'
|
@@ -143,7 +146,6 @@ module FacebookAds
|
|
143
146
|
field :existing_campaign_id, 'string'
|
144
147
|
field :grp_buying, 'bool'
|
145
148
|
field :impression, 'int'
|
146
|
-
field :is_balanced_frequency, 'bool'
|
147
149
|
field :is_full_view, 'bool'
|
148
150
|
field :is_reach_and_frequency_io_buying, 'bool'
|
149
151
|
field :num_curve_points, 'int'
|
@@ -152,8 +154,6 @@ module FacebookAds
|
|
152
154
|
field :rf_prediction_id_to_release, 'string'
|
153
155
|
field :rf_prediction_id_to_share, 'string'
|
154
156
|
field :stop_time, 'int'
|
155
|
-
field :target_frequency, 'int'
|
156
|
-
field :target_frequency_reset_period, 'int'
|
157
157
|
has_no_post
|
158
158
|
has_no_delete
|
159
159
|
|
@@ -17,8 +17,14 @@ module FacebookAds
|
|
17
17
|
|
18
18
|
field :australia_finserv_beneficiary, 'string'
|
19
19
|
field :australia_finserv_payer, 'string'
|
20
|
+
field :india_finserv_beneficiary, 'string'
|
21
|
+
field :india_finserv_payer, 'string'
|
22
|
+
field :singapore_universal_beneficiary, 'string'
|
23
|
+
field :singapore_universal_payer, 'string'
|
20
24
|
field :taiwan_finserv_beneficiary, 'string'
|
21
25
|
field :taiwan_finserv_payer, 'string'
|
26
|
+
field :taiwan_universal_beneficiary, 'string'
|
27
|
+
field :taiwan_universal_payer, 'string'
|
22
28
|
has_no_id
|
23
29
|
has_no_get
|
24
30
|
has_no_post
|
@@ -13,14 +13,16 @@ module FacebookAds
|
|
13
13
|
# on github and we'll fix in our codegen framework. We'll not be able to accept
|
14
14
|
# pull request for this class.
|
15
15
|
|
16
|
-
class
|
16
|
+
class StoreLocation < AdObject
|
17
17
|
|
18
|
-
field :
|
19
|
-
field :
|
20
|
-
field :publisher_pce_id, 'string'
|
21
|
-
field :publisher_region, 'string'
|
22
|
-
field :publisher_vpc_id, 'string'
|
18
|
+
field :full_address, 'string'
|
19
|
+
field :hours, 'object'
|
23
20
|
field :id, 'string'
|
21
|
+
field :phone_number, 'string'
|
22
|
+
field :pickup_options, { list: 'string' }
|
23
|
+
field :price_range, 'string'
|
24
|
+
field :store_code, 'string'
|
25
|
+
field :zip_code, 'string'
|
24
26
|
has_no_post
|
25
27
|
has_no_delete
|
26
28
|
|
@@ -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 TargetingSubscriberUniverse < AdObject
|
17
|
+
|
18
|
+
field :messenger_subscriber_source, 'IdName'
|
19
|
+
field :whatsapp_subscriber_pool, 'IdName'
|
20
|
+
field :whatsapp_subscriber_source, 'IdName'
|
21
|
+
has_no_id
|
22
|
+
has_no_get
|
23
|
+
has_no_post
|
24
|
+
has_no_delete
|
25
|
+
|
26
|
+
end
|
27
|
+
end
|
@@ -29,8 +29,11 @@ module FacebookAds
|
|
29
29
|
field :description, 'string'
|
30
30
|
field :holdout_size, 'double'
|
31
31
|
field :id, 'string'
|
32
|
+
field :legacy_ads_data_partner_id, 'string'
|
33
|
+
field :legacy_ads_data_partner_name, 'string'
|
32
34
|
field :modified_time, 'datetime'
|
33
35
|
field :owner_instance_id, 'string'
|
36
|
+
field :partner_household_graph_dataset_id, 'string'
|
34
37
|
field :region, 'string'
|
35
38
|
field :status, { enum: -> { STATUS }}
|
36
39
|
field :study_cells, { list: 'string' }
|
@@ -0,0 +1,26 @@
|
|
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 ThreadsUser < AdObject
|
17
|
+
|
18
|
+
field :threads_user_id, 'string'
|
19
|
+
field :threads_user_profile_pic, 'string'
|
20
|
+
has_no_id
|
21
|
+
has_no_get
|
22
|
+
has_no_post
|
23
|
+
has_no_delete
|
24
|
+
|
25
|
+
end
|
26
|
+
end
|
@@ -366,9 +366,9 @@ module FacebookAds
|
|
366
366
|
api.has_param :cover_photo, 'file'
|
367
367
|
api.has_param :currency, 'string'
|
368
368
|
api.has_param :description, 'string'
|
369
|
-
api.has_param :end_time, '
|
369
|
+
api.has_param :end_time, 'datetime'
|
370
370
|
api.has_param :external_event_name, 'string'
|
371
|
-
api.has_param :external_event_start_time, '
|
371
|
+
api.has_param :external_event_start_time, 'datetime'
|
372
372
|
api.has_param :external_event_uri, 'string'
|
373
373
|
api.has_param :external_fundraiser_uri, 'string'
|
374
374
|
api.has_param :external_id, 'string'
|
@@ -443,6 +443,12 @@ module FacebookAds
|
|
443
443
|
edge.post 'User'
|
444
444
|
end
|
445
445
|
|
446
|
+
has_edge :messenger_kids_accounts_unread_badge do |edge|
|
447
|
+
edge.post 'User' do |api|
|
448
|
+
api.has_param :proxied_app_id, 'int'
|
449
|
+
end
|
450
|
+
end
|
451
|
+
|
446
452
|
has_edge :music do |edge|
|
447
453
|
edge.get 'Page' do |api|
|
448
454
|
api.has_param :target_id, 'string'
|
@@ -525,6 +531,7 @@ module FacebookAds
|
|
525
531
|
api.has_param :place, 'object'
|
526
532
|
api.has_param :privacy, 'string'
|
527
533
|
api.has_param :profile_id, 'int'
|
534
|
+
api.has_param :provenance_info, 'hash'
|
528
535
|
api.has_param :proxied_app_id, 'string'
|
529
536
|
api.has_param :published, 'bool'
|
530
537
|
api.has_param :qn, 'string'
|
@@ -125,6 +125,15 @@ module FacebookAds
|
|
125
125
|
field :condition, 'string'
|
126
126
|
field :currency, 'string'
|
127
127
|
field :custom_label_0, 'string'
|
128
|
+
field :custom_label_1, 'string'
|
129
|
+
field :custom_label_2, 'string'
|
130
|
+
field :custom_label_3, 'string'
|
131
|
+
field :custom_label_4, 'string'
|
132
|
+
field :custom_number_0, 'int'
|
133
|
+
field :custom_number_1, 'int'
|
134
|
+
field :custom_number_2, 'int'
|
135
|
+
field :custom_number_3, 'int'
|
136
|
+
field :custom_number_4, 'int'
|
128
137
|
field :date_first_on_lot, 'string'
|
129
138
|
field :dealer_communication_channel, 'string'
|
130
139
|
field :dealer_email, 'string'
|
@@ -158,6 +167,7 @@ module FacebookAds
|
|
158
167
|
field :sale_price, 'string'
|
159
168
|
field :sanitized_images, { list: 'string' }
|
160
169
|
field :state_of_vehicle, 'string'
|
170
|
+
field :tags, { list: 'string' }
|
161
171
|
field :title, 'string'
|
162
172
|
field :transmission, 'string'
|
163
173
|
field :trim, 'string'
|
@@ -40,6 +40,16 @@ module FacebookAds
|
|
40
40
|
field :cashback_price, 'string'
|
41
41
|
field :category_specific_fields, 'CatalogSubVerticalList'
|
42
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 :custom_number_0, 'int'
|
49
|
+
field :custom_number_1, 'int'
|
50
|
+
field :custom_number_2, 'int'
|
51
|
+
field :custom_number_3, 'int'
|
52
|
+
field :custom_number_4, 'int'
|
43
53
|
field :dma_codes, { list: 'string' }
|
44
54
|
field :downpayment_currency, 'string'
|
45
55
|
field :downpayment_price, 'string'
|
@@ -69,6 +79,7 @@ module FacebookAds
|
|
69
79
|
field :sanitized_images, { list: 'string' }
|
70
80
|
field :start_date, 'string'
|
71
81
|
field :start_time, 'int'
|
82
|
+
field :tags, { list: 'string' }
|
72
83
|
field :term_length, 'int'
|
73
84
|
field :term_qualifier, 'string'
|
74
85
|
field :title, 'string'
|
@@ -80,6 +80,7 @@ module FacebookAds
|
|
80
80
|
field :id, 'string'
|
81
81
|
field :is_enabled_for_insights, 'bool'
|
82
82
|
field :linked_commerce_account, 'CommerceMerchantSettings'
|
83
|
+
field :marketing_messages_lite_api_status, 'string'
|
83
84
|
field :message_template_namespace, 'string'
|
84
85
|
field :name, 'string'
|
85
86
|
field :on_behalf_of_business_info, 'object'
|
@@ -149,17 +150,15 @@ module FacebookAds
|
|
149
150
|
end
|
150
151
|
end
|
151
152
|
|
152
|
-
has_edge :dcc_config do |edge|
|
153
|
-
edge.get
|
154
|
-
end
|
155
|
-
|
156
153
|
has_edge :flows do |edge|
|
157
154
|
edge.get
|
158
155
|
edge.post do |api|
|
159
156
|
api.has_param :categories, { list: { enum: %w{APPOINTMENT_BOOKING CONTACT_US CUSTOMER_SUPPORT LEAD_GENERATION OTHER SHOPPING SIGN_IN SIGN_UP SURVEY }} }
|
160
157
|
api.has_param :clone_flow_id, 'string'
|
161
158
|
api.has_param :endpoint_uri, 'string'
|
159
|
+
api.has_param :flow_json, 'string'
|
162
160
|
api.has_param :name, 'string'
|
161
|
+
api.has_param :publish, 'bool'
|
163
162
|
end
|
164
163
|
end
|
165
164
|
|
@@ -217,8 +216,7 @@ module FacebookAds
|
|
217
216
|
|
218
217
|
has_edge :migrate_flows do |edge|
|
219
218
|
edge.post 'WhatsAppBusinessAccount' do |api|
|
220
|
-
api.has_param :
|
221
|
-
api.has_param :source_flow_ids, { list: 'string' }
|
219
|
+
api.has_param :source_flow_names, { list: 'string' }
|
222
220
|
api.has_param :source_waba_id, 'string'
|
223
221
|
end
|
224
222
|
end
|
@@ -239,6 +237,7 @@ module FacebookAds
|
|
239
237
|
end
|
240
238
|
edge.post 'WhatsAppBusinessAccount' do |api|
|
241
239
|
api.has_param :configuration_name, 'string'
|
240
|
+
api.has_param :data_endpoint_url, 'string'
|
242
241
|
api.has_param :merchant_category_code, 'string'
|
243
242
|
api.has_param :merchant_vpa, 'string'
|
244
243
|
api.has_param :provider_name, { enum: -> { WhatsAppBusinessAccount::PROVIDER_NAME }}
|
@@ -262,6 +261,20 @@ module FacebookAds
|
|
262
261
|
end
|
263
262
|
end
|
264
263
|
|
264
|
+
has_edge :pricing_analytics do |edge|
|
265
|
+
edge.get do |api|
|
266
|
+
api.has_param :country_codes, { list: 'string' }
|
267
|
+
api.has_param :dimensions, { list: { enum: %w{COUNTRY PHONE PRICING_CATEGORY PRICING_TYPE }} }
|
268
|
+
api.has_param :end, 'int'
|
269
|
+
api.has_param :granularity, { enum: %w{DAILY HALF_HOUR MONTHLY }}
|
270
|
+
api.has_param :metric_types, { list: { enum: %w{COST VOLUME }} }
|
271
|
+
api.has_param :phone_numbers, { list: 'string' }
|
272
|
+
api.has_param :pricing_categories, { list: { enum: %w{AUTHENTICATION AUTHENTICATION_INTERNATIONAL MARKETING MARKETING_LITE SERVICE UTILITY }} }
|
273
|
+
api.has_param :pricing_types, { list: { enum: %w{FREE_CUSTOMER_SERVICE FREE_ENTRY_POINT REGULAR }} }
|
274
|
+
api.has_param :start, 'int'
|
275
|
+
end
|
276
|
+
end
|
277
|
+
|
265
278
|
has_edge :product_catalogs do |edge|
|
266
279
|
edge.delete do |api|
|
267
280
|
api.has_param :catalog_id, 'string'
|
@@ -284,6 +297,7 @@ module FacebookAds
|
|
284
297
|
|
285
298
|
has_edge :set_solution_migration_intent do |edge|
|
286
299
|
edge.post do |api|
|
300
|
+
api.has_param :app_id, 'string'
|
287
301
|
api.has_param :solution_id, 'string'
|
288
302
|
end
|
289
303
|
end
|
@@ -305,13 +319,32 @@ module FacebookAds
|
|
305
319
|
edge.get do |api|
|
306
320
|
api.has_param :end, 'datetime'
|
307
321
|
api.has_param :granularity, { enum: %w{DAILY }}
|
308
|
-
api.has_param :metric_types, { list: { enum: %w{CLICKED COST DELIVERED READ SENT }} }
|
322
|
+
api.has_param :metric_types, { list: { enum: %w{CLICKED COST DELIVERED READ REPLIED SENT }} }
|
309
323
|
api.has_param :product_type, { enum: %w{CLOUD_API MARKETING_MESSAGES_LITE_API }}
|
310
324
|
api.has_param :start, 'datetime'
|
311
325
|
api.has_param :template_ids, { list: 'string' }
|
312
326
|
end
|
313
327
|
end
|
314
328
|
|
329
|
+
has_edge :template_group_analytics do |edge|
|
330
|
+
edge.get do |api|
|
331
|
+
api.has_param :end, 'datetime'
|
332
|
+
api.has_param :granularity, { enum: %w{DAILY }}
|
333
|
+
api.has_param :metric_types, { list: { enum: %w{CLICKED COST DELIVERED READ REPLIED SENT }} }
|
334
|
+
api.has_param :start, 'datetime'
|
335
|
+
api.has_param :template_group_ids, { list: 'string' }
|
336
|
+
end
|
337
|
+
end
|
338
|
+
|
339
|
+
has_edge :template_groups do |edge|
|
340
|
+
edge.get
|
341
|
+
edge.post do |api|
|
342
|
+
api.has_param :description, 'string'
|
343
|
+
api.has_param :name, 'string'
|
344
|
+
api.has_param :whatsapp_business_templates, { list: 'string' }
|
345
|
+
end
|
346
|
+
end
|
347
|
+
|
315
348
|
has_edge :template_performance_metrics do |edge|
|
316
349
|
edge.get do |api|
|
317
350
|
api.has_param :name, 'string'
|
data/lib/facebook_ads/version.rb
CHANGED
data/lib/facebook_ads.rb
CHANGED
@@ -15,9 +15,9 @@ module FacebookAds
|
|
15
15
|
extend self
|
16
16
|
extend Shortcuts
|
17
17
|
|
18
|
-
def with_session(access_token,
|
18
|
+
def with_session(access_token, app_secret = nil, api_version = DEFAULT_API_VERSION)
|
19
19
|
original_session = Session.current_session
|
20
|
-
Session.current_session = Session.new(access_token,
|
20
|
+
Session.current_session = Session.new(access_token: access_token, app_secret: app_secret, api_version: api_version)
|
21
21
|
yield
|
22
22
|
Session.current_session = original_session
|
23
23
|
end
|