Skip to content

Commit

Permalink
Auto-generated ruby SDK code update
Browse files Browse the repository at this point in the history
Summary: ignore-conflict-markers

Reviewed By: stcheng

Differential Revision: D49294484

fbshipit-source-id: 5951c4ad6612b9418723aa524bab64dab6d5b651
  • Loading branch information
generatedunixname89002005295453 authored and facebook-github-bot committed Sep 14, 2023
1 parent e7db717 commit 4cb4408
Show file tree
Hide file tree
Showing 93 changed files with 1,617 additions and 164 deletions.
13 changes: 8 additions & 5 deletions lib/facebook_ads/ad_objects/ad.rb
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,10 @@ class Ad < AdObject


field :account_id, 'string'
field :ad_active_time, 'string'
field :ad_review_feedback, 'AdgroupReviewFeedback'
field :ad_schedule_end_time, 'datetime'
field :ad_schedule_start_time, 'datetime'
field :adlabels, { list: 'AdLabel' }
field :adset, 'AdSet'
field :adset_id, 'string'
Expand Down Expand Up @@ -160,7 +163,7 @@ class Ad < AdObject
edge.get 'Ad' do |api|
api.has_param :date_preset, { enum: -> { Ad::DATE_PRESET }}
api.has_param :effective_status, { list: 'string' }
api.has_param :time_range, 'object'
api.has_param :time_range, 'hash'
api.has_param :updated_since, 'int'
end
edge.post 'Ad' do |api|
Expand Down Expand Up @@ -189,8 +192,8 @@ class Ad < AdObject
api.has_param :summary, { list: 'string' }
api.has_param :summary_action_breakdowns, { list: { enum: -> { AdsInsights::SUMMARY_ACTION_BREAKDOWNS }} }
api.has_param :time_increment, 'string'
api.has_param :time_range, 'object'
api.has_param :time_ranges, { list: 'object' }
api.has_param :time_range, 'hash'
api.has_param :time_ranges, { list: 'hash' }
api.has_param :use_account_attribution_setting, 'bool'
api.has_param :use_unified_attribution_setting, 'bool'
end
Expand All @@ -212,8 +215,8 @@ class Ad < AdObject
api.has_param :summary, { list: 'string' }
api.has_param :summary_action_breakdowns, { list: { enum: -> { AdsInsights::SUMMARY_ACTION_BREAKDOWNS }} }
api.has_param :time_increment, 'string'
api.has_param :time_range, 'object'
api.has_param :time_ranges, { list: 'object' }
api.has_param :time_range, 'hash'
api.has_param :time_ranges, { list: 'hash' }
api.has_param :use_account_attribution_setting, 'bool'
api.has_param :use_unified_attribution_setting, 'bool'
end
Expand Down
43 changes: 34 additions & 9 deletions lib/facebook_ads/ad_objects/ad_account.rb
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ class AdAccount < AdObject
"PRIMARY",
"REGULATED_CATEGORIES_AUDIENCE",
"STUDY_RULE_AUDIENCE",
"SUBSCRIBER_SEGMENT",
"VIDEO",
"WEBSITE",
]
Expand All @@ -138,6 +139,7 @@ class AdAccount < AdObject
field :ad_account_promotable_objects, 'AdAccountPromotableObjects'
field :age, 'double'
field :agency_client_declaration, 'AgencyClientDeclaration'
field :all_capabilities, { list: 'string' }
field :amount_spent, 'string'
field :attribution_spec, { list: 'AttributionSpec' }
field :balance, 'string'
Expand Down Expand Up @@ -198,6 +200,7 @@ class AdAccount < AdObject
field :timezone_name, 'string'
field :timezone_offset_hours_utc, 'double'
field :tos_accepted, 'hash'
field :user_access_expire_time, 'datetime'
field :user_tasks, { list: 'string' }
field :user_tos_accepted, 'hash'
field :viewable_business, 'Business'
Expand All @@ -207,6 +210,7 @@ class AdAccount < AdObject
edge.get 'AdAccountBusinessConstraints'
edge.post 'AdAccountBusinessConstraints' do |api|
api.has_param :audience_controls, 'object'
api.has_param :placement_controls, 'object'
end
end

