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: D50948295

fbshipit-source-id: cf8bb45f02bc4541869a94145f997d45505ace7c
  • Loading branch information
generatedunixname89002005295453 authored and facebook-github-bot committed Nov 2, 2023
1 parent 3963d74 commit dddfc39
Show file tree
Hide file tree
Showing 27 changed files with 192 additions and 26 deletions.
6 changes: 0 additions & 6 deletions lib/facebook_ads/ad_objects/ad.rb
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,6 @@ class Ad < AdObject
"validate_only",
]

META_REWARD_ADGROUP_STATUS = [
"ACTIVE",
"INACTIVE",
]

OPERATOR = [
"ALL",
"ANY",
Expand Down Expand Up @@ -123,7 +118,6 @@ class Ad < AdObject
field :id, 'string'
field :issues_info, { list: 'AdgroupIssuesInfo' }
field :last_updated_by_app_id, 'string'
field :meta_reward_adgroup_status, 'string'
field :name, 'string'
field :preview_shareable_link, 'string'
field :priority, 'int'
Expand Down
2 changes: 1 addition & 1 deletion lib/facebook_ads/ad_objects/ad_account.rb
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,6 @@ class AdAccount < AdObject
api.has_param :engagement_audience, 'bool'
api.has_param :execution_options, { list: { enum: -> { Ad::EXECUTION_OPTIONS }} }
api.has_param :include_demolink_hashes, 'bool'
api.has_param :meta_reward_adgroup_status, { enum: -> { Ad::META_REWARD_ADGROUP_STATUS }}
api.has_param :name, 'string'
api.has_param :priority, 'int'
api.has_param :source_ad_id, 'string'
Expand Down Expand Up @@ -789,6 +788,7 @@ class AdAccount < AdObject
api.has_param :subtype, { enum: -> { CustomAudience::SUBTYPE }}
api.has_param :use_in_campaigns, 'bool'
api.has_param :video_group_ids, { list: 'string' }
api.has_param :whats_app_business_phone_number_id, 'string'
end
end

Expand Down
21 changes: 21 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 @@ -16,9 +16,11 @@ module FacebookAds
class AdAccountAdVolume < AdObject
RECOMMENDATION_TYPE = [
"AB_TEST",
"ACCOUNT_SPEND_LIMIT",
"ACO_TOGGLE",
"ADS_REPORTING",
"ADVANCED_CAMPAIGN_BUDGET",
"ADVANTAGE_CUSTOM_AUDIENCE",
"ADVANTAGE_CUSTOM_AUDIENCE_UPSELL",
"ADVANTAGE_PLUS_AUDIENCE_FRICTION",
"ADVANTAGE_PLUS_AUDIENCE_TOGGLE",
Expand All @@ -31,10 +33,16 @@ class AdAccountAdVolume < AdObject
"AGGREGATED_BID_LIMITED",
"AGGREGATED_BUDGET_LIMITED",
"AGGREGATED_COST_LIMITED",
"APP_AEM_V2_INSTALLATION_PROMOTION",
"ASC_BUDGET_OPTIMIZATION",
"ASC_BUDGET_OPTIMIZATION_PFR",
"ASPECT_RATIO",
"ATLEAST_6_PLACEMENTS",
"AUCTION_OVERLAP",
"AUCTION_OVERLAP_CONSOLIDATION",
"AUDIENCE_EXPANSION",
"AUDIENCE_EXPANSION_RETARGETING",
"AUDIENCE_LEARNING_LIMITED",
"AUTOFLOW_OPT_IN",
"AUTOFLOW_OPT_IN_FALLBACK_DUPLICATION_FLOW",
"AUTOMATIC_PLACEMENTS",
Expand All @@ -50,7 +58,9 @@ class AdAccountAdVolume < AdObject
"COST_GOAL_CPA_LIMITED",
"COST_PER_RESULT",
"CREATION_PACKAGE_UPGRADE_TO_ASC",
"CREATION_PACKAGE_UPGRADE_TO_TLA",
"CREATIVE_BADGE",
"CREATIVE_DIVERSITY",
"CREATIVE_FATIGUE",
"CREATIVE_FATIGUE_HOURLY",
"CREATIVE_LIMITED",
Expand All @@ -64,8 +74,11 @@ class AdAccountAdVolume < AdObject
"FRAGMENTATION",
"GES_TEST",
"GUIDANCE_CENTER_CODE_GEN",
"HIGH_COST",
"HISTORICAL_BENCHMARK",
"LEARNING_LIMITED",
"LEARNING_PAUSE_FRICTION",
"LEARNING_PHASE_BUDGET_EDITS",
"LOW_OUTCOME",
"MERLIN_GUIDANCE",
"MIXED_PA_COMBINE_ADSETS",
Expand All @@ -74,13 +87,16 @@ class AdAccountAdVolume < AdObject
"MR_AEMV2SUB_KCONSOLIDATION",
"MULTI_TEXT",
"MUSIC",
"NOT_APPLICABLE",
"OPTIMAL_BAU",
"PAYMENT_METHOD",
"PERFORMANT_CREATIVE_REELS_OPT_IN",
"PFR_L1_INLINE_MMT",
"PREDICTIVE_CREATIVE_LIMITED",
"PREDICTIVE_CREATIVE_LIMITED_HOURLY",
"RAPID_LEARNING_LIMITED",
"RAPID_LEARNING_PHASE",
"REELS_DUPLICATION_UPSELL",
"REVERT",
"SCALE_GOOD_CAMPAIGN",
"SEMANTIC_BASED_AUDIENCE_EXPANSION",
Expand All @@ -93,10 +109,15 @@ class AdAccountAdVolume < AdObject
"SYD_TEST_MODE",
"TOP_ADSETS_WITH_ADS_UNDER_CAP",
"TOP_CAMPAIGNS_WITH_ADS_UNDER_CAP",
"TWO_P_GUIDANCE_CARD_AAA",
"TWO_P_GUIDANCE_CARD_AUTO_PLACEMENT",
"TWO_P_GUIDANCE_CARD_CBO_OFF",
"TWO_P_GUIDANCE_CARD_CTM_PREFLIGHT",
"UNCROP_IMAGE",
"UNECONOMICAL_ADS_THROTTLING",
"UNUSED_BUDGET",
"VIDEO_LENGTH",
"ZERO_CONVERSION",
"ZERO_IMPRESSION",
]

Expand Down
4 changes: 3 additions & 1 deletion lib/facebook_ads/ad_objects/ad_asset_feed_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ class AdAssetFeedSpec < AdObject
"LISTEN_NOW",
"MESSAGE_PAGE",
"MOBILE_DOWNLOAD",
"MOMENTS",
"NO_BUTTON",
"OPEN_INSTANT_APP",
"OPEN_LINK",
Expand Down Expand Up @@ -110,7 +109,10 @@ class AdAssetFeedSpec < AdObject
field :images, { list: 'AdAssetFeedSpecImage' }
field :link_urls, { list: 'AdAssetFeedSpecLinkUrl' }
field :message_extensions, { list: 'AdAssetMessageExtensions' }
field :onsite_destinations, { list: 'object' }
field :optimization_type, 'string'
field :reasons_to_shop, 'bool'
field :shops_bundle, 'bool'
field :titles, { list: 'AdAssetFeedSpecTitle' }
field :videos, { list: 'AdAssetFeedSpecVideo' }
has_no_id
Expand Down
2 changes: 1 addition & 1 deletion lib/facebook_ads/ad_objects/ad_creative.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ class AdCreative < AdObject
"LISTEN_NOW",
"MESSAGE_PAGE",
"MOBILE_DOWNLOAD",
"MOMENTS",
"NO_BUTTON",
"OPEN_INSTANT_APP",
"OPEN_LINK",
Expand Down Expand Up @@ -201,6 +200,7 @@ class AdCreative < AdObject
field :object_type, { enum: -> { OBJECT_TYPE }}
field :object_url, 'string'
field :omnichannel_link_spec, 'AdCreativeOmnichannelLinkSpec'
field :photo_album_source_object_story_id, 'string'
field :place_page_set_id, 'string'
field :platform_customizations, 'AdCreativePlatformCustomization'
field :playable_asset_id, 'string'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ class AdCreativeBrandedContentAds < AdObject
field :ad_format, 'int'
field :creator_ad_permission_type, 'string'
field :instagram_boost_post_access_token, 'string'
field :is_mca_internal, 'bool'
field :partners, { list: 'object' }
field :ui_version, 'int'
has_no_id
Expand Down
1 change: 1 addition & 0 deletions lib/facebook_ads/ad_objects/ad_creative_link_data.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ class AdCreativeLinkData < AdObject
field :additional_image_index, 'int'
field :app_link_spec, 'AdCreativeLinkDataAppLinkSpec'
field :attachment_style, 'string'
field :automated_product_tags, 'bool'
field :branded_content_shared_to_sponsor_status, 'string'
field :branded_content_sponsor_page_id, 'string'
field :call_to_action, 'AdCreativeLinkDataCallToAction'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ class AdCreativeLinkDataCallToAction < AdObject
"LISTEN_NOW",
"MESSAGE_PAGE",
"MOBILE_DOWNLOAD",
"MOMENTS",
"NO_BUTTON",
"OPEN_INSTANT_APP",
"OPEN_LINK",
Expand Down
1 change: 1 addition & 0 deletions lib/facebook_ads/ad_objects/ad_promoted_object.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ class AdPromotedObject < AdObject
"ADD_PAYMENT_INFO",
"ADD_TO_CART",
"ADD_TO_WISHLIST",
"AD_IMPRESSION",
"COMPLETE_REGISTRATION",
"CONTACT",
"CONTENT_VIEW",
Expand Down
9 changes: 9 additions & 0 deletions lib/facebook_ads/ad_objects/ad_set.rb
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,15 @@ class AdSet < AdObject
end
end

has_edge :budget_schedules do |edge|
edge.post 'HighDemandPeriod' do |api|
api.has_param :budget_value, 'int'
api.has_param :budget_value_type, { enum: -> { HighDemandPeriod::BUDGET_VALUE_TYPE }}
api.has_param :time_end, 'int'
api.has_param :time_start, 'int'
end
end

has_edge :copies do |edge|
edge.get 'AdSet' do |api|
api.has_param :date_preset, { enum: -> { AdSet::DATE_PRESET }}
Expand Down
2 changes: 2 additions & 0 deletions lib/facebook_ads/ad_objects/ads_insights.rb
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ class AdsInsights < AdObject
field :catalog_segment_value_omni_purchase_roas, { list: 'AdsActionStats' }
field :catalog_segment_value_website_purchase_roas, { list: 'AdsActionStats' }
field :clicks, 'string'
field :conversion_lead_rate, 'string'
field :conversion_rate_ranking, 'string'
field :conversion_values, { list: 'AdsActionStats' }
field :conversions, { list: 'AdsActionStats' }
Expand All @@ -177,6 +178,7 @@ class AdsInsights < AdObject
field :cost_per_action_type, { list: 'AdsActionStats' }
field :cost_per_ad_click, { list: 'AdsActionStats' }
field :cost_per_conversion, { list: 'AdsActionStats' }
field :cost_per_conversion_lead, 'string'
field :cost_per_dda_countby_convs, 'string'
field :cost_per_estimated_ad_recallers, 'string'
field :cost_per_inline_link_click, 'string'
Expand Down
2 changes: 2 additions & 0 deletions lib/facebook_ads/ad_objects/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,8 @@ class Application < AdObject
field :restrictions, 'object'
field :restrictive_data_filter_params, 'string'
field :restrictive_data_filter_rules, 'string'
field :sdk_auto_logging_default_value, 'bool'
field :sdk_auto_logging_override_value, 'bool'
field :sdk_update_message, 'string'
field :seamless_login, 'int'
field :secure_canvas_url, 'string'
Expand Down
1 change: 1 addition & 0 deletions lib/facebook_ads/ad_objects/business.rb
Original file line number Diff line number Diff line change
Expand Up @@ -715,6 +715,7 @@ class Business < AdObject
api.has_param :sales_rep_email, 'string'
api.has_param :seller_external_website_url, 'string'
api.has_param :seller_targeting_countries, { list: 'string' }
api.has_param :skip_partner_page_creation, 'bool'
api.has_param :survey_business_type, { enum: %w{ADVERTISER AGENCY APP_DEVELOPER PUBLISHER }}
api.has_param :survey_num_assets, 'int'
api.has_param :survey_num_people, 'int'
Expand Down
9 changes: 9 additions & 0 deletions lib/facebook_ads/ad_objects/campaign.rb
Original file line number Diff line number Diff line change
Expand Up @@ -463,6 +463,15 @@ class Campaign < AdObject
end
end

has_edge :budget_schedules do |edge|
edge.post 'HighDemandPeriod' do |api|
api.has_param :budget_value, 'int'
api.has_param :budget_value_type, { enum: -> { HighDemandPeriod::BUDGET_VALUE_TYPE }}
api.has_param :time_end, 'int'
api.has_param :time_start, 'int'
end
end

has_edge :copies do |edge|
edge.get 'Campaign' do |api|
api.has_param :date_preset, { enum: -> { Campaign::DATE_PRESET }}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# 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 CtxPartnerAppWelcomeMessageFlow < AdObject

field :compatible_platforms, { list: 'string' }
field :eligible_platforms, { list: 'string' }
field :id, 'string'
field :is_used_in_ad, 'bool'
field :last_update_time, 'datetime'
field :name, 'string'
field :welcome_message_flow, 'string'
has_no_post
has_no_delete

end
end
1 change: 1 addition & 0 deletions lib/facebook_ads/ad_objects/custom_audience.rb
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ class CustomAudience < AdObject
field :product_set_id, 'string'
field :use_in_campaigns, 'bool'
field :video_group_ids, { list: 'string' }
field :whats_app_business_phone_number_id, 'string'

has_edge :adaccounts do |edge|
edge.delete do |api|
Expand Down
1 change: 1 addition & 0 deletions lib/facebook_ads/ad_objects/custom_audience_data_source.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ class CustomAudienceDataSource < AdObject
"INSTANT_ARTICLE_EVENTS",
"LOOKALIKE_PLATFORM",
"MAIL_CHIMP_EMAIL_HASHES",
"MESSENGER_ONSITE_SUBSCRIPTION",
"MOBILE_ADVERTISER_IDS",
"MOBILE_APP_COMBINATION_EVENTS",
"MOBILE_APP_CUSTOM_AUDIENCE_USERS",
Expand Down
33 changes: 33 additions & 0 deletions lib/facebook_ads/ad_objects/has_lead_access.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# 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 HasLeadAccess < AdObject

field :app_has_leads_permission, 'bool'
field :can_access_lead, 'bool'
field :enabled_lead_access_manager, 'bool'
field :failure_reason, 'string'
field :failure_resolution, 'string'
field :is_page_admin, 'bool'
field :page_id, 'string'
field :user_has_leads_permission, 'bool'
field :user_id, 'string'
has_no_id
has_no_get
has_no_post
has_no_delete

end
end
2 changes: 1 addition & 1 deletion lib/facebook_ads/ad_objects/managed_partner_business.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class ManagedPartnerBusiness < AdObject

field :ad_account, 'AdAccount'
field :catalog_segment, 'ProductCatalog'
field :extended_credit, 'ExtendedCredit'
field :extended_credit, 'ManagedPartnerExtendedCredit'
field :page, 'Page'
field :seller_business_info, 'object'
field :seller_business_status, 'string'
Expand Down
26 changes: 26 additions & 0 deletions lib/facebook_ads/ad_objects/managed_partner_extended_credit.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# 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 ManagedPartnerExtendedCredit < AdObject

field :id, 'string'
field :max_balance, 'CurrencyAmount'
field :receiving_credit_allocation_config, 'ExtendedCreditAllocationConfig'
has_no_get
has_no_post
has_no_delete

end
end
Loading

0 comments on commit dddfc39

Please sign in to comment.