From dddfc397d65a6f638d16c6f2c6e5bdc2d74f4c05 Mon Sep 17 00:00:00 2001 From: generatedunixname89002005295453 Date: Thu, 2 Nov 2023 15:23:24 -0700 Subject: [PATCH] Auto-generated ruby SDK code update Summary: ignore-conflict-markers Reviewed By: stcheng Differential Revision: D50948295 fbshipit-source-id: cf8bb45f02bc4541869a94145f997d45505ace7c --- lib/facebook_ads/ad_objects/ad.rb | 6 ---- lib/facebook_ads/ad_objects/ad_account.rb | 2 +- .../ad_objects/ad_account_ad_volume.rb | 21 ++++++++++++ .../ad_objects/ad_asset_feed_spec.rb | 4 ++- lib/facebook_ads/ad_objects/ad_creative.rb | 2 +- .../ad_creative_branded_content_ads.rb | 1 + .../ad_objects/ad_creative_link_data.rb | 1 + .../ad_creative_link_data_call_to_action.rb | 1 - .../ad_objects/ad_promoted_object.rb | 1 + lib/facebook_ads/ad_objects/ad_set.rb | 9 +++++ lib/facebook_ads/ad_objects/ads_insights.rb | 2 ++ lib/facebook_ads/ad_objects/application.rb | 2 ++ lib/facebook_ads/ad_objects/business.rb | 1 + lib/facebook_ads/ad_objects/campaign.rb | 9 +++++ .../ctx_partner_app_welcome_message_flow.rb | 29 ++++++++++++++++ .../ad_objects/custom_audience.rb | 1 + .../ad_objects/custom_audience_data_source.rb | 1 + .../ad_objects/has_lead_access.rb | 33 +++++++++++++++++++ .../ad_objects/managed_partner_business.rb | 2 +- .../managed_partner_extended_credit.rb | 26 +++++++++++++++ lib/facebook_ads/ad_objects/page.rb | 26 +++++++++++++-- .../ad_objects/page_post_experiment.rb | 15 ++++++++- .../product_catalog_diagnostic_group.rb | 2 ++ lib/facebook_ads/ad_objects/product_item.rb | 5 +++ lib/facebook_ads/ad_objects/shop.rb | 2 ++ .../ad_objects/whats_app_business_account.rb | 12 +------ lib/facebook_ads/version.rb | 2 +- 27 files changed, 192 insertions(+), 26 deletions(-) create mode 100644 lib/facebook_ads/ad_objects/ctx_partner_app_welcome_message_flow.rb create mode 100644 lib/facebook_ads/ad_objects/has_lead_access.rb create mode 100644 lib/facebook_ads/ad_objects/managed_partner_extended_credit.rb diff --git a/lib/facebook_ads/ad_objects/ad.rb b/lib/facebook_ads/ad_objects/ad.rb index c1d8d9ce..6b847c21 100644 --- a/lib/facebook_ads/ad_objects/ad.rb +++ b/lib/facebook_ads/ad_objects/ad.rb @@ -80,11 +80,6 @@ class Ad < AdObject "validate_only", ] - META_REWARD_ADGROUP_STATUS = [ - "ACTIVE", - "INACTIVE", - ] - OPERATOR = [ "ALL", "ANY", @@ -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' diff --git a/lib/facebook_ads/ad_objects/ad_account.rb b/lib/facebook_ads/ad_objects/ad_account.rb index 7017e3ae..3fd1a0aa 100644 --- a/lib/facebook_ads/ad_objects/ad_account.rb +++ b/lib/facebook_ads/ad_objects/ad_account.rb @@ -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' @@ -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 diff --git a/lib/facebook_ads/ad_objects/ad_account_ad_volume.rb b/lib/facebook_ads/ad_objects/ad_account_ad_volume.rb index dbd84263..2cb60913 100644 --- a/lib/facebook_ads/ad_objects/ad_account_ad_volume.rb +++ b/lib/facebook_ads/ad_objects/ad_account_ad_volume.rb @@ -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", @@ -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", @@ -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", @@ -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", @@ -74,6 +87,7 @@ class AdAccountAdVolume < AdObject "MR_AEMV2SUB_KCONSOLIDATION", "MULTI_TEXT", "MUSIC", + "NOT_APPLICABLE", "OPTIMAL_BAU", "PAYMENT_METHOD", "PERFORMANT_CREATIVE_REELS_OPT_IN", @@ -81,6 +95,8 @@ class AdAccountAdVolume < AdObject "PREDICTIVE_CREATIVE_LIMITED", "PREDICTIVE_CREATIVE_LIMITED_HOURLY", "RAPID_LEARNING_LIMITED", + "RAPID_LEARNING_PHASE", + "REELS_DUPLICATION_UPSELL", "REVERT", "SCALE_GOOD_CAMPAIGN", "SEMANTIC_BASED_AUDIENCE_EXPANSION", @@ -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", ] diff --git a/lib/facebook_ads/ad_objects/ad_asset_feed_spec.rb b/lib/facebook_ads/ad_objects/ad_asset_feed_spec.rb index 0c71dd36..622227cb 100644 --- a/lib/facebook_ads/ad_objects/ad_asset_feed_spec.rb +++ b/lib/facebook_ads/ad_objects/ad_asset_feed_spec.rb @@ -54,7 +54,6 @@ class AdAssetFeedSpec < AdObject "LISTEN_NOW", "MESSAGE_PAGE", "MOBILE_DOWNLOAD", - "MOMENTS", "NO_BUTTON", "OPEN_INSTANT_APP", "OPEN_LINK", @@ -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 diff --git a/lib/facebook_ads/ad_objects/ad_creative.rb b/lib/facebook_ads/ad_objects/ad_creative.rb index 511e1d28..00e17212 100644 --- a/lib/facebook_ads/ad_objects/ad_creative.rb +++ b/lib/facebook_ads/ad_objects/ad_creative.rb @@ -54,7 +54,6 @@ class AdCreative < AdObject "LISTEN_NOW", "MESSAGE_PAGE", "MOBILE_DOWNLOAD", - "MOMENTS", "NO_BUTTON", "OPEN_INSTANT_APP", "OPEN_LINK", @@ -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' diff --git a/lib/facebook_ads/ad_objects/ad_creative_branded_content_ads.rb b/lib/facebook_ads/ad_objects/ad_creative_branded_content_ads.rb index 18c0960f..f38242ed 100644 --- a/lib/facebook_ads/ad_objects/ad_creative_branded_content_ads.rb +++ b/lib/facebook_ads/ad_objects/ad_creative_branded_content_ads.rb @@ -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 diff --git a/lib/facebook_ads/ad_objects/ad_creative_link_data.rb b/lib/facebook_ads/ad_objects/ad_creative_link_data.rb index 2e36c627..116ec6f5 100644 --- a/lib/facebook_ads/ad_objects/ad_creative_link_data.rb +++ b/lib/facebook_ads/ad_objects/ad_creative_link_data.rb @@ -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' diff --git a/lib/facebook_ads/ad_objects/ad_creative_link_data_call_to_action.rb b/lib/facebook_ads/ad_objects/ad_creative_link_data_call_to_action.rb index 75a55765..ff0d3f6c 100644 --- a/lib/facebook_ads/ad_objects/ad_creative_link_data_call_to_action.rb +++ b/lib/facebook_ads/ad_objects/ad_creative_link_data_call_to_action.rb @@ -54,7 +54,6 @@ class AdCreativeLinkDataCallToAction < AdObject "LISTEN_NOW", "MESSAGE_PAGE", "MOBILE_DOWNLOAD", - "MOMENTS", "NO_BUTTON", "OPEN_INSTANT_APP", "OPEN_LINK", diff --git a/lib/facebook_ads/ad_objects/ad_promoted_object.rb b/lib/facebook_ads/ad_objects/ad_promoted_object.rb index 93a1bf8a..c226392c 100644 --- a/lib/facebook_ads/ad_objects/ad_promoted_object.rb +++ b/lib/facebook_ads/ad_objects/ad_promoted_object.rb @@ -19,6 +19,7 @@ class AdPromotedObject < AdObject "ADD_PAYMENT_INFO", "ADD_TO_CART", "ADD_TO_WISHLIST", + "AD_IMPRESSION", "COMPLETE_REGISTRATION", "CONTACT", "CONTENT_VIEW", diff --git a/lib/facebook_ads/ad_objects/ad_set.rb b/lib/facebook_ads/ad_objects/ad_set.rb index f46ddf3d..017bff85 100644 --- a/lib/facebook_ads/ad_objects/ad_set.rb +++ b/lib/facebook_ads/ad_objects/ad_set.rb @@ -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 }} diff --git a/lib/facebook_ads/ad_objects/ads_insights.rb b/lib/facebook_ads/ad_objects/ads_insights.rb index d3bf269e..ec721b78 100644 --- a/lib/facebook_ads/ad_objects/ads_insights.rb +++ b/lib/facebook_ads/ad_objects/ads_insights.rb @@ -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' } @@ -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' diff --git a/lib/facebook_ads/ad_objects/application.rb b/lib/facebook_ads/ad_objects/application.rb index 7cda6f9d..8f54e311 100644 --- a/lib/facebook_ads/ad_objects/application.rb +++ b/lib/facebook_ads/ad_objects/application.rb @@ -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' diff --git a/lib/facebook_ads/ad_objects/business.rb b/lib/facebook_ads/ad_objects/business.rb index 4326a56f..cb78332a 100644 --- a/lib/facebook_ads/ad_objects/business.rb +++ b/lib/facebook_ads/ad_objects/business.rb @@ -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' diff --git a/lib/facebook_ads/ad_objects/campaign.rb b/lib/facebook_ads/ad_objects/campaign.rb index 2fd08ad0..1c231501 100644 --- a/lib/facebook_ads/ad_objects/campaign.rb +++ b/lib/facebook_ads/ad_objects/campaign.rb @@ -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 }} diff --git a/lib/facebook_ads/ad_objects/ctx_partner_app_welcome_message_flow.rb b/lib/facebook_ads/ad_objects/ctx_partner_app_welcome_message_flow.rb new file mode 100644 index 00000000..d7c72a0f --- /dev/null +++ b/lib/facebook_ads/ad_objects/ctx_partner_app_welcome_message_flow.rb @@ -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 diff --git a/lib/facebook_ads/ad_objects/custom_audience.rb b/lib/facebook_ads/ad_objects/custom_audience.rb index 5b3b794e..d76f34f5 100644 --- a/lib/facebook_ads/ad_objects/custom_audience.rb +++ b/lib/facebook_ads/ad_objects/custom_audience.rb @@ -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| diff --git a/lib/facebook_ads/ad_objects/custom_audience_data_source.rb b/lib/facebook_ads/ad_objects/custom_audience_data_source.rb index 3e7c76da..38a90a2e 100644 --- a/lib/facebook_ads/ad_objects/custom_audience_data_source.rb +++ b/lib/facebook_ads/ad_objects/custom_audience_data_source.rb @@ -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", diff --git a/lib/facebook_ads/ad_objects/has_lead_access.rb b/lib/facebook_ads/ad_objects/has_lead_access.rb new file mode 100644 index 00000000..e722cfc6 --- /dev/null +++ b/lib/facebook_ads/ad_objects/has_lead_access.rb @@ -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 diff --git a/lib/facebook_ads/ad_objects/managed_partner_business.rb b/lib/facebook_ads/ad_objects/managed_partner_business.rb index 32d8f014..48c429f6 100644 --- a/lib/facebook_ads/ad_objects/managed_partner_business.rb +++ b/lib/facebook_ads/ad_objects/managed_partner_business.rb @@ -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' diff --git a/lib/facebook_ads/ad_objects/managed_partner_extended_credit.rb b/lib/facebook_ads/ad_objects/managed_partner_extended_credit.rb new file mode 100644 index 00000000..edb4212e --- /dev/null +++ b/lib/facebook_ads/ad_objects/managed_partner_extended_credit.rb @@ -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 diff --git a/lib/facebook_ads/ad_objects/page.rb b/lib/facebook_ads/ad_objects/page.rb index 449d2f7d..57dadd3c 100644 --- a/lib/facebook_ads/ad_objects/page.rb +++ b/lib/facebook_ads/ad_objects/page.rb @@ -433,6 +433,7 @@ class Page < AdObject field :global_brand_page_name, 'string' field :global_brand_root_id, 'string' field :has_added_app, 'bool' + field :has_lead_access, 'HasLeadAccess' field :has_transitioned_to_new_page_experience, 'bool' field :has_whatsapp_business_number, 'bool' field :has_whatsapp_enterprise_number_using_cloud_api, 'bool' @@ -534,6 +535,15 @@ class Page < AdObject has_edge :ab_tests do |edge| edge.get 'PagePostExperiment' + edge.post 'PagePostExperiment' do |api| + api.has_param :control_video_id, 'string' + api.has_param :description, 'string' + api.has_param :duration, 'int' + api.has_param :experiment_video_ids, { list: 'string' } + api.has_param :name, 'string' + api.has_param :optimization_goal, { enum: -> { PagePostExperiment::OPTIMIZATION_GOAL }} + api.has_param :scheduled_experiment_timestamp, 'int' + end end has_edge :acknowledge_orders do |edge| @@ -1102,7 +1112,7 @@ class Page < AdObject has_edge :messenger_profile do |edge| edge.delete do |api| - api.has_param :fields, { list: { enum: %w{ACCOUNT_LINKING_URL GET_STARTED GREETING HOME_URL ICE_BREAKERS PAYMENT_SETTINGS PERSISTENT_MENU PLATFORM SUBJECT_TO_NEW_EU_PRIVACY_RULES TARGET_AUDIENCE WHITELISTED_DOMAINS }} } + api.has_param :fields, { list: { enum: %w{ACCOUNT_LINKING_URL COMMANDS DESCRIPTION GET_STARTED GREETING HOME_URL ICE_BREAKERS PAYMENT_SETTINGS PERSISTENT_MENU PLATFORM SUBJECT_TO_NEW_EU_PRIVACY_RULES TARGET_AUDIENCE TITLE WHITELISTED_DOMAINS }} } api.has_param :platform, { enum: -> { Page::PLATFORM }} end edge.get 'MessengerProfile' do |api| @@ -1110,6 +1120,8 @@ class Page < AdObject end edge.post 'Page' do |api| api.has_param :account_linking_url, 'string' + api.has_param :commands, { list: 'object' } + api.has_param :description, { list: 'object' } api.has_param :get_started, 'object' api.has_param :greeting, { list: 'object' } api.has_param :ice_breakers, { list: 'hash' } @@ -1117,6 +1129,7 @@ class Page < AdObject api.has_param :persistent_menu, { list: 'object' } api.has_param :platform, { enum: -> { Page::PLATFORM }} api.has_param :target_audience, 'object' + api.has_param :title, { list: 'object' } api.has_param :whitelisted_domains, { list: 'string' } end end @@ -1592,10 +1605,19 @@ class Page < AdObject end has_edge :welcome_message_flows do |edge| - edge.get do |api| + edge.delete do |api| + api.has_param :flow_id, 'string' + end + edge.get 'CtxPartnerAppWelcomeMessageFlow' do |api| api.has_param :app_id, 'string' api.has_param :flow_id, 'string' end + edge.post do |api| + api.has_param :eligible_platforms, { list: { enum: %w{INSTAGRAM MESSENGER }} } + api.has_param :flow_id, 'string' + api.has_param :name, 'string' + api.has_param :welcome_message_flow, { list: 'object' } + end end end diff --git a/lib/facebook_ads/ad_objects/page_post_experiment.rb b/lib/facebook_ads/ad_objects/page_post_experiment.rb index c865e1a2..19f41ac5 100644 --- a/lib/facebook_ads/ad_objects/page_post_experiment.rb +++ b/lib/facebook_ads/ad_objects/page_post_experiment.rb @@ -14,6 +14,20 @@ module FacebookAds # pull request for this class. class PagePostExperiment < AdObject + OPTIMIZATION_GOAL = [ + "AUTO_RESOLVE_TO_CONTROL", + "AVG_TIME_WATCHED", + "COMMENTS", + "IMPRESSIONS", + "IMPRESSIONS_UNIQUE", + "LINK_CLICKS", + "OTHER", + "REACTIONS", + "REELS_PLAYS", + "SHARES", + "VIDEO_VIEWS_60S", + ] + field :auto_resolve_settings, 'object' field :control_video_id, 'string' @@ -33,7 +47,6 @@ class PagePostExperiment < AdObject field :scheduled_experiment_timestamp, 'datetime' field :updated_time, 'datetime' has_no_post - has_no_delete has_edge :video_insights do |edge| edge.get diff --git a/lib/facebook_ads/ad_objects/product_catalog_diagnostic_group.rb b/lib/facebook_ads/ad_objects/product_catalog_diagnostic_group.rb index 63ef868a..3e5e6c7f 100644 --- a/lib/facebook_ads/ad_objects/product_catalog_diagnostic_group.rb +++ b/lib/facebook_ads/ad_objects/product_catalog_diagnostic_group.rb @@ -44,6 +44,7 @@ class ProductCatalogDiagnosticGroup < AdObject "ATTRIBUTES_MISSING", "CATEGORY", "CHECKOUT", + "DA_VISIBILITY_ISSUES", "IMAGE_QUALITY", "LOW_QUALITY_TITLE_AND_DESCRIPTION", "POLICY_VIOLATION", @@ -67,6 +68,7 @@ class ProductCatalogDiagnosticGroup < AdObject "ATTRIBUTES_MISSING", "CATEGORY", "CHECKOUT", + "DA_VISIBILITY_ISSUES", "IMAGE_QUALITY", "LOW_QUALITY_TITLE_AND_DESCRIPTION", "POLICY_VIOLATION", diff --git a/lib/facebook_ads/ad_objects/product_item.rb b/lib/facebook_ads/ad_objects/product_item.rb index 3f634c06..386f850e 100644 --- a/lib/facebook_ads/ad_objects/product_item.rb +++ b/lib/facebook_ads/ad_objects/product_item.rb @@ -309,6 +309,7 @@ class ProductItem < AdObject "AVAILABLE", "BAD_QUALITY_IMAGE", "CANNOT_EDIT_SUBSCRIPTION_PRODUCTS", + "COMMERCE_ACCOUNT_NOT_LEGALLY_COMPLIANT", "CRAWLED_AVAILABILITY_MISMATCH", "DA_DISABLED_BY_USER", "DA_POLICY_VIOLATION", @@ -320,6 +321,7 @@ class ProductItem < AdObject "EMPTY_DESCRIPTION", "EMPTY_PRODUCT_URL", "EMPTY_SELLER_DESCRIPTION", + "EXTERNAL_MERCHANT_ID_MISMATCH", "GENERIC_INVALID_FIELD", "HIDDEN_UNTIL_PRODUCT_LAUNCH", "IMAGE_FETCH_FAILED", @@ -357,9 +359,11 @@ class ProductItem < AdObject "MISSING_TAX_CATEGORY", "NEGATIVE_COMMUNITY_FEEDBACK", "NOT_ENOUGH_IMAGES", + "NOT_ENOUGH_UNIQUE_PRODUCTS", "PART_OF_PRODUCT_LAUNCH", "PRODUCT_EXPIRED", "PRODUCT_ITEM_HIDDEN_FROM_ALL_SHOPS", + "PRODUCT_ITEM_INVALID_PARTNER_TOKENS", "PRODUCT_ITEM_NOT_INCLUDED_IN_ANY_SHOP", "PRODUCT_ITEM_NOT_VISIBLE", "PRODUCT_NOT_APPROVED", @@ -384,6 +388,7 @@ class ProductItem < AdObject "QUALITY_ITEM_LINK_BROKEN", "QUALITY_ITEM_LINK_REDIRECTING", "RETAILER_ID_NOT_PROVIDED", + "SHOPIFY_INVALID_RETAILER_ID", "SHOPIFY_ITEM_MISSING_SHIPPING_PROFILE", "SHOPS_POLICY_VIOLATION", "SUBSCRIPTION_INFO_NOT_ENABLED_FOR_FEED", diff --git a/lib/facebook_ads/ad_objects/shop.rb b/lib/facebook_ads/ad_objects/shop.rb index ae8b6545..6c1de9b1 100644 --- a/lib/facebook_ads/ad_objects/shop.rb +++ b/lib/facebook_ads/ad_objects/shop.rb @@ -18,6 +18,8 @@ class Shop < AdObject field :fb_sales_channel, 'object' field :id, 'string' field :ig_sales_channel, 'object' + field :is_onsite_enabled, 'bool' + field :shop_status, 'string' field :workspace, 'object' has_no_post has_no_delete diff --git a/lib/facebook_ads/ad_objects/whats_app_business_account.rb b/lib/facebook_ads/ad_objects/whats_app_business_account.rb index d760562e..ffc0b10c 100644 --- a/lib/facebook_ads/ad_objects/whats_app_business_account.rb +++ b/lib/facebook_ads/ad_objects/whats_app_business_account.rb @@ -45,6 +45,7 @@ class WhatsAppBusinessAccount < AdObject field :country, 'string' field :creation_time, 'int' field :currency, 'string' + field :health_status, 'object' field :id, 'string' field :is_enabled_for_insights, 'bool' field :message_template_namespace, 'string' @@ -91,17 +92,6 @@ class WhatsAppBusinessAccount < AdObject end end - has_edge :extensions do |edge| - edge.get - edge.post do |api| - api.has_param :categories, { list: { enum: %w{APPOINTMENT_BOOKING CONTACT_US CUSTOMER_SUPPORT LEAD_GENERATION OTHER SIGN_IN SIGN_UP SURVEY }} } - api.has_param :clone_extension_id, 'string' - api.has_param :clone_template, 'string' - api.has_param :data_channel_uri, 'string' - api.has_param :name, 'string' - end - end - has_edge :flows do |edge| edge.get edge.post do |api| diff --git a/lib/facebook_ads/version.rb b/lib/facebook_ads/version.rb index 962b650c..cab48130 100644 --- a/lib/facebook_ads/version.rb +++ b/lib/facebook_ads/version.rb @@ -7,6 +7,6 @@ # FB:AUTOGEN module FacebookAds - VERSION = '18.0.2' + VERSION = '18.0.3' API_VERSION = '18.0' end