Expand Down Expand Up @@ -307,7 +311,7 @@ class AdAccount < AdObject
api.has_param :recommender_settings, 'hash'
api.has_param :source_instagram_media_id, 'string'
api.has_param :template_url, 'string'
api.has_param :template_url_spec, 'object'
api.has_param :template_url_spec, 'string'
api.has_param :thumbnail_url, 'string'
api.has_param :title, 'string'
api.has_param :url_tags, 'string'
Expand Down Expand Up @@ -336,7 +340,7 @@ class AdAccount < AdObject
api.has_param :selected_hashes, { list: 'string' }
end
edge.post list: 'AdImage' do |api|
api.has_param :bytes, 'object'
api.has_param :bytes, 'string'
api.has_param :copy_from, 'object'
api.accepts_files!
end
Expand Down Expand Up @@ -387,10 +391,12 @@ class AdAccount < AdObject
edge.get 'Ad' do |api|
api.has_param :date_preset, { enum: -> { Ad::DATE_PRESET }}
api.has_param :effective_status, { list: 'string' }
api.has_param :time_range, 'object'
api.has_param :time_range, 'hash'
api.has_param :updated_since, 'int'
end
edge.post 'Ad' do |api|
api.has_param :ad_schedule_end_time, 'datetime'
api.has_param :ad_schedule_start_time, 'datetime'
api.has_param :adlabels, { list: 'object' }
api.has_param :adset_id, 'int'
api.has_param :adset_spec, 'AdSet'
Expand All @@ -416,9 +422,13 @@ class AdAccount < AdObject

has_edge :ads_conversion_goal do |edge|
edge.post do |api|
api.has_param :conversion_event_value_source, { enum: %w{DATA_SOURCE VALUE_RULE }}
api.has_param :description, 'string'
api.has_param :goal_creation_method, { enum: %w{ADVERTISER_CREATED_UI AUTO_MIGRATION L2_ENHANCE_API_MIGRATION }}
api.has_param :goal_name, 'string'
api.has_param :performance_goal, { enum: %w{AD_OPTIMIZATION_GOAL_AD_RECALL_LIFT AD_OPTIMIZATION_GOAL_APP_DOWNLOADS AD_OPTIMIZATION_GOAL_APP_INSTALLS AD_OPTIMIZATION_GOAL_APP_INSTALLS_AND_OFFSITE_CONVERSIONS AD_OPTIMIZATION_GOAL_BRAND_AWARENESS AD_OPTIMIZATION_GOAL_CLICKS AD_OPTIMIZATION_GOAL_COMPLETED_VIDEO_VIEWS AD_OPTIMIZATION_GOAL_CONVERSATIONS AD_OPTIMIZATION_GOAL_DERIVED_EVENTS AD_OPTIMIZATION_GOAL_DWELLS AD_OPTIMIZATION_GOAL_ENGAGED_REACH AD_OPTIMIZATION_GOAL_ENGAGED_USERS AD_OPTIMIZATION_GOAL_EVENT_RESPONSES AD_OPTIMIZATION_GOAL_EXTERNAL AD_OPTIMIZATION_GOAL_IMPRESSIONS AD_OPTIMIZATION_GOAL_INCREMENTAL_OFFSITE_CONVERSIONS AD_OPTIMIZATION_GOAL_IN_APP_VALUE AD_OPTIMIZATION_GOAL_JOB_APPLICATIONS AD_OPTIMIZATION_GOAL_LANDING_PAGE_VIEWS AD_OPTIMIZATION_GOAL_LEAD_GENERATION AD_OPTIMIZATION_GOAL_MEDIA_DOWNLOADS AD_OPTIMIZATION_GOAL_MESSAGING_APPOINTMENT_CONVERSION AD_OPTIMIZATION_GOAL_MESSAGING_DEEP_CONVERSATION_AND_FOLLOW AD_OPTIMIZATION_GOAL_MESSAGING_DEEP_CONVERSATION_AND_REPLY AD_OPTIMIZATION_GOAL_MESSAGING_PURCHASE_CONVERSION AD_OPTIMIZATION_GOAL_MID_FUNNEL_EVENT AD_OPTIMIZATION_GOAL_MRC_VIDEO_VIEWS AD_OPTIMIZATION_GOAL_MULTI_CONVERSIONS AD_OPTIMIZATION_GOAL_NONE AD_OPTIMIZATION_GOAL_OFFER_CLAIMS AD_OPTIMIZATION_GOAL_OFFLINE_CONVERSIONS AD_OPTIMIZATION_GOAL_OFFSITE_CLICKS AD_OPTIMIZATION_GOAL_OFFSITE_CONVERSIONS AD_OPTIMIZATION_GOAL_ONSITE_CONVERSIONS AD_OPTIMIZATION_GOAL_PAGE_ENGAGEMENT AD_OPTIMIZATION_GOAL_PAGE_FOLLOWS AD_OPTIMIZATION_GOAL_PAGE_LIKES AD_OPTIMIZATION_GOAL_POST_ENGAGEMENT AD_OPTIMIZATION_GOAL_QUALITY_CALL AD_OPTIMIZATION_GOAL_QUALITY_LEAD AD_OPTIMIZATION_GOAL_REACH AD_OPTIMIZATION_GOAL_REMINDERS_SET AD_OPTIMIZATION_GOAL_REPLIES AD_OPTIMIZATION_GOAL_RESEARCH_POLL_RESPONSES AD_OPTIMIZATION_GOAL_RETENTION AD_OPTIMIZATION_GOAL_RETURN_ON_AD_SPEND AD_OPTIMIZATION_GOAL_SOCIAL_IMPRESSIONS AD_OPTIMIZATION_GOAL_STORE_VISITS AD_OPTIMIZATION_GOAL_SUBSCRIBERS AD_OPTIMIZATION_GOAL_TICKET_PURCHASE AD_OPTIMIZATION_GOAL_VALUE AD_OPTIMIZATION_GOAL_VIDEO_LONG_VIEWS AD_OPTIMIZATION_GOAL_VIDEO_VIEWS AD_OPTIMIZATION_GOAL_VIDEO_VIEWS_15S AD_OPTIMIZATION_GOAL_VISIT_INSTAGRAM_PROFILE AD_OPTIMIZATION_GOAL_VISIT_INSTAGRAM_PROFILE_AND_PROFILE_ACTIONS }}
api.has_param :single_channel_conversion_events, { list: 'hash' }
api.has_param :value_adjustment_rule, 'hash'
end
end

