Skip to content

Commit 48cc1c0

Browse files
satwikareddy3facebook-github-bot
authored andcommitted
Auto-generated ruby SDK code update
Summary: ignore-conflict-markers Reviewed By: liliarizona Differential Revision: D72084092 fbshipit-source-id: 1b67be53bb508be9a00b9dace066088dcc5f6eae
1 parent 2fcba4e commit 48cc1c0

File tree

62 files changed

+392
-123
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+392
-123
lines changed

lib/facebook_ads/ad_objects/ad_account.rb

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,7 @@ class AdAccount < AdObject
198198
field :id, 'string'
199199
field :io_number, 'string'
200200
field :is_attribution_spec_system_default, 'bool'
201+
field :is_ba_skip_delayed_eligible, 'bool'
201202
field :is_direct_deals_enabled, 'bool'
202203
field :is_in_3ds_authorization_enabled_market, 'bool'
203204
field :is_notifications_enabled, 'bool'
@@ -508,6 +509,7 @@ class AdAccount < AdObject
508509
api.has_param :existing_customer_budget_percentage, 'int'
509510
api.has_param :frequency_control_specs, { list: 'object' }
510511
api.has_param :full_funnel_exploration_mode, { enum: -> { AdSet::FULL_FUNNEL_EXPLORATION_MODE }}
512+
api.has_param :is_ba_skip_delayed_eligible, 'bool'
511513
api.has_param :is_dynamic_creative, 'bool'
512514
api.has_param :is_sac_cfca_terms_certified, 'bool'
513515
api.has_param :lifetime_budget, 'int'
@@ -1008,6 +1010,10 @@ class AdAccount < AdObject
10081010
edge.get 'AdAccountMaxBid'
10091011
end
10101012

1013+
has_edge :mcmeconversions do |edge|
1014+
edge.get 'AdsMcmeConversion'
1015+
end
1016+
10111017
has_edge :minimum_budgets do |edge|
10121018
edge.get 'MinimumBudget' do |api|
10131019
api.has_param :bid_amount, 'int'
@@ -1244,7 +1250,14 @@ class AdAccount < AdObject
12441250
end
12451251

12461252
has_edge :value_rule_set do |edge|
1247-
edge.get 'AdsValueAdjustmentRuleCollection'
1253+
edge.get 'AdsValueAdjustmentRuleCollection' do |api|
1254+
api.has_param :product_type, { enum: -> { AdsValueAdjustmentRuleCollection::PRODUCT_TYPE }}
1255+
end
1256+
edge.post 'AdsValueAdjustmentRuleCollection' do |api|
1257+
api.has_param :name, 'string'
1258+
api.has_param :product_type, { enum: -> { AdsValueAdjustmentRuleCollection::PRODUCT_TYPE }}
1259+
api.has_param :rules, { list: 'hash' }
1260+
end
12481261
end
12491262

12501263
has_edge :video_ads do |edge|

lib/facebook_ads/ad_objects/ad_account_ad_rules_history.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ class AdAccountAdRulesHistory < AdObject
1919
"CHANGED_BID",
2020
"CHANGED_BUDGET",
2121
"CONSOLIDATE_ASC_FRAGMENTATION",
22+
"CONSOLIDATE_FRAGMENTATION",
2223
"CONVERT_ASC_CP_SINGLE_INSTANCE",
2324
"EMAIL",
2425
"ENABLE_ADVANTAGE_CAMPAIGN_BUDGET",

