facebookbusiness 22.0.0 → 22.0.2
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 +14 -1
- 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 +20 -0
- data/lib/facebook_ads/ad_objects/{instagram_carousel.rb → ad_account_amount_spent_history.rb} +7 -12
- 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 +2 -0
- data/lib/facebook_ads/ad_objects/ad_account_user_settings.rb +3 -0
- data/lib/facebook_ads/ad_objects/ad_asset_feed_spec.rb +1 -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 +2 -1
- data/lib/facebook_ads/ad_objects/ad_creative_branded_content_ads.rb +1 -0
- data/lib/facebook_ads/ad_objects/ad_creative_link_data_call_to_action.rb +1 -0
- data/lib/facebook_ads/ad_objects/ad_creative_object_story_spec.rb +0 -1
- data/lib/facebook_ads/ad_objects/ad_creative_regional_regulation_disclaimer.rb +2 -0
- data/lib/facebook_ads/ad_objects/ad_rule_history.rb +1 -0
- data/lib/facebook_ads/ad_objects/ad_set.rb +4 -0
- data/lib/facebook_ads/ad_objects/ad_video.rb +2 -6
- data/lib/facebook_ads/ad_objects/adgroup_issues_info.rb +1 -0
- data/lib/facebook_ads/ad_objects/ads_insights.rb +15 -0
- 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 +1 -0
- data/lib/facebook_ads/ad_objects/ads_user_settings.rb +3 -0
- data/lib/facebook_ads/ad_objects/ads_value_adjustment_rule_collection.rb +8 -1
- data/lib/facebook_ads/ad_objects/application.rb +4 -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 -8
- 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/creative_multicell_test_config.rb +26 -0
- data/lib/facebook_ads/ad_objects/ctx_default_optimization_config.rb +26 -0
- data/lib/facebook_ads/ad_objects/custom_audience.rb +10 -0
- data/lib/facebook_ads/ad_objects/custom_audience_health.rb +25 -0
- data/lib/facebook_ads/ad_objects/event.rb +1 -0
- data/lib/facebook_ads/ad_objects/home_listing.rb +1 -0
- data/lib/facebook_ads/ad_objects/ig_user.rb +10 -0
- data/lib/facebook_ads/ad_objects/ig_user_for_ig_only_api.rb +4 -1
- data/lib/facebook_ads/ad_objects/insights_value.rb +1 -0
- data/lib/facebook_ads/ad_objects/lead_gen_form_preview_details.rb +4 -0
- data/lib/facebook_ads/ad_objects/message_delivery_estimate.rb +2 -0
- data/lib/facebook_ads/ad_objects/page.rb +21 -8
- data/lib/facebook_ads/ad_objects/page_call_to_action.rb +1 -0
- data/lib/facebook_ads/ad_objects/product_catalog.rb +1 -0
- data/lib/facebook_ads/ad_objects/product_item.rb +2 -0
- data/lib/facebook_ads/ad_objects/regional_regulation_identities.rb +4 -0
- data/lib/facebook_ads/ad_objects/server_side/attribution_data.rb +21 -3
- data/lib/facebook_ads/ad_objects/server_side/custom_data.rb +21 -0
- data/lib/facebook_ads/ad_objects/server_side/original_event_data.rb +39 -3
- data/lib/facebook_ads/ad_objects/{instagram_comment.rb → store_location.rb} +9 -9
- data/lib/facebook_ads/ad_objects/targeting_subscriber_universe.rb +1 -0
- data/lib/facebook_ads/ad_objects/threads_user.rb +26 -0
- data/lib/facebook_ads/ad_objects/user.rb +2 -2
- 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/version.rb +1 -1
- metadata +20 -9
- data/lib/facebook_ads/ad_objects/instagram_media.rb +0 -38
- data/lib/facebook_ads/ad_objects/negative_keyword_list.rb +0 -33
@@ -64,6 +64,7 @@ module FacebookAds
|
|
64
64
|
"ANALYZE",
|
65
65
|
"CASHIER_ROLE",
|
66
66
|
"CREATE_CONTENT",
|
67
|
+
"GLOBAL_STRUCTURE_MANAGEMENT",
|
67
68
|
"MANAGE",
|
68
69
|
"MANAGE_JOBS",
|
69
70
|
"MANAGE_LEADS",
|
@@ -583,6 +584,7 @@ module FacebookAds
|
|
583
584
|
"ANALYZE",
|
584
585
|
"CASHIER_ROLE",
|
585
586
|
"CREATE_CONTENT",
|
587
|
+
"GLOBAL_STRUCTURE_MANAGEMENT",
|
586
588
|
"MANAGE",
|
587
589
|
"MANAGE_JOBS",
|
588
590
|
"MANAGE_LEADS",
|
@@ -977,6 +979,15 @@ module FacebookAds
|
|
977
979
|
end
|
978
980
|
end
|
979
981
|
|
982
|
+
has_edge :ads_dataset do |edge|
|
983
|
+
edge.post 'Business' do |api|
|
984
|
+
api.has_param :ad_account_id, 'string'
|
985
|
+
api.has_param :app_id, 'string'
|
986
|
+
api.has_param :is_crm, 'bool'
|
987
|
+
api.has_param :name, 'string'
|
988
|
+
end
|
989
|
+
end
|
990
|
+
|
980
991
|
has_edge :ads_reporting_mmm_reports do |edge|
|
981
992
|
edge.get 'AdsReportBuilderMmmReport' do |api|
|
982
993
|
api.has_param :filtering, { list: 'hash' }
|
@@ -1164,12 +1175,6 @@ module FacebookAds
|
|
1164
1175
|
end
|
1165
1176
|
end
|
1166
1177
|
|
1167
|
-
has_edge :draft_negative_keyword_lists do |edge|
|
1168
|
-
edge.post do |api|
|
1169
|
-
api.has_param :negative_keyword_list_file, 'file'
|
1170
|
-
end
|
1171
|
-
end
|
1172
|
-
|
1173
1178
|
has_edge :event_source_groups do |edge|
|
1174
1179
|
edge.get 'EventSourceGroup'
|
1175
1180
|
edge.post 'EventSourceGroup' do |api|
|
@@ -1277,8 +1282,10 @@ module FacebookAds
|
|
1277
1282
|
end
|
1278
1283
|
end
|
1279
1284
|
|
1280
|
-
has_edge :
|
1281
|
-
edge.
|
1285
|
+
has_edge :onboard_partners_to_mm_lite do |edge|
|
1286
|
+
edge.post do |api|
|
1287
|
+
api.has_param :solution_id, 'string'
|
1288
|
+
end
|
1282
1289
|
end
|
1283
1290
|
|
1284
1291
|
has_edge :openbridge_configurations do |edge|
|
@@ -1364,6 +1371,7 @@ module FacebookAds
|
|
1364
1371
|
edge.get 'ProductCatalog'
|
1365
1372
|
edge.post 'ProductCatalog' do |api|
|
1366
1373
|
api.has_param :additional_vertical_option, { enum: -> { ProductCatalog::ADDITIONAL_VERTICAL_OPTION }}
|
1374
|
+
api.has_param :business_metadata, 'hash'
|
1367
1375
|
api.has_param :catalog_segment_filter, 'object'
|
1368
1376
|
api.has_param :catalog_segment_product_set_id, 'string'
|
1369
1377
|
api.has_param :da_display_settings, 'object'
|
@@ -1402,6 +1410,10 @@ module FacebookAds
|
|
1402
1410
|
end
|
1403
1411
|
end
|
1404
1412
|
|
1413
|
+
has_edge :passback_attribution_metadata_configs do |edge|
|
1414
|
+
edge.get
|
1415
|
+
end
|
1416
|
+
|
1405
1417
|
has_edge :pending_client_ad_accounts do |edge|
|
1406
1418
|
edge.get 'BusinessAdAccountRequest'
|
1407
1419
|
end
|
@@ -389,6 +389,7 @@ module FacebookAds
|
|
389
389
|
|
390
390
|
field :account_id, 'string'
|
391
391
|
field :adlabels, { list: 'AdLabel' }
|
392
|
+
field :advantage_state_info, 'AdCampaignGroupAdvantageState'
|
392
393
|
field :bid_strategy, { enum: -> { BID_STRATEGY }}
|
393
394
|
field :boosted_object_id, 'string'
|
394
395
|
field :brand_lift_studies, { list: 'AdStudy' }
|
@@ -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 CatalogCollection < AdObject
|
17
|
+
|
18
|
+
field :description, 'string'
|
19
|
+
field :title, 'string'
|
20
|
+
field :url, 'string'
|
21
|
+
has_no_id
|
22
|
+
has_no_get
|
23
|
+
has_no_post
|
24
|
+
has_no_delete
|
25
|
+
|
26
|
+
end
|
27
|
+
end
|
@@ -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 CreativeMulticellTestConfig < AdObject
|
17
|
+
|
18
|
+
field :daily_budget, 'int'
|
19
|
+
field :lifetime_budget, 'int'
|
20
|
+
has_no_id
|
21
|
+
has_no_get
|
22
|
+
has_no_post
|
23
|
+
has_no_delete
|
24
|
+
|
25
|
+
end
|
26
|
+
end
|
@@ -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 CtxDefaultOptimizationConfig < AdObject
|
17
|
+
|
18
|
+
field :objective, 'string'
|
19
|
+
field :optimization_goal, 'string'
|
20
|
+
has_no_id
|
21
|
+
has_no_get
|
22
|
+
has_no_post
|
23
|
+
has_no_delete
|
24
|
+
|
25
|
+
end
|
26
|
+
end
|
@@ -174,6 +174,16 @@ module FacebookAds
|
|
174
174
|
end
|
175
175
|
end
|
176
176
|
|
177
|
+
has_edge :health do |edge|
|
178
|
+
edge.get 'CustomAudienceHealth' do |api|
|
179
|
+
api.has_param :calculated_date, 'string'
|
180
|
+
api.has_param :processed_date, 'string'
|
181
|
+
api.has_param :value_aggregation_duration, 'int'
|
182
|
+
api.has_param :value_currency, 'string'
|
183
|
+
api.has_param :value_version, 'int'
|
184
|
+
end
|
185
|
+
end
|
186
|
+
|
177
187
|
has_edge :salts do |edge|
|
178
188
|
edge.get 'CustomAudienceSalts' do |api|
|
179
189
|
api.has_param :params, { list: 'string' }
|
@@ -0,0 +1,25 @@
|
|
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 CustomAudienceHealth < AdObject
|
17
|
+
|
18
|
+
field :health, { list: 'object' }
|
19
|
+
has_no_id
|
20
|
+
has_no_get
|
21
|
+
has_no_post
|
22
|
+
has_no_delete
|
23
|
+
|
24
|
+
end
|
25
|
+
end
|
@@ -81,6 +81,7 @@ module FacebookAds
|
|
81
81
|
field :price, 'string'
|
82
82
|
field :property_type, 'string'
|
83
83
|
field :sanitized_images, { list: 'string' }
|
84
|
+
field :tags, { list: 'string' }
|
84
85
|
field :unit_price, 'object'
|
85
86
|
field :url, 'string'
|
86
87
|
field :visibility, { enum: -> { VISIBILITY }}
|
@@ -69,6 +69,7 @@ module FacebookAds
|
|
69
69
|
api.has_param :ad_code, 'string'
|
70
70
|
api.has_param :creator_username, 'string'
|
71
71
|
api.has_param :only_fetch_allowlisted, 'bool'
|
72
|
+
api.has_param :only_fetch_recommended_content, 'bool'
|
72
73
|
api.has_param :permalinks, { list: 'string' }
|
73
74
|
end
|
74
75
|
end
|
@@ -92,6 +93,10 @@ module FacebookAds
|
|
92
93
|
end
|
93
94
|
end
|
94
95
|
|
96
|
+
has_edge :connected_threads_user do |edge|
|
97
|
+
edge.get 'ThreadsUser'
|
98
|
+
end
|
99
|
+
|
95
100
|
has_edge :content_publishing_limit do |edge|
|
96
101
|
edge.get 'ContentPublishingLimitResponse' do |api|
|
97
102
|
api.has_param :since, 'datetime'
|
@@ -117,6 +122,11 @@ module FacebookAds
|
|
117
122
|
end
|
118
123
|
end
|
119
124
|
|
125
|
+
has_edge :instagram_backed_threads_user do |edge|
|
126
|
+
edge.get 'ThreadsUser'
|
127
|
+
edge.post 'ThreadsUser'
|
128
|
+
end
|
129
|
+
|
120
130
|
has_edge :live_media do |edge|
|
121
131
|
edge.get 'IgMedia' do |api|
|
122
132
|
api.has_param :since, 'datetime'
|
@@ -136,7 +136,7 @@ module FacebookAds
|
|
136
136
|
edge.delete
|
137
137
|
edge.get
|
138
138
|
edge.post do |api|
|
139
|
-
api.has_param :subscribed_fields, { list: { enum: %w{comments creator_marketplace_invited_creator_onboarding creator_marketplace_projects delta live_comments mentions message_reactions messages messaging_handover messaging_optins messaging_postbacks messaging_referral messaging_seen standby story_insights story_reactions }} }
|
139
|
+
api.has_param :subscribed_fields, { list: { enum: %w{comments creator_marketplace_invited_creator_onboarding creator_marketplace_projects delta live_comments mentions message_reactions messages messaging_handover messaging_optins messaging_postbacks messaging_referral messaging_seen onboarding_welcome_message_series standby story_insights story_reactions }} }
|
140
140
|
end
|
141
141
|
end
|
142
142
|
|
@@ -145,6 +145,9 @@ module FacebookAds
|
|
145
145
|
end
|
146
146
|
|
147
147
|
has_edge :welcome_message_flows do |edge|
|
148
|
+
edge.delete do |api|
|
149
|
+
api.has_param :flow_id, 'string'
|
150
|
+
end
|
148
151
|
edge.get 'CtxPartnerAppWelcomeMessageFlow' do |api|
|
149
152
|
api.has_param :app_id, 'string'
|
150
153
|
api.has_param :flow_id, 'string'
|
@@ -21,6 +21,7 @@ module FacebookAds
|
|
21
21
|
field :engagement_source, 'string'
|
22
22
|
field :message_type, 'string'
|
23
23
|
field :messaging_channel, 'string'
|
24
|
+
field :monetization_tool, 'string'
|
24
25
|
field :recurring_notifications_entry_point, 'string'
|
25
26
|
field :recurring_notifications_frequency, 'string'
|
26
27
|
field :recurring_notifications_topic, 'string'
|
@@ -21,6 +21,8 @@ module FacebookAds
|
|
21
21
|
field :chat_on_whatsapp_text, 'string'
|
22
22
|
field :contact_information_text, 'string'
|
23
23
|
field :creatives_overview_default_text, 'string'
|
24
|
+
field :custom_disclaimer_editor_state, 'string'
|
25
|
+
field :custom_disclaimer_title, 'string'
|
24
26
|
field :data_privacy_policy_setting_description, 'string'
|
25
27
|
field :default_appointment_scheduling_inline_context, 'string'
|
26
28
|
field :default_disqualified_end_component, 'object'
|
@@ -43,6 +45,7 @@ module FacebookAds
|
|
43
45
|
field :personal_info_text, 'string'
|
44
46
|
field :phone_number_inline_context_text, 'string'
|
45
47
|
field :privacy_policy_link_text, 'string'
|
48
|
+
field :privacy_policy_link_text_for_optional_privacy_policy, 'string'
|
46
49
|
field :privacy_policy_title_section_title_text, 'string'
|
47
50
|
field :privacy_setting_description, 'string'
|
48
51
|
field :products_section_headers, { list: 'hash' }
|
@@ -51,6 +54,7 @@ module FacebookAds
|
|
51
54
|
field :return_to_facebook_text, 'string'
|
52
55
|
field :review_your_info_text, 'string'
|
53
56
|
field :secure_sharing_text, 'string'
|
57
|
+
field :secure_sharing_text_for_optional_privacy_policy, 'string'
|
54
58
|
field :slide_to_submit_text, 'string'
|
55
59
|
field :social_proof_section_headers, { list: 'hash' }
|
56
60
|
field :submit_button_text, 'string'
|
@@ -15,6 +15,7 @@ module FacebookAds
|
|
15
15
|
|
16
16
|
class MessageDeliveryEstimate < AdObject
|
17
17
|
OPTIMIZATION_GOAL = [
|
18
|
+
"ADVERTISER_SILOED_VALUE",
|
18
19
|
"AD_RECALL_LIFT",
|
19
20
|
"APP_INSTALLS",
|
20
21
|
"APP_INSTALLS_AND_OFFSITE_CONVERSIONS",
|
@@ -34,6 +35,7 @@ module FacebookAds
|
|
34
35
|
"OFFSITE_CONVERSIONS",
|
35
36
|
"PAGE_LIKES",
|
36
37
|
"POST_ENGAGEMENT",
|
38
|
+
"PROFILE_AND_PAGE_ENGAGEMENT",
|
37
39
|
"PROFILE_VISIT",
|
38
40
|
"QUALITY_CALL",
|
39
41
|
"QUALITY_LEAD",
|
@@ -109,6 +109,7 @@ module FacebookAds
|
|
109
109
|
"ANALYZE",
|
110
110
|
"CASHIER_ROLE",
|
111
111
|
"CREATE_CONTENT",
|
112
|
+
"GLOBAL_STRUCTURE_MANAGEMENT",
|
112
113
|
"MANAGE",
|
113
114
|
"MANAGE_JOBS",
|
114
115
|
"MANAGE_LEADS",
|
@@ -137,6 +138,7 @@ module FacebookAds
|
|
137
138
|
"ANALYZE",
|
138
139
|
"CASHIER_ROLE",
|
139
140
|
"CREATE_CONTENT",
|
141
|
+
"GLOBAL_STRUCTURE_MANAGEMENT",
|
140
142
|
"MANAGE",
|
141
143
|
"MANAGE_JOBS",
|
142
144
|
"MANAGE_LEADS",
|
@@ -243,6 +245,14 @@ module FacebookAds
|
|
243
245
|
"MESSENGER",
|
244
246
|
]
|
245
247
|
|
248
|
+
ACTIONS = [
|
249
|
+
"BAN_USER",
|
250
|
+
"BLOCK_USER",
|
251
|
+
"MOVE_TO_SPAM",
|
252
|
+
"UNBAN_USER",
|
253
|
+
"UNBLOCK_USER",
|
254
|
+
]
|
255
|
+
|
246
256
|
MODEL = [
|
247
257
|
"ARABIC",
|
248
258
|
"CHINESE",
|
@@ -1133,6 +1143,13 @@ module FacebookAds
|
|
1133
1143
|
end
|
1134
1144
|
end
|
1135
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
|
+
|
1136
1153
|
has_edge :nlp_configs do |edge|
|
1137
1154
|
edge.post 'Page' do |api|
|
1138
1155
|
api.has_param :api_version, 'object'
|
@@ -1176,14 +1193,6 @@ module FacebookAds
|
|
1176
1193
|
end
|
1177
1194
|
end
|
1178
1195
|
|
1179
|
-
has_edge :pass_thread_metadata do |edge|
|
1180
|
-
edge.post 'Page' do |api|
|
1181
|
-
api.has_param :metadata, 'string'
|
1182
|
-
api.has_param :recipient, 'object'
|
1183
|
-
api.has_param :target_app_id, 'int'
|
1184
|
-
end
|
1185
|
-
end
|
1186
|
-
|
1187
1196
|
has_edge :personas do |edge|
|
1188
1197
|
edge.get 'Persona'
|
1189
1198
|
edge.post 'Persona' do |api|
|
@@ -1369,6 +1378,10 @@ module FacebookAds
|
|
1369
1378
|
edge.get 'CommerceMerchantSettingsSetupStatus'
|
1370
1379
|
end
|
1371
1380
|
|
1381
|
+
has_edge :store_locations do |edge|
|
1382
|
+
edge.get 'StoreLocation'
|
1383
|
+
end
|
1384
|
+
|
1372
1385
|
has_edge :stories do |edge|
|
1373
1386
|
edge.get 'Stories' do |api|
|
1374
1387
|
api.has_param :since, 'datetime'
|
@@ -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'
|
@@ -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'
|
@@ -17,6 +17,10 @@ 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'
|
22
26
|
field :taiwan_universal_beneficiary, 'string'
|
@@ -46,6 +46,9 @@ module FacebookAds
|
|
46
46
|
# Attribution woindow in days.
|
47
47
|
attr_accessor :attr_window
|
48
48
|
|
49
|
+
# The share of value generated by this click-conversion pair that is attributed to Meta.
|
50
|
+
attr_accessor :attribution_value
|
51
|
+
|
49
52
|
|
50
53
|
|
51
54
|
# @param [String] scope
|
@@ -56,7 +59,8 @@ module FacebookAds
|
|
56
59
|
# @param [Float] attribution_share
|
57
60
|
# @param [String] attribution_model
|
58
61
|
# @param [String] attr_window
|
59
|
-
|
62
|
+
# @param [Float] attribution_value
|
63
|
+
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)
|
60
64
|
unless scope.nil?
|
61
65
|
self.scope = scope
|
62
66
|
end
|
@@ -81,6 +85,9 @@ module FacebookAds
|
|
81
85
|
unless attr_window.nil?
|
82
86
|
self.attr_window = attr_window
|
83
87
|
end
|
88
|
+
unless attribution_value.nil?
|
89
|
+
self.attribution_value = attribution_value
|
90
|
+
end
|
84
91
|
end
|
85
92
|
|
86
93
|
# build the object using the input hash
|
@@ -122,6 +129,10 @@ module FacebookAds
|
|
122
129
|
if attributes.has_key?(:'attr_window')
|
123
130
|
self.attr_window = attributes[:'attr_window']
|
124
131
|
end
|
132
|
+
|
133
|
+
if attributes.has_key?(:'attribution_value')
|
134
|
+
self.attribution_share = attributes[:'attribution_value']
|
135
|
+
end
|
125
136
|
end
|
126
137
|
|
127
138
|
# Checks equality by comparing each attribute.
|
@@ -135,7 +146,8 @@ module FacebookAds
|
|
135
146
|
campaign_id == o.campaign_id &&
|
136
147
|
attribution_share == o.attribution_share &&
|
137
148
|
attribution_model == o.attribution_model &&
|
138
|
-
attr_window == o.attr_window
|
149
|
+
attr_window == o.attr_window &&
|
150
|
+
attribution_value == o.attribution_value
|
139
151
|
end
|
140
152
|
|
141
153
|
# @see the `==` method
|
@@ -147,7 +159,7 @@ module FacebookAds
|
|
147
159
|
# @return [Fixnum] Hash code
|
148
160
|
def hash
|
149
161
|
[
|
150
|
-
scope, visit_time, ad_id, adset_id, campaign_id, attribution_share, attribution_model, attr_window
|
162
|
+
scope, visit_time, ad_id, adset_id, campaign_id, attribution_share, attribution_model, attr_window, attribution_value
|
151
163
|
].hash
|
152
164
|
end
|
153
165
|
|
@@ -177,6 +189,9 @@ module FacebookAds
|
|
177
189
|
unless attr_window.nil?
|
178
190
|
hash['attr_window'] = attr_window
|
179
191
|
end
|
192
|
+
unless attribution_value.nil?
|
193
|
+
hash['attribution_value'] = attribution_value
|
194
|
+
end
|
180
195
|
hash.to_s
|
181
196
|
end
|
182
197
|
|
@@ -208,6 +223,9 @@ module FacebookAds
|
|
208
223
|
unless attr_window.nil?
|
209
224
|
hash['attr_window'] = attr_window
|
210
225
|
end
|
226
|
+
unless attribution_value.nil?
|
227
|
+
hash['attribution_value'] = attribution_value
|
228
|
+
end
|
211
229
|
hash
|
212
230
|
end
|
213
231
|
|
@@ -25,6 +25,10 @@ module FacebookAds
|
|
25
25
|
# Example: 142.54.
|
26
26
|
attr_accessor :value
|
27
27
|
|
28
|
+
# A numeric net_revenue associated with this event. This could be a monetary net_revenue or a net_revenue in some other metric.
|
29
|
+
# Example: 30.54.
|
30
|
+
attr_accessor :net_revenue
|
31
|
+
|
28
32
|
# The currency for the value specified, if applicable. Currency must be a valid ISO 4217 three digit currency code.
|
29
33
|
# Example: 'usd'.
|
30
34
|
attr_accessor :currency
|
@@ -83,6 +87,7 @@ module FacebookAds
|
|
83
87
|
|
84
88
|
|
85
89
|
# @param [Float] value
|
90
|
+
# @param [Float] net_revenue
|
86
91
|
# @param [String] currency
|
87
92
|
# @param [String] content_name
|
88
93
|
# @param [String] content_category
|
@@ -98,6 +103,7 @@ module FacebookAds
|
|
98
103
|
# @param [String] item_number
|
99
104
|
# @param [String] custom_properties
|
100
105
|
def initialize(value: nil,
|
106
|
+
net_revenue: nil,
|
101
107
|
currency: nil,
|
102
108
|
content_name: nil,
|
103
109
|
content_category: nil,
|
@@ -116,6 +122,9 @@ module FacebookAds
|
|
116
122
|
unless value.nil?
|
117
123
|
self.value = value
|
118
124
|
end
|
125
|
+
unless net_revenue.nil?
|
126
|
+
self.net_revenue = net_revenue
|
127
|
+
end
|
119
128
|
unless currency.nil?
|
120
129
|
self.currency = currency
|
121
130
|
end
|
@@ -173,6 +182,10 @@ module FacebookAds
|
|
173
182
|
self.value = attributes[:'value']
|
174
183
|
end
|
175
184
|
|
185
|
+
if attributes.has_key?(:'net_revenue')
|
186
|
+
self.net_revenue = attributes[:'net_revenue']
|
187
|
+
end
|
188
|
+
|
176
189
|
if attributes.has_key?(:'currency')
|
177
190
|
self.currency = attributes[:'currency']
|
178
191
|
end
|
@@ -239,6 +252,7 @@ module FacebookAds
|
|
239
252
|
return true if self.equal?(o)
|
240
253
|
self.class == o.class &&
|
241
254
|
value == o.value &&
|
255
|
+
net_revenue == o.net_revenue &&
|
242
256
|
currency == o.currency &&
|
243
257
|
content_name == o.content_name &&
|
244
258
|
content_category == o.content_category &&
|
@@ -265,6 +279,7 @@ module FacebookAds
|
|
265
279
|
def hash
|
266
280
|
[
|
267
281
|
value,
|
282
|
+
net_revenue,
|
268
283
|
currency,
|
269
284
|
content_name,
|
270
285
|
content_category,
|
@@ -289,6 +304,9 @@ module FacebookAds
|
|
289
304
|
unless value.nil?
|
290
305
|
hash['value'] = value
|
291
306
|
end
|
307
|
+
unless net_revenue.nil?
|
308
|
+
hash['net_revenue'] = net_revenue
|
309
|
+
end
|
292
310
|
unless currency.nil?
|
293
311
|
hash['currency'] = currency
|
294
312
|
end
|
@@ -342,6 +360,9 @@ module FacebookAds
|
|
342
360
|
unless value.nil?
|
343
361
|
hash['value'] = value
|
344
362
|
end
|
363
|
+
unless net_revenue.nil?
|
364
|
+
hash['net_revenue'] = net_revenue
|
365
|
+
end
|
345
366
|
unless currency.nil?
|
346
367
|
hash['currency'] = FacebookAds::ServerSide::Util.normalize(currency, 'currency')
|
347
368
|
end
|