Expand Down Expand Up @@ -452,7 +462,7 @@ class AdAccount < AdObject
api.has_param :date_preset, { enum: -> { AdSet::DATE_PRESET }}
api.has_param :effective_status, { list: { enum: -> { AdSet::EFFECTIVE_STATUS }} }
api.has_param :is_completed, 'bool'
api.has_param :time_range, 'object'
api.has_param :time_range, 'hash'
api.has_param :updated_since, 'int'
end
edge.post 'AdSet' do |api|
Expand All @@ -464,6 +474,7 @@ class AdAccount < AdObject
api.has_param :bid_constraints, 'hash'
api.has_param :bid_strategy, { enum: -> { AdSet::BID_STRATEGY }}
api.has_param :billing_event, { enum: -> { AdSet::BILLING_EVENT }}
api.has_param :campaign_attribution, 'object'
api.has_param :campaign_id, 'string'
api.has_param :campaign_spec, 'object'
api.has_param :creative_sequence, { list: 'string' }
Expand Down Expand Up @@ -705,7 +716,7 @@ class AdAccount < AdObject
api.has_param :date_preset, { enum: -> { Campaign::DATE_PRESET }}
api.has_param :effective_status, { list: { enum: -> { Campaign::EFFECTIVE_STATUS }} }
api.has_param :is_completed, 'bool'
api.has_param :time_range, 'object'
api.has_param :time_range, 'hash'
end
edge.post 'Campaign' do |api|
api.has_param :adlabels, { list: 'object' }
Expand Down Expand Up @@ -828,6 +839,10 @@ class AdAccount < AdObject
end
end

has_edge :dsa_recommendations do |edge|
edge.get 'AdAccountDsaRecommendations'
end