lib/facebook_ads/ad_objects/ad_account_ad_volume.rb

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ class AdAccountAdVolume < AdObject
2222
"ACCOUNT_SPEND_LIMIT",
2323
"ACCOUNT_SPEND_LIMIT_DUPLICATION",
2424
"ACO_TOGGLE",
25+
"ADOPT_CAPI_GATEWAY_FROM_TEST_DRIVE",
2526
"ADS_REPORTING",
2627
"ADS_STATUS",
2728
"ADVANCED_CAMPAIGN_BUDGET",
@@ -44,11 +45,13 @@ class AdAccountAdVolume < AdObject
4445
"ADVANTAGE_PLUS_CREATIVE",
4546
"ADVANTAGE_PLUS_CREATIVE_CATALOG",
4647
"ADVANTAGE_PLUS_CREATIVE_SE",
48+
"ADVANTAGE_PLUS_LEAD_CAMPAIGN",
4749
"ADVANTAGE_PLUS_PLACEMENTS_DUPLICATION",
4850
"ADVANTAGE_PLUS_PLACEMENTS_FRICTION",
4951
"ADVANTAGE_PLUS_PLACEMENTS_V2_DUPLICATION",
5052
"ADVANTAGE_SHOPPING_CAMPAIGN",
5153
"ADVANTAGE_SHOPPING_CAMPAIGN_FRAGMENTATION",
54+
"AD_ACCOUNT_PLACEMENT_CONTROLS_UPSELL",
5255
"AD_LIFT_RECALL_GOAL",
5356
"AD_LIFT_RECALL_GOAL_PRECREATE",
5457
"AD_LIFT_RECALL_OPTIMIZATION_GOAL",
@@ -57,6 +60,8 @@ class AdAccountAdVolume < AdObject
5760
"AGGREGATED_BID_LIMITED",
5861
"AGGREGATED_BUDGET_LIMITED",
5962
"AGGREGATED_COST_LIMITED",
63+
"APLUSC_MUSIC",
64+
"APLUSC_TEXT_IMPROVEMENTS",
6065
"APLUS_C_CATALOG_DUPLICATION",
6166
"APP_AEM_V2_INSTALLATION_PROMOTION",
6267
"APP_ENGAGED_VIEW_CONVERSIONS_DUPLICATION",
@@ -80,14 +85,21 @@ class AdAccountAdVolume < AdObject
8085
"AUTOMATIC_PLACEMENTS",
8186
"AUTOMATIC_PLACEMENTS_V2",
8287
"AUTO_BID",
88+
"AUTO_CAT_SELECTION_ENHANCEMENT",
8389
"BACKGROUND_GENERATION",
8490
"BLENDED_ADS",
8591
"BLENDED_ADS_DUPLICATION",
8692
"BLENDED_ADS_FOR_SHOPS_ADS_DUPLICATION",
93+
"BPBAA_WITH_CAPI_UPSELL",
94+
"BROADGEO_AM_UPSELL_GUIDANCE",
8795
"BROAD_TARGETING",
8896
"BUDGET_LIMITED",
97+
"BUDGET_REALLOCATION",
8998
"CAPI",
99+
"CAPI_CRM_FUNNEL",
90100
"CAPI_CRM_GUIDANCE",
101+
"CAPI_CRM_SETUP",
102+
"CAPI_EVENT_COVERAGE",
91103
"CAPI_PENETRATION",
92104
"CAPI_PERFORMANCE_MATCH_KEY",
93105
"CAPI_PERFORMANCE_MATCH_KEY_V2",
@@ -99,6 +111,7 @@ class AdAccountAdVolume < AdObject
99111
"CONNECT_FACEBOOK_PAGE_TO_INSTAGRAM",
100112
"CONNECT_FACEBOOK_PAGE_TO_WHATSAPP",
101113
"CONVERSION_LEADS_OPTIMIZATION",
114+
"CONVERSION_LEADS_OPTIMIZATION_DUPLICATION",
102115
"CONVERSION_LEAD_ADS",
103116
"COST_GOAL",
104117
"COST_GOAL_BUDGET_LIMITED",
@@ -123,6 +136,8 @@ class AdAccountAdVolume < AdObject
123136
"CTX_CTA_UPGRADE_IN_DUPLICATION",
124137
"CTX_CTMPO_UPGRADE",
125138
"CTX_GUIDANCE",
139+
"CTX_HVS",
140+
"CTX_MULTI_MESSAGE_DESTINATION",
126141
"CTX_PRECREATE",
127142
"CTX_SABR_CBO",
128143
"CTX_SABR_NON_CBO",
@@ -134,6 +149,7 @@ class AdAccountAdVolume < AdObject
134149
"DEAD_LINK",
135150
"DEFRAGMENTATION_ACB",
136151
"DEFRAGMENTATION_ACB_DUPLICATION",
152+
"DEFRAGMENTATION_USING_VALUE_RULES_TEST_V2",
137153
"DELIVERY_ERROR",
138154
"DELIVERY_WARNING",
139155
"DYNAMIC_ADVANTAGE_CAMPAIGN_BUDGET",
@@ -199,6 +215,7 @@ class AdAccountAdVolume < AdObject
199215
"PREDICTIVE_CREATIVE_LIMITED",
200216
"PREDICTIVE_CREATIVE_LIMITED_HOURLY",
201217
"PREPARING_STATUS",
218+
"PRODUCT_SET_BOOSTING",
202219
"PURCHASE_OPTIMIZATION",
203220
"RAPID_LEARNING_LIMITED",
204221
"RAPID_LEARNING_PHASE",
@@ -238,6 +255,7 @@ class AdAccountAdVolume < AdObject
238255
"SYD_TEST_MODE",
239256
"TAILORED_LEAD_AD_CAMPAIGN",
240257
"TAILORED_MESSAGES_CAMPAIGN",
258+
"TARGETING_CREATIVE_FRAGMENTATION",
241259
"TLA_CREATION_PACKAGE",
242260
"TOP_ADSETS_WITH_ADS_UNDER_CAP",
243261
"TOP_CAMPAIGNS_WITH_ADS_UNDER_CAP",
@@ -250,9 +268,11 @@ class AdAccountAdVolume < AdObject
250268
"UNIFIED_INBOX",
251269
"UNUSED_BUDGET",
252270
"VALUE_DIAGNOSTICS_GUIDANCE",
271+
"VALUE_OPTIMIZATION_GOAL",
253272
"VIDEO_LENGTH",
254273
"VIDEO_VIEWS_UPSELL",
255274
"VIDEO_VIEWS_UPSELL_PRECREATE",
275+
"VO_VT_1D_DEFAULTING",
256276
"WA_MESSAGING_PARTNERS",
257277
"WA_MESSAGING_PARTNERS_PRECREATE",
258278
"WEB_ENGAGED_VIEW_CONVERSIONS",