has_edge :generatepreviews do |edge|
edge.get 'AdPreview' do |api|
api.has_param :ad_format, { enum: -> { AdPreview::AD_FORMAT }}
Expand Down Expand Up @@ -871,8 +886,8 @@ class AdAccount < AdObject
api.has_param :summary, { list: 'string' }
api.has_param :summary_action_breakdowns, { list: { enum: -> { AdsInsights::SUMMARY_ACTION_BREAKDOWNS }} }
api.has_param :time_increment, 'string'
api.has_param :time_range, 'object'
api.has_param :time_ranges, { list: 'object' }
api.has_param :time_range, 'hash'
api.has_param :time_ranges, { list: 'hash' }
api.has_param :use_account_attribution_setting, 'bool'
api.has_param :use_unified_attribution_setting, 'bool'
end
Expand All @@ -894,8 +909,8 @@ class AdAccount < AdObject
api.has_param :summary, { list: 'string' }
api.has_param :summary_action_breakdowns, { list: { enum: -> { AdsInsights::SUMMARY_ACTION_BREAKDOWNS }} }
api.has_param :time_increment, 'string'
api.has_param :time_range, 'object'
api.has_param :time_ranges, { list: 'object' }
api.has_param :time_range, 'hash'
api.has_param :time_ranges, { list: 'hash' }
api.has_param :use_account_attribution_setting, 'bool'
api.has_param :use_unified_attribution_setting, 'bool'
end
Expand All @@ -917,6 +932,9 @@ class AdAccount < AdObject
api.has_param :campaign_group_status, { enum: %w{ACTIVE ADSET_PAUSED ARCHIVED CAMPAIGN_PAUSED DELETED DISAPPROVED IN_PROCESS PAUSED PENDING_BILLING_INFO PENDING_REVIEW PREAPPROVED WITH_ISSUES }}
api.has_param :conversion_domain, 'string'
api.has_param :custom_event_type, { enum: %w{ADD_TO_CART CONTENT_VIEW PURCHASE }}
api.has_param :daily_budget, 'int'
api.has_param :dsa_beneficiary, 'string'
api.has_param :dsa_payor, 'string'
api.has_param :end_time, 'int'
api.has_param :lifetime_budget, 'int'
api.has_param :override_creative_text, 'string'
Expand Down Expand Up @@ -1029,6 +1047,7 @@ class AdAccount < AdObject
api.has_param :impression, 'int'
api.has_param :instream_packages, { list: { enum: -> { ReachFrequencyPrediction::INSTREAM_PACKAGES }} }
api.has_param :interval_frequency_cap_reset_period, 'int'
api.has_param :is_balanced_frequency, 'bool'
api.has_param :is_bonus_media, 'bool'
api.has_param :is_conversion_goal, 'bool'
api.has_param :is_full_view, 'bool'
Expand All @@ -1047,6 +1066,8 @@ class AdAccount < AdObject
api.has_param :stop_time, 'int'
api.has_param :story_event_type, 'int'
api.has_param :target_cpm, 'int'
api.has_param :target_frequency, 'int'
api.has_param :target_frequency_reset_period, 'int'
api.has_param :target_spec, 'Targeting'
api.has_param :video_view_length_constraint, 'int'
end
Expand Down Expand Up @@ -1153,5 +1174,9 @@ class AdAccount < AdObject
end
end

has_edge :value_adjustment_rules do |edge|
edge.get
end

end
end
1 change: 1 addition & 0 deletions lib/facebook_ads/ad_objects/ad_account_ad_rules_history.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ class AdAccountAdRulesHistory < AdObject
"CHANGED_BID",
"CHANGED_BUDGET",
"EMAIL",
"ENABLE_ADVANTAGE_PLUS_CREATIVE",
"ENABLE_AUTOFLOW",
"ENDPOINT_PINGED",
"ERROR",
Expand Down
20 changes: 20 additions & 0 deletions lib/facebook_ads/ad_objects/ad_account_ad_volume.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@ class AdAccountAdVolume < AdObject
"AB_TEST",
"ACO_TOGGLE",
"ADS_REPORTING",
"ADVANCED_CAMPAIGN_BUDGET",
"ADVANTAGE_PLUS_CREATIVE",
"ADVANTAGE_PLUS_CREATIVE_CATALOG",
"ADVANTAGE_SHOPPING_CAMPAIGN",
"ADVANTAGE_SHOPPING_CAMPAIGN_FRAGMENTATION",
"AD_OBJECTIVE",
"AEM_V2_INELIGIBLE",
"AGGREGATED_BID_LIMITED",
Expand All @@ -28,48 +32,64 @@ class AdAccountAdVolume < AdObject
"AUCTION_OVERLAP_CONSOLIDATION",
"AUDIENCE_EXPANSION",
"AUTOFLOW_OPT_IN",
"AUTOFLOW_OPT_IN_FALLBACK_DUPLICATION_FLOW",
"AUTOMATIC_PLACEMENTS",
"AUTO_BID",
"BROAD_TARGETING",
"CAPI",
"CAPI_PERFORMANCE_MATCH_KEY",
"CASH_REWARDS_OPT_IN",
"CONNECT_FACEBOOK_PAGE_TO_INSTAGRAM",
"CONNECT_FACEBOOK_PAGE_TO_WHATSAPP",
"COST_GOAL",
"COST_GOAL_BUDGET_LIMITED",
"COST_GOAL_CPA_LIMITED",
"COST_PER_RESULT",
"CREATION_PACKAGE_UPGRADE_TO_ASC",
"CREATIVE_BADGE",
"CREATIVE_FATIGUE",
"CREATIVE_FATIGUE_HOURLY",
"CREATIVE_LIMITED",
"CREATIVE_LIMITED_HOURLY",
"CREATOR_ADS_PA_CONVERSION",
"CTA",
"DEAD_LINK",
"DYNAMIC_ADVANTAGE_CAMPAIGN_BUDGET",
"ECOSYSTEM_BID_REDUCE_L1_CARDINALITY",
"FRAGMENTATION",
"GES_TEST",
"GUIDANCE_CENTER_CODE_GEN",
"LEARNING_LIMITED",
"LOW_OUTCOME",
"MERLIN_GUIDANCE",
"MMT_CAROUSEL_TO_VIDEO",
"MOBILE_FIRST_VIDEO",
"MR_AEMV2SUB_KCONSOLIDATION",
"MULTI_TEXT",
"MUSIC",
"OPTIMAL_SPEND",
"PAYMENT_METHOD",
"PERFORMANT_CREATIVE_REELS_OPT_IN",
"PFR_L1_INLINE_MMT",
"PREDICTIVE_CREATIVE_LIMITED",
"PREDICTIVE_CREATIVE_LIMITED_HOURLY",
"RAPID_LEARNING_LIMITED",
"REVERT",
"SCALE_GOOD_CAMPAIGN",
"SEMANTIC_BASED_AUDIENCE_EXPANSION",
"SETUP_PIXEL",
"SHOPS_ADS",
"SIGNALS_GROWTH_CAPI",
"SIGNALS_GROWTH_CAPI_TABLE",
"SIX_PLUS_MANUAL_PLACEMENTS",
"SPEND_LIMIT",
"SYD_TEST_MODE",
"TOP_ADSETS_WITH_ADS_UNDER_CAP",
"TOP_CAMPAIGNS_WITH_ADS_UNDER_CAP",
"UNCROP_IMAGE",
"UNECONOMICAL_ADS_THROTTLING",
"UNUSED_BUDGET",
"VIDEO_LENGTH",
"ZERO_IMPRESSION",
]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ module FacebookAds
class AdAccountBusinessConstraints < AdObject

field :audience_controls, 'object'
field :placement_controls, 'object'
has_no_id
has_no_get
has_no_post
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ class AdAccountDeliveryEstimate < AdObject
"QUALITY_CALL",
"QUALITY_LEAD",
"REACH",
"REMINDERS_SET",
"SUBSCRIBERS",
"THRUPLAY",
"VALUE",
Expand Down
25 changes: 25 additions & 0 deletions lib/facebook_ads/ad_objects/ad_account_dsa_recommendations.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.

# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.

# FB:AUTOGEN

module FacebookAds
# This class is auto-generated.

# For any issues or feature requests related to this class, please let us know
# on github and we'll fix in our codegen framework. We'll not be able to accept
# pull request for this class.

class AdAccountDsaRecommendations < AdObject

field :recommendations, { list: 'string' }
has_no_id
has_no_get
has_no_post
has_no_delete

end
end
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ class AdAccountMatchedSearchApplicationsEdgeData < AdObject
"APK_PURE",
"APTOIDE_A1_STORE",
"BEMOBI_MOBILE_STORE",
"DIGITAL_TURBINE_STORE",
"DOES_NOT_EXIST",
"FB_ANDROID_STORE",
"FB_CANVAS",
Expand Down
4 changes: 4 additions & 0 deletions lib/facebook_ads/ad_objects/ad_account_targeting_unified.rb
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,7 @@ class AdAccountTargetingUnified < AdObject
"excluded_user_adclusters",
"excluded_user_device",
"exclusions",
"expanded_implicit_custom_audiences",
"facebook_positions",
"family_statuses",
"fb_deal_id",
Expand Down Expand Up @@ -395,6 +396,7 @@ class AdAccountTargetingUnified < AdObject
"location_categories",
"location_cluster_ids",
"location_expansion",
"marketing_message_targeting",
"marketplace_product_categories",
"messenger_positions",
"mobile_device_model",
Expand All @@ -415,6 +417,7 @@ class AdAccountTargetingUnified < AdObject
"relationship_statuses",
"rtb_flag",
"site_category",
"tafe_ca_mitigation_strategy",
"targeting_automation",
"targeting_optimization",
"targeting_relaxation_types",
Expand All @@ -441,6 +444,7 @@ class AdAccountTargetingUnified < AdObject
"apk_pure",
"aptoide_a1_store",
"bemobi_mobile_store",
"digital_turbine_store",
"does_not_exist",
"fb_android_store",
"fb_canvas",
Expand Down
Loading

0 comments on commit 4cb4408

Please sign in to comment.