lib/facebook_ads/ad_objects/instagram_carousel.rb renamed to lib/facebook_ads/ad_objects/ad_account_amount_spent_history.rb

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,14 @@ module FacebookAds
1313
# on github and we'll fix in our codegen framework. We'll not be able to accept
1414
# pull request for this class.
1515

16-
class InstagramCarousel < AdObject
16+
class AdAccountAmountSpentHistory < AdObject
1717

18-
field :caption_text, 'string'
19-
field :comment_count, 'int'
20-
field :content_type, 'int'
21-
field :display_url, 'string'
22-
field :id, 'string'
23-
field :ig_media_id, 'string'
24-
field :like_count, 'int'
25-
field :owner_instagram_user, 'InstagramUser'
26-
field :permalink, 'string'
27-
field :taken_at, 'datetime'
28-
field :video_url, 'string'
18+
field :amount_spent, 'int'
19+
field :spend_cap, 'int'
20+
field :time_start, 'string'
21+
field :time_stop, 'string'
22+
has_no_id
23+
has_no_get
2924
has_no_post
3025
has_no_delete
3126

lib/facebook_ads/ad_objects/ad_account_delivery_estimate.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ module FacebookAds
1515

1616
class AdAccountDeliveryEstimate < AdObject
1717
OPTIMIZATION_GOAL = [
18+
"ADVERTISER_SILOED_VALUE",
1819
"AD_RECALL_LIFT",
1920
"APP_INSTALLS",
2021
"APP_INSTALLS_AND_OFFSITE_CONVERSIONS",
@@ -34,6 +35,7 @@ class AdAccountDeliveryEstimate < AdObject
3435
"OFFSITE_CONVERSIONS",
3536
"PAGE_LIKES",
3637
"POST_ENGAGEMENT",
38+
"PROFILE_AND_PAGE_ENGAGEMENT",
3739
"PROFILE_VISIT",
3840
"QUALITY_CALL",
3941
"QUALITY_LEAD",

lib/facebook_ads/ad_objects/ad_account_live_video_advertiser.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ class AdAccountLiveVideoAdvertiser < AdObject
1717

1818
field :is_lva_toggle_on, 'bool'
1919
field :lva_default_budget, 'int'
20+
field :should_default_current_live, 'bool'
21+
field :should_default_scheduled_live, 'bool'
2022
field :should_show_lva_toggle, 'bool'
2123
has_no_id
2224
has_no_get

lib/facebook_ads/ad_objects/ad_account_optimization_goals_aemv2_eligibility.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ module FacebookAds
1515

1616
class AdAccountOptimizationGoalsAemv2Eligibility < AdObject
1717
OPTIMIZATION_GOAL = [
18+
"ADVERTISER_SILOED_VALUE",
1819
"AD_RECALL_LIFT",
1920
"APP_INSTALLS",
2021
"APP_INSTALLS_AND_OFFSITE_CONVERSIONS",
@@ -34,6 +35,7 @@ class AdAccountOptimizationGoalsAemv2Eligibility < AdObject
3435
"OFFSITE_CONVERSIONS",
3536
"PAGE_LIKES",
3637
"POST_ENGAGEMENT",
38+
"PROFILE_AND_PAGE_ENGAGEMENT",
3739
"PROFILE_VISIT",
3840
"QUALITY_CALL",
3941
"QUALITY_LEAD",
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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 AdAccountSpendCapChangeHistory < AdObject
17+
18+
field :action, 'string'
19+
field :spend_cap, 'int'
20+
field :time_start, 'string'
21+
field :time_stop, 'string'
22+
has_no_id
23+
has_no_get
24+
has_no_post
25+
has_no_delete
26+
27+
end
28+
end

lib/facebook_ads/ad_objects/ad_account_targeting_unified.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,7 @@ class AdAccountTargetingUnified < AdObject
380380
"home_type",
381381
"home_value",
382382
"household_composition",
383+
"household_income",
383384
"id",
384385
"income",
385386
"industries",
@@ -429,6 +430,7 @@ class AdAccountTargetingUnified < AdObject
429430
"topic",
430431
"trending",
431432
"user_adclusters",
433+
"user_age_unknown",
432434
"user_device",
433435
"user_event",
434436
"user_os",

lib/facebook_ads/ad_objects/ad_account_user_settings.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ class AdAccountUserSettings < AdObject
4848
field :auto_review_video_caption, 'bool'
4949
field :campaign_overview_columns, { list: 'string' }
5050
field :column_suggestion_status, 'string'
51+
field :conditional_formatting_rules, { list: 'string' }
5152
field :default_account_overview_agegender_metrics, { list: 'string' }
5253
field :default_account_overview_location_metrics, { list: 'string' }
5354
field :default_account_overview_metrics, { list: 'string' }
@@ -66,6 +67,8 @@ class AdAccountUserSettings < AdObject
6667
field :hidden_optimization_tips, { list: 'hash' }
6768
field :id, 'string'
6869
field :is_3p_auth_setting_set, 'bool'
70+
field :is_ads_manager_footer_row_preference_set, 'bool'
71+
field :is_ads_manager_footer_row_shown, 'bool'
6972
field :is_text_variation_nux_close, 'bool'
7073
field :last_used_columns, 'object'
7174
field :last_used_pe_filters, { list: 'object' }

0 commit comments

Comments
 (0)