From 6833da58a0db833bc1bc89e89917a1c1f5a7099e Mon Sep 17 00:00:00 2001 From: Satwika Reddy Maddi Date: Fri, 15 Nov 2024 13:32:40 -0800 Subject: [PATCH] add new words Summary: unblock business sdk release Reviewed By: liliarizona Differential Revision: D66021719 fbshipit-source-id: 48702414deabf76c4f78ffe6c5be348ea5c4d189 --- lib/facebook_ads/ad_objects/ad_account.rb | 9 +- .../ad_objects/ad_account_ad_volume.rb | 4 + .../ad_objects/ad_account_recommendations.rb | 5 ++ .../ad_objects/ad_account_user_settings.rb | 1 + .../ad_objects/ad_asset_feed_spec_link_url.rb | 1 + lib/facebook_ads/ad_objects/ad_creative.rb | 2 + .../ad_objects/ad_creative_features_spec.rb | 1 + .../ad_objects/ad_creative_link_data.rb | 1 + .../ad_objects/ad_monetization_property.rb | 1 + ...ad_network_analytics_async_query_export.rb | 1 - ...ad_network_analytics_async_query_result.rb | 1 - lib/facebook_ads/ad_objects/ad_report_run.rb | 2 + lib/facebook_ads/ad_objects/ad_rule.rb | 1 + lib/facebook_ads/ad_objects/ad_set.rb | 1 + lib/facebook_ads/ad_objects/ad_video.rb | 1 - lib/facebook_ads/ad_objects/ads_insights.rb | 11 +++ .../ad_objects/ads_user_settings.rb | 3 + .../ads_value_adjustment_rule_collection.rb | 1 + .../analytics_funnel_query_result.rb | 2 - .../ad_objects/analytics_query_result.rb | 3 - lib/facebook_ads/ad_objects/application.rb | 2 + lib/facebook_ads/ad_objects/business.rb | 70 +++++++++++++++- ...esult.rb => catalog_advertiser_insight.rb} | 8 +- .../catalog_website_onboarding_settings.rb | 1 + lib/facebook_ads/ad_objects/commerce_order.rb | 10 --- .../ad_objects/custom_audience_salts.rb | 2 + lib/facebook_ads/ad_objects/destination.rb | 6 ++ lib/facebook_ads/ad_objects/event.rb | 1 + .../ad_objects/extended_credit.rb | 2 +- .../funding_source_details_coupon.rb | 1 + lib/facebook_ads/ad_objects/group.rb | 2 - lib/facebook_ads/ad_objects/ig_comment.rb | 1 + lib/facebook_ads/ad_objects/ig_media.rb | 1 + lib/facebook_ads/ad_objects/ig_user.rb | 10 +++ .../ig_user_subscribed_apps_data.rb | 26 ++++++ .../ad_objects/instagram_carousel.rb | 1 + .../ad_objects/instagram_comment.rb | 1 + .../ad_objects/instagram_insights_result.rb | 6 -- .../ad_objects/instagram_media.rb | 1 + lib/facebook_ads/ad_objects/instagram_user.rb | 1 + .../lead_gen_form_preview_details.rb | 2 + .../live_video_ad_campaign_config.rb | 24 ++++++ .../ad_objects/messenger_business_template.rb | 14 +++- .../ad_objects/messenger_call_settings.rb | 1 + .../ad_objects/open_bridge_configuration.rb | 7 ++ lib/facebook_ads/ad_objects/page.rb | 84 +++++++------------ .../ad_objects/partnership_ads_identity.rb | 1 + lib/facebook_ads/ad_objects/product_item.rb | 8 ++ .../ad_objects/reach_frequency_prediction.rb | 1 + .../regional_regulation_identities.rb | 2 + lib/facebook_ads/ad_objects/user.rb | 4 +- .../ad_objects/whats_app_business_account.rb | 23 ++++- ..._partner_client_verification_submission.rb | 1 + 53 files changed, 284 insertions(+), 93 deletions(-) rename lib/facebook_ads/ad_objects/{analytics_cohort_query_result.rb => catalog_advertiser_insight.rb} (77%) create mode 100644 lib/facebook_ads/ad_objects/ig_user_subscribed_apps_data.rb create mode 100644 lib/facebook_ads/ad_objects/live_video_ad_campaign_config.rb diff --git a/lib/facebook_ads/ad_objects/ad_account.rb b/lib/facebook_ads/ad_objects/ad_account.rb index 09809cbb..145a1bbc 100644 --- a/lib/facebook_ads/ad_objects/ad_account.rb +++ b/lib/facebook_ads/ad_objects/ad_account.rb @@ -188,6 +188,7 @@ class AdAccount < AdObject field :end_advertiser, 'string' field :end_advertiser_name, 'string' field :existing_customers, { list: 'string' } + field :expired_funding_source_details, 'FundingSourceDetails' field :extended_credit_invoice_group, 'ExtendedCreditInvoiceGroup' field :failed_delivery_checks, { list: 'DeliveryCheck' } field :fb_entity, 'int' @@ -293,6 +294,7 @@ class AdAccount < AdObject edge.get 'AdCreative' edge.post 'AdCreative' do |api| api.has_param :actor_id, 'int' + api.has_param :ad_disclaimer_spec, 'hash' api.has_param :adlabels, { list: 'object' } api.has_param :applink_treatment, { enum: -> { AdCreative::APPLINK_TREATMENT }} api.has_param :asset_feed_spec, 'object' @@ -305,6 +307,7 @@ class AdAccount < AdObject api.has_param :categorization_criteria, { enum: -> { AdCreative::CATEGORIZATION_CRITERIA }} api.has_param :category_media_source, { enum: -> { AdCreative::CATEGORY_MEDIA_SOURCE }} api.has_param :contextual_multi_ads, 'hash' + api.has_param :creative_sourcing_spec, 'hash' api.has_param :degrees_of_freedom_spec, 'hash' api.has_param :destination_set_id, 'string' api.has_param :dynamic_ad_voice, { enum: -> { AdCreative::DYNAMIC_AD_VOICE }} @@ -629,7 +632,6 @@ class AdAccount < AdObject api.has_param :start_offset, 'int' api.has_param :swap_mode, { enum: -> { AdVideo::SWAP_MODE }} api.has_param :text_format_metadata, 'string' - api.has_param :throwback_camera_roll_media, 'string' api.has_param :thumb, 'file' api.has_param :time_since_original_post, 'int' api.has_param :title, 'string' @@ -1116,7 +1118,12 @@ class AdAccount < AdObject has_edge :recommendations do |edge| edge.get 'AdAccountRecommendations' edge.post 'AdAccountRecommendations' do |api| + api.has_param :asc_fragmentation_parameters, 'hash' + api.has_param :autoflow_parameters, 'hash' + api.has_param :fragmentation_parameters, 'hash' + api.has_param :music_parameters, 'hash' api.has_param :recommendation_signature, 'string' + api.has_param :scale_good_campaign_parameters, 'hash' 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 ee08d463..3a9ce4bc 100644 --- a/lib/facebook_ads/ad_objects/ad_account_ad_volume.rb +++ b/lib/facebook_ads/ad_objects/ad_account_ad_volume.rb @@ -17,11 +17,13 @@ class AdAccountAdVolume < AdObject RECOMMENDATION_TYPE = [ "AAC_CREATION_PACKAGE", "AB_TEST", + "ACCOUNT_ERROR", "ACCOUNT_NEEDS_CREDIT", "ACCOUNT_SPEND_LIMIT", "ACCOUNT_SPEND_LIMIT_DUPLICATION", "ACO_TOGGLE", "ADS_REPORTING", + "ADS_STATUS", "ADVANCED_CAMPAIGN_BUDGET", "ADVANTAGE_APP_CAMPAIGN", "ADVANTAGE_CAMPAIGN_BUDGET_DUPLICATION", @@ -141,6 +143,7 @@ class AdAccountAdVolume < AdObject "HIGH_COST", "HISTORICAL_BENCHMARK", "IG_MULTI_ADS", + "IG_SURFACES_MANUAL_PLACEMENTS", "LANDING_PAGE_VIEW", "LANDING_PAGE_VIEW_OPTIMIZATION_GOAL", "LANDING_PAGE_VIEW_PRECREATE", @@ -214,6 +217,7 @@ class AdAccountAdVolume < AdObject "SIGNALS_GROWTH_CAPI_TABLE", "SIGNALS_GROWTH_CAPI_V2", "SIMILAR_ADVERTISER_BUDGET_RECOMMENDATION", + "SITE_EXTENSIONS_DUPLICATION", "SIX_PLUS_MANUAL_PLACEMENTS", "SIX_PLUS_PLACEMENTS_DUPLICATION", "SPEND_LIMIT", diff --git a/lib/facebook_ads/ad_objects/ad_account_recommendations.rb b/lib/facebook_ads/ad_objects/ad_account_recommendations.rb index c9dbd526..79baef7a 100644 --- a/lib/facebook_ads/ad_objects/ad_account_recommendations.rb +++ b/lib/facebook_ads/ad_objects/ad_account_recommendations.rb @@ -16,7 +16,12 @@ module FacebookAds class AdAccountRecommendations < AdObject field :recommendations, { list: 'object' } + field :asc_fragmentation_parameters, 'hash' + field :autoflow_parameters, 'hash' + field :fragmentation_parameters, 'hash' + field :music_parameters, 'hash' field :recommendation_signature, 'string' + field :scale_good_campaign_parameters, 'hash' has_no_id has_no_get has_no_post diff --git a/lib/facebook_ads/ad_objects/ad_account_user_settings.rb b/lib/facebook_ads/ad_objects/ad_account_user_settings.rb index 46e47ff6..905cd2d0 100644 --- a/lib/facebook_ads/ad_objects/ad_account_user_settings.rb +++ b/lib/facebook_ads/ad_objects/ad_account_user_settings.rb @@ -84,6 +84,7 @@ class AdAccountUserSettings < AdObject field :should_default_instagram_profile_card_optimization, 'bool' field :should_default_text_swapping_optimization, 'bool' field :should_logout_of_3p_sourcing, 'bool' + field :should_show_shops_ads_metrics_onboarding_tour, 'bool' field :show_archived_data, 'bool' field :show_text_variation_nux_tooltip, 'bool' field :syd_campaign_trends_activemetric, 'string' diff --git a/lib/facebook_ads/ad_objects/ad_asset_feed_spec_link_url.rb b/lib/facebook_ads/ad_objects/ad_asset_feed_spec_link_url.rb index 30d7358e..a884690b 100644 --- a/lib/facebook_ads/ad_objects/ad_asset_feed_spec_link_url.rb +++ b/lib/facebook_ads/ad_objects/ad_asset_feed_spec_link_url.rb @@ -19,6 +19,7 @@ class AdAssetFeedSpecLinkUrl < AdObject field :carousel_see_more_url, 'string' field :deeplink_url, 'string' field :display_url, 'string' + field :object_store_urls, { list: 'string' } field :url_tags, 'string' field :website_url, 'string' has_no_id diff --git a/lib/facebook_ads/ad_objects/ad_creative.rb b/lib/facebook_ads/ad_objects/ad_creative.rb index 1f25722d..6d1035af 100644 --- a/lib/facebook_ads/ad_objects/ad_creative.rb +++ b/lib/facebook_ads/ad_objects/ad_creative.rb @@ -164,6 +164,7 @@ class AdCreative < AdObject field :account_id, 'string' field :actor_id, 'string' + field :ad_disclaimer_spec, 'AdCreativeAdDisclaimer' field :adlabels, { list: 'AdLabel' } field :applink_treatment, 'string' field :asset_feed_spec, 'AdAssetFeedSpec' @@ -218,6 +219,7 @@ class AdCreative < AdObject field :platform_customizations, 'AdCreativePlatformCustomization' field :playable_asset_id, 'string' field :portrait_customizations, 'AdCreativePortraitCustomizations' + field :product_data, { list: 'AdCreativeProductData' } field :product_set_id, 'string' field :recommender_settings, 'AdCreativeRecommenderSettings' field :source_instagram_media_id, 'string' diff --git a/lib/facebook_ads/ad_objects/ad_creative_features_spec.rb b/lib/facebook_ads/ad_objects/ad_creative_features_spec.rb index fc0913fc..492d1744 100644 --- a/lib/facebook_ads/ad_objects/ad_creative_features_spec.rb +++ b/lib/facebook_ads/ad_objects/ad_creative_features_spec.rb @@ -50,6 +50,7 @@ class AdCreativeFeaturesSpec < AdObject field :media_liquidity_animated_image, 'AdCreativeFeatureDetails' field :media_order, 'AdCreativeFeatureDetails' field :media_type_automation, 'AdCreativeFeatureDetails' + field :multi_photo_to_video, 'AdCreativeFeatureDetails' field :pac_relaxation, 'AdCreativeFeatureDetails' field :product_extensions, 'AdCreativeFeatureDetails' field :product_metadata_automation, 'AdCreativeFeatureDetails' 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 c103f864..ba102ee9 100644 --- a/lib/facebook_ads/ad_objects/ad_creative_link_data.rb +++ b/lib/facebook_ads/ad_objects/ad_creative_link_data.rb @@ -29,6 +29,7 @@ class AdCreativeLinkData < AdObject field :app_link_spec, 'AdCreativeLinkDataAppLinkSpec' field :attachment_style, 'string' field :automated_product_tags, 'bool' + field :boosted_product_set_id, 'string' 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_monetization_property.rb b/lib/facebook_ads/ad_objects/ad_monetization_property.rb index 3390b5a6..fbe12a46 100644 --- a/lib/facebook_ads/ad_objects/ad_monetization_property.rb +++ b/lib/facebook_ads/ad_objects/ad_monetization_property.rb @@ -29,6 +29,7 @@ class AdMonetizationProperty < AdObject api.has_param :metrics, { list: { enum: -> { AdNetworkAnalyticsSyncQueryResult::METRICS }} } api.has_param :ordering_column, { enum: -> { AdNetworkAnalyticsSyncQueryResult::ORDERING_COLUMN }} api.has_param :ordering_type, { enum: -> { AdNetworkAnalyticsSyncQueryResult::ORDERING_TYPE }} + api.has_param :should_include_until, 'bool' api.has_param :since, 'datetime' api.has_param :until, 'datetime' end diff --git a/lib/facebook_ads/ad_objects/ad_network_analytics_async_query_export.rb b/lib/facebook_ads/ad_objects/ad_network_analytics_async_query_export.rb index 6c09cf85..6c1854e1 100644 --- a/lib/facebook_ads/ad_objects/ad_network_analytics_async_query_export.rb +++ b/lib/facebook_ads/ad_objects/ad_network_analytics_async_query_export.rb @@ -15,7 +15,6 @@ module FacebookAds class AdNetworkAnalyticsAsyncQueryExport < AdObject - field :error, 'object' field :export_link, 'string' field :query_id, 'string' field :status, 'string' diff --git a/lib/facebook_ads/ad_objects/ad_network_analytics_async_query_result.rb b/lib/facebook_ads/ad_objects/ad_network_analytics_async_query_result.rb index b6684794..1b630cc2 100644 --- a/lib/facebook_ads/ad_objects/ad_network_analytics_async_query_result.rb +++ b/lib/facebook_ads/ad_objects/ad_network_analytics_async_query_result.rb @@ -16,7 +16,6 @@ module FacebookAds class AdNetworkAnalyticsAsyncQueryResult < AdObject field :data, 'object' - field :error, 'object' field :omitted_results, { list: 'object' } field :query_id, 'string' field :results, { list: 'object' } diff --git a/lib/facebook_ads/ad_objects/ad_report_run.rb b/lib/facebook_ads/ad_objects/ad_report_run.rb index a302147f..e4d49501 100644 --- a/lib/facebook_ads/ad_objects/ad_report_run.rb +++ b/lib/facebook_ads/ad_objects/ad_report_run.rb @@ -17,12 +17,14 @@ class AdReportRun < AdObject field :account_id, 'string' field :async_percent_completion, 'int' + field :async_report_url, 'string' field :async_status, 'string' field :date_start, 'string' field :date_stop, 'string' field :emails, { list: 'string' } field :friendly_name, 'string' field :id, 'string' + field :is_async_export, 'int' field :is_bookmarked, 'bool' field :is_running, 'bool' field :schedule_id, 'string' diff --git a/lib/facebook_ads/ad_objects/ad_rule.rb b/lib/facebook_ads/ad_objects/ad_rule.rb index 53f0864c..edeefad2 100644 --- a/lib/facebook_ads/ad_objects/ad_rule.rb +++ b/lib/facebook_ads/ad_objects/ad_rule.rb @@ -37,6 +37,7 @@ class AdRule < AdObject "AM_SYD_RESOLUTION_FLOW", "AM_SYD_RESOLUTION_FLOW_MODAL", "AM_TABLE_DELIVERY_COLUMN_POPOVER", + "AM_TABLE_MORE_RULES_DROPDOWN", "AM_TABLE_TOGGLE_POPOVER", "AM_TOOLBAR_CREATE_RULE_DROPDOWN", "PE_CAMPAIGN_STRUCTURE_MENU", diff --git a/lib/facebook_ads/ad_objects/ad_set.rb b/lib/facebook_ads/ad_objects/ad_set.rb index 26816882..ce299007 100644 --- a/lib/facebook_ads/ad_objects/ad_set.rb +++ b/lib/facebook_ads/ad_objects/ad_set.rb @@ -171,6 +171,7 @@ class AdSet < AdObject "0", "1", "2", + "3", ] TUNE_FOR_CATEGORY = [ diff --git a/lib/facebook_ads/ad_objects/ad_video.rb b/lib/facebook_ads/ad_objects/ad_video.rb index 15b5a340..723057ba 100644 --- a/lib/facebook_ads/ad_objects/ad_video.rb +++ b/lib/facebook_ads/ad_objects/ad_video.rb @@ -387,7 +387,6 @@ class AdVideo < AdObject field :start_offset, 'int' field :swap_mode, { enum: -> { SWAP_MODE }} field :text_format_metadata, 'string' - field :throwback_camera_roll_media, 'string' field :thumb, 'file' field :time_since_original_post, 'int' field :transcode_setting_properties, 'string' diff --git a/lib/facebook_ads/ad_objects/ads_insights.rb b/lib/facebook_ads/ad_objects/ads_insights.rb index 8f63368c..3afba9a5 100644 --- a/lib/facebook_ads/ad_objects/ads_insights.rb +++ b/lib/facebook_ads/ad_objects/ads_insights.rb @@ -102,6 +102,11 @@ class AdsInsights < AdObject "skan_campaign_id", "skan_conversion_id", "skan_version", + "sot_attribution_model_type", + "sot_attribution_window", + "sot_channel", + "sot_event_type", + "sot_source", "standard_event_content_type", "title_asset", "user_persona_id", @@ -244,6 +249,12 @@ class AdsInsights < AdObject field :location, 'string' field :marketing_messages_cost_per_delivered, 'string' field :marketing_messages_cost_per_link_btn_click, 'string' + field :marketing_messages_delivery_rate, 'string' + field :marketing_messages_link_btn_click_rate, 'string' + field :marketing_messages_media_view_rate, 'string' + field :marketing_messages_phone_call_btn_click_rate, 'string' + field :marketing_messages_quick_reply_btn_click_rate, 'string' + field :marketing_messages_read_rate, 'string' field :marketing_messages_spend, 'string' field :marketing_messages_website_purchase_values, 'string' field :mobile_app_purchase_roas, { list: 'AdsActionStats' } diff --git a/lib/facebook_ads/ad_objects/ads_user_settings.rb b/lib/facebook_ads/ad_objects/ads_user_settings.rb index c6d955c4..7ed650e2 100644 --- a/lib/facebook_ads/ad_objects/ads_user_settings.rb +++ b/lib/facebook_ads/ad_objects/ads_user_settings.rb @@ -34,6 +34,7 @@ class AdsUserSettings < AdObject field :carousel_to_video_opt_in_status, 'string' field :connected_sources_catalog_opt_in_status, 'string' field :default_creation_mode, 'string' + field :enhance_cta_text_extraction_opt_in_status, 'string' field :export_format_default, 'string' field :focus_mode_default, 'string' field :gen_ai_alpha_test_status, 'int' @@ -68,6 +69,8 @@ class AdsUserSettings < AdObject field :static_ad_product_extensions_opt_in, 'string' field :sticky_setting_after_default_on, 'string' field :syd_campaign_trends_metric, 'string' + field :text_optimizations_text_extraction_opt_in_status, 'string' + field :text_variations_sticky_opt_in_status, 'string' field :total_coupon_syd_dismissals, 'int' field :total_coupon_upsell_dismissals, 'int' field :url_prefill_removal_timestamp, 'int' diff --git a/lib/facebook_ads/ad_objects/ads_value_adjustment_rule_collection.rb b/lib/facebook_ads/ad_objects/ads_value_adjustment_rule_collection.rb index 9311174b..247d996e 100644 --- a/lib/facebook_ads/ad_objects/ads_value_adjustment_rule_collection.rb +++ b/lib/facebook_ads/ad_objects/ads_value_adjustment_rule_collection.rb @@ -16,6 +16,7 @@ module FacebookAds class AdsValueAdjustmentRuleCollection < AdObject field :id, 'string' + field :is_default_setting, 'bool' field :name, 'string' has_no_post has_no_delete diff --git a/lib/facebook_ads/ad_objects/analytics_funnel_query_result.rb b/lib/facebook_ads/ad_objects/analytics_funnel_query_result.rb index f5fdfe2f..04f08d1a 100644 --- a/lib/facebook_ads/ad_objects/analytics_funnel_query_result.rb +++ b/lib/facebook_ads/ad_objects/analytics_funnel_query_result.rb @@ -15,8 +15,6 @@ module FacebookAds class AnalyticsFunnelQueryResult < AdObject - field :data, 'object' - field :error, 'object' field :query_id, 'string' field :status, 'string' has_no_id diff --git a/lib/facebook_ads/ad_objects/analytics_query_result.rb b/lib/facebook_ads/ad_objects/analytics_query_result.rb index 8fa19ff9..0418d555 100644 --- a/lib/facebook_ads/ad_objects/analytics_query_result.rb +++ b/lib/facebook_ads/ad_objects/analytics_query_result.rb @@ -15,9 +15,6 @@ module FacebookAds class AnalyticsQueryResult < AdObject - field :columns, 'object' - field :datapoints, { list: 'object' } - field :error, 'object' field :query_id, 'string' field :status, 'string' has_no_id diff --git a/lib/facebook_ads/ad_objects/application.rb b/lib/facebook_ads/ad_objects/application.rb index ba811347..ceb3a3a1 100644 --- a/lib/facebook_ads/ad_objects/application.rb +++ b/lib/facebook_ads/ad_objects/application.rb @@ -135,6 +135,7 @@ class Application < AdObject field :deauth_callback_url, 'string' field :default_share_mode, 'string' field :description, 'string' + field :enigma_config, 'object' field :financial_id, 'string' field :gdpv4_chrome_custom_tabs_enabled, 'bool' field :gdpv4_enabled, 'bool' @@ -281,6 +282,7 @@ class Application < AdObject api.has_param :metrics, { list: { enum: -> { AdNetworkAnalyticsSyncQueryResult::METRICS }} } api.has_param :ordering_column, { enum: -> { AdNetworkAnalyticsSyncQueryResult::ORDERING_COLUMN }} api.has_param :ordering_type, { enum: -> { AdNetworkAnalyticsSyncQueryResult::ORDERING_TYPE }} + api.has_param :should_include_until, 'bool' api.has_param :since, 'datetime' api.has_param :until, 'datetime' end diff --git a/lib/facebook_ads/ad_objects/business.rb b/lib/facebook_ads/ad_objects/business.rb index 2e1e7e6c..78fb862c 100644 --- a/lib/facebook_ads/ad_objects/business.rb +++ b/lib/facebook_ads/ad_objects/business.rb @@ -14,6 +14,19 @@ module FacebookAds # pull request for this class. class Business < AdObject + VERIFICATION_STATUS = [ + "expired", + "failed", + "ineligible", + "not_verified", + "pending", + "pending_need_more_info", + "pending_submission", + "rejected", + "revoked", + "verified", + ] + TWO_FACTOR_TYPE = [ "admin_required", "all_required", @@ -593,6 +606,38 @@ class Business < AdObject "VIEW_MONETIZATION_INSIGHTS", ] + BUSINESS_VERTICAL = [ + "ADULT_PRODUCTS_AND_SERVICES", + "ALCOHOL_AND_TOBACCO", + "AUTOMOTIVE_DEALERS", + "BODY_PARTS_FLUIDS", + "BUSINESS_AND_UTILITY", + "CONTENT_AND_APPS", + "CREATORS_AND_CELEBRITIES", + "DATING", + "DRUGS", + "ENDANGERED_SPECIES", + "FIREARMS", + "FRAUDULENT_MISLEADING_OFFENSIVE", + "GAMBLING", + "GROCERY_AND_CONVENIENCE_STORE", + "HAZARDOUS_GOODS_AND_MATERIALS", + "HOME", + "HOME_AND_AUTO_MANUFACTURING", + "LIFESTYLE", + "LIVE_NON_ENDANGERED_SPECIES", + "LOANS_DEBT_COLLECTION_BAIL_BONDS", + "LOCAL_EVENTS", + "MEDICAL_HEALTHCARE", + "MULTILEVEL_MARKETING", + "NON_PROFIT_AND_RELIGIOUS_ORGS", + "PROFESSIONAL", + "REAL_VIRTUAL_FAKE_CURRENCY", + "RESTAURANTS", + "RETAIL", + "TRANSPORTATION_AND_ACCOMMODATION", + ] + SUBVERTICAL_V2 = [ "ACCOUNTING_AND_TAX", "ACTIVITIES_AND_LEISURE", @@ -818,7 +863,7 @@ class Business < AdObject field :updated_by, 'object' field :updated_time, 'datetime' field :user_access_expire_time, 'datetime' - field :verification_status, 'string' + field :verification_status, { enum: -> { VERIFICATION_STATUS }} field :vertical, 'string' field :vertical_id, 'int' has_no_delete @@ -909,6 +954,7 @@ class Business < AdObject api.has_param :metrics, { list: { enum: -> { AdNetworkAnalyticsSyncQueryResult::METRICS }} } api.has_param :ordering_column, { enum: -> { AdNetworkAnalyticsSyncQueryResult::ORDERING_COLUMN }} api.has_param :ordering_type, { enum: -> { AdNetworkAnalyticsSyncQueryResult::ORDERING_TYPE }} + api.has_param :should_include_until, 'bool' api.has_param :since, 'datetime' api.has_param :until, 'datetime' end @@ -1239,12 +1285,19 @@ class Business < AdObject edge.get 'OpenBridgeConfiguration' edge.post 'OpenBridgeConfiguration' do |api| api.has_param :active, 'bool' + api.has_param :cloud_provider, 'string' + api.has_param :cloud_region, 'string' + api.has_param :destination_id, 'string' api.has_param :endpoint, 'string' api.has_param :fallback_domain, 'string' api.has_param :fallback_domain_enabled, 'bool' + api.has_param :first_party_domain, 'string' api.has_param :host_business_id, 'int' api.has_param :host_external_id, 'string' api.has_param :instance_id, 'string' + api.has_param :instance_version, 'string' + api.has_param :is_sgw_instance, 'bool' + api.has_param :partner_name, 'string' api.has_param :pixel_id, 'int' end end @@ -1418,6 +1471,20 @@ class Business < AdObject end end + has_edge :self_certify_whatsapp_business do |edge| + edge.post 'Business' do |api| + api.has_param :average_monthly_revenue_spend_with_partner, 'hash' + api.has_param :business_documents, { list: 'file' } + api.has_param :business_vertical, { enum: -> { Business::BUSINESS_VERTICAL }} + api.has_param :end_business_address, 'hash' + api.has_param :end_business_id, 'string' + api.has_param :end_business_legal_name, 'string' + api.has_param :end_business_trade_names, { list: 'string' } + api.has_param :end_business_website, 'string' + api.has_param :num_billing_cycles_with_partner, 'int' + end + end + has_edge :setup_managed_partner_adaccounts do |edge| edge.post 'Business' do |api| api.has_param :credit_line_id, 'string' @@ -1518,7 +1585,6 @@ class Business < AdObject api.has_param :start_offset, 'int' api.has_param :swap_mode, { enum: -> { AdVideo::SWAP_MODE }} api.has_param :text_format_metadata, 'string' - api.has_param :throwback_camera_roll_media, 'string' api.has_param :thumb, 'file' api.has_param :time_since_original_post, 'int' api.has_param :title, 'string' diff --git a/lib/facebook_ads/ad_objects/analytics_cohort_query_result.rb b/lib/facebook_ads/ad_objects/catalog_advertiser_insight.rb similarity index 77% rename from lib/facebook_ads/ad_objects/analytics_cohort_query_result.rb rename to lib/facebook_ads/ad_objects/catalog_advertiser_insight.rb index 83ca7414..3965221b 100644 --- a/lib/facebook_ads/ad_objects/analytics_cohort_query_result.rb +++ b/lib/facebook_ads/ad_objects/catalog_advertiser_insight.rb @@ -13,12 +13,10 @@ module FacebookAds # on github and we'll fix in our codegen framework. We'll not be able to accept # pull request for this class. - class AnalyticsCohortQueryResult < AdObject + class CatalogAdvertiserInsight < AdObject - field :data, 'object' - field :error, 'object' - field :query_id, 'string' - field :status, 'string' + field :category, 'string' + field :country, 'string' has_no_id has_no_get has_no_post diff --git a/lib/facebook_ads/ad_objects/catalog_website_onboarding_settings.rb b/lib/facebook_ads/ad_objects/catalog_website_onboarding_settings.rb index 52d2cac8..bdb4998b 100644 --- a/lib/facebook_ads/ad_objects/catalog_website_onboarding_settings.rb +++ b/lib/facebook_ads/ad_objects/catalog_website_onboarding_settings.rb @@ -16,6 +16,7 @@ module FacebookAds class CatalogWebsiteOnboardingSettings < AdObject field :id, 'string' + field :quality_band, 'string' field :status, 'string' has_no_post has_no_delete diff --git a/lib/facebook_ads/ad_objects/commerce_order.rb b/lib/facebook_ads/ad_objects/commerce_order.rb index 8c7f3376..471579ca 100644 --- a/lib/facebook_ads/ad_objects/commerce_order.rb +++ b/lib/facebook_ads/ad_objects/commerce_order.rb @@ -156,15 +156,5 @@ class CommerceOrder < AdObject end end - has_edge :updates do |edge| - edge.post 'CommerceOrder' do |api| - api.has_param :cancel_amount, 'hash' - api.has_param :fulfill_amount, 'hash' - api.has_param :merchant_order_reference, 'string' - api.has_param :refund_amount, 'hash' - api.has_param :total_amount, 'hash' - end - end - end end diff --git a/lib/facebook_ads/ad_objects/custom_audience_salts.rb b/lib/facebook_ads/ad_objects/custom_audience_salts.rb index 92859601..98f0e079 100644 --- a/lib/facebook_ads/ad_objects/custom_audience_salts.rb +++ b/lib/facebook_ads/ad_objects/custom_audience_salts.rb @@ -17,6 +17,8 @@ class CustomAudienceSalts < AdObject field :app_id, 'int' field :public_key, 'string' + field :salts, { list: 'object' } + field :user_id, 'int' has_no_id has_no_get has_no_post diff --git a/lib/facebook_ads/ad_objects/destination.rb b/lib/facebook_ads/ad_objects/destination.rb index d89a8766..1cfdfbe4 100644 --- a/lib/facebook_ads/ad_objects/destination.rb +++ b/lib/facebook_ads/ad_objects/destination.rb @@ -33,6 +33,12 @@ class Destination < AdObject field :applinks, 'CatalogItemAppLinks' field :category_specific_fields, 'CatalogSubVerticalList' field :currency, 'string' + field :custom_label_0, 'string' + field :custom_label_1, 'string' + field :custom_label_2, 'string' + field :custom_number_0, 'int' + field :custom_number_1, 'int' + field :custom_number_2, 'int' field :description, 'string' field :destination_id, 'string' field :id, 'string' diff --git a/lib/facebook_ads/ad_objects/event.rb b/lib/facebook_ads/ad_objects/event.rb index b51bd38a..e125c1ba 100644 --- a/lib/facebook_ads/ad_objects/event.rb +++ b/lib/facebook_ads/ad_objects/event.rb @@ -41,6 +41,7 @@ class Event < AdObject ONLINE_EVENT_FORMAT = [ "fb_live", + "horizon_world", "messenger_room", "none", "other", diff --git a/lib/facebook_ads/ad_objects/extended_credit.rb b/lib/facebook_ads/ad_objects/extended_credit.rb index 4208024e..d8f969b7 100644 --- a/lib/facebook_ads/ad_objects/extended_credit.rb +++ b/lib/facebook_ads/ad_objects/extended_credit.rb @@ -72,7 +72,7 @@ class ExtendedCredit < AdObject end has_edge :whatsapp_credit_sharing_and_attach do |edge| - edge.post do |api| + edge.post 'ExtendedCreditAllocationConfig' do |api| api.has_param :waba_currency, 'string' api.has_param :waba_id, 'string' end diff --git a/lib/facebook_ads/ad_objects/funding_source_details_coupon.rb b/lib/facebook_ads/ad_objects/funding_source_details_coupon.rb index e23899a4..b9bc1ae6 100644 --- a/lib/facebook_ads/ad_objects/funding_source_details_coupon.rb +++ b/lib/facebook_ads/ad_objects/funding_source_details_coupon.rb @@ -23,6 +23,7 @@ class FundingSourceDetailsCoupon < AdObject field :expiration, 'datetime' field :original_amount, 'int' field :original_display_amount, 'string' + field :start_date, 'datetime' has_no_id has_no_get has_no_post diff --git a/lib/facebook_ads/ad_objects/group.rb b/lib/facebook_ads/ad_objects/group.rb index 8d249bfe..fa8dc765 100644 --- a/lib/facebook_ads/ad_objects/group.rb +++ b/lib/facebook_ads/ad_objects/group.rb @@ -237,7 +237,6 @@ class Group < AdObject api.has_param :text_format_metadata, 'string' api.has_param :text_format_preset_id, 'string' api.has_param :text_only_place, 'string' - api.has_param :throwback_camera_roll_media, 'string' api.has_param :thumbnail, 'file' api.has_param :time_since_original_post, 'int' api.has_param :title, 'string' @@ -442,7 +441,6 @@ class Group < AdObject api.has_param :start_offset, 'int' api.has_param :swap_mode, { enum: -> { AdVideo::SWAP_MODE }} api.has_param :text_format_metadata, 'string' - api.has_param :throwback_camera_roll_media, 'string' api.has_param :thumb, 'file' api.has_param :time_since_original_post, 'int' api.has_param :title, 'string' diff --git a/lib/facebook_ads/ad_objects/ig_comment.rb b/lib/facebook_ads/ad_objects/ig_comment.rb index 182c8b48..c108e995 100644 --- a/lib/facebook_ads/ad_objects/ig_comment.rb +++ b/lib/facebook_ads/ad_objects/ig_comment.rb @@ -18,6 +18,7 @@ class IgComment < AdObject field :from, 'IgCommentFromUser' field :hidden, 'bool' field :id, 'string' + field :legacy_instagram_comment_id, 'string' field :like_count, 'int' field :media, 'IgMedia' field :parent_id, 'string' diff --git a/lib/facebook_ads/ad_objects/ig_media.rb b/lib/facebook_ads/ad_objects/ig_media.rb index 46d04576..ce3fe275 100644 --- a/lib/facebook_ads/ad_objects/ig_media.rb +++ b/lib/facebook_ads/ad_objects/ig_media.rb @@ -23,6 +23,7 @@ class IgMedia < AdObject field :ig_id, 'string' field :is_comment_enabled, 'bool' field :is_shared_to_feed, 'bool' + field :legacy_instagram_media_id, 'string' field :like_count, 'int' field :media_product_type, 'string' field :media_type, 'string' diff --git a/lib/facebook_ads/ad_objects/ig_user.rb b/lib/facebook_ads/ad_objects/ig_user.rb index a32dbb82..a7fe97be 100644 --- a/lib/facebook_ads/ad_objects/ig_user.rb +++ b/lib/facebook_ads/ad_objects/ig_user.rb @@ -21,6 +21,7 @@ class IgUser < AdObject field :follows_count, 'int' field :id, 'string' field :ig_id, 'int' + field :legacy_instagram_user_id, 'string' field :media_count, 'int' field :mentioned_comment, 'IgComment' field :mentioned_media, 'IgMedia' @@ -171,5 +172,14 @@ class IgUser < AdObject edge.get 'IgMedia' end + has_edge :upcoming_events do |edge| + edge.post do |api| + api.has_param :end_time, 'datetime' + api.has_param :notification_subtypes, { list: { enum: %w{AFTER_EVENT_1DAY AFTER_EVENT_2DAY AFTER_EVENT_3DAY AFTER_EVENT_4DAY AFTER_EVENT_5DAY AFTER_EVENT_6DAY AFTER_EVENT_7DAY BEFORE_EVENT_15MIN BEFORE_EVENT_1DAY BEFORE_EVENT_1HOUR BEFORE_EVENT_2DAY EVENT_START RESCHEDULED }} } + api.has_param :start_time, 'datetime' + api.has_param :title, 'string' + end + end + end end diff --git a/lib/facebook_ads/ad_objects/ig_user_subscribed_apps_data.rb b/lib/facebook_ads/ad_objects/ig_user_subscribed_apps_data.rb new file mode 100644 index 00000000..2617e365 --- /dev/null +++ b/lib/facebook_ads/ad_objects/ig_user_subscribed_apps_data.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 IgUserSubscribedAppsData < AdObject + + field :app_id, 'string' + field :subscribed_fields, { list: 'string' } + has_no_id + has_no_get + has_no_post + has_no_delete + + end +end diff --git a/lib/facebook_ads/ad_objects/instagram_carousel.rb b/lib/facebook_ads/ad_objects/instagram_carousel.rb index e7cfb5ed..f3afd5e5 100644 --- a/lib/facebook_ads/ad_objects/instagram_carousel.rb +++ b/lib/facebook_ads/ad_objects/instagram_carousel.rb @@ -20,6 +20,7 @@ class InstagramCarousel < AdObject field :content_type, 'int' field :display_url, 'string' field :id, 'string' + field :ig_media_id, 'string' field :like_count, 'int' field :owner_instagram_user, 'InstagramUser' field :permalink, 'string' diff --git a/lib/facebook_ads/ad_objects/instagram_comment.rb b/lib/facebook_ads/ad_objects/instagram_comment.rb index 1db5092a..bd163ee6 100644 --- a/lib/facebook_ads/ad_objects/instagram_comment.rb +++ b/lib/facebook_ads/ad_objects/instagram_comment.rb @@ -18,6 +18,7 @@ class InstagramComment < AdObject field :comment_type, 'string' field :created_at, 'datetime' field :id, 'string' + field :ig_comment_id, 'string' field :instagram_comment_id, 'string' field :instagram_user, 'InstagramUser' field :mentioned_instagram_users, { list: 'InstagramUser' } diff --git a/lib/facebook_ads/ad_objects/instagram_insights_result.rb b/lib/facebook_ads/ad_objects/instagram_insights_result.rb index 5d77e5d9..099eb3fc 100644 --- a/lib/facebook_ads/ad_objects/instagram_insights_result.rb +++ b/lib/facebook_ads/ad_objects/instagram_insights_result.rb @@ -31,21 +31,15 @@ class InstagramInsightsResult < AdObject "impressions", "likes", "navigation", - "peak_concurrent_viewers", "plays", "profile_activity", "profile_visits", - "quotes", "reach", "replies", - "reposts", "saved", "shares", - "thread_replies", - "thread_shares", "total_interactions", "video_views", - "views", ] PERIOD = [ diff --git a/lib/facebook_ads/ad_objects/instagram_media.rb b/lib/facebook_ads/ad_objects/instagram_media.rb index 28d77260..6dc2f00a 100644 --- a/lib/facebook_ads/ad_objects/instagram_media.rb +++ b/lib/facebook_ads/ad_objects/instagram_media.rb @@ -21,6 +21,7 @@ class InstagramMedia < AdObject field :display_url, 'string' field :filter_name, 'string' field :id, 'string' + field :ig_media_id, 'string' field :latitude, 'double' field :like_count, 'int' field :location, 'Location' diff --git a/lib/facebook_ads/ad_objects/instagram_user.rb b/lib/facebook_ads/ad_objects/instagram_user.rb index 3d4963ba..1fd74008 100644 --- a/lib/facebook_ads/ad_objects/instagram_user.rb +++ b/lib/facebook_ads/ad_objects/instagram_user.rb @@ -19,6 +19,7 @@ class InstagramUser < AdObject field :followed_by_count, 'int' field :has_profile_picture, 'bool' field :id, 'string' + field :ig_user_id, 'string' field :is_private, 'bool' field :is_published, 'bool' field :media_count, 'int' diff --git a/lib/facebook_ads/ad_objects/lead_gen_form_preview_details.rb b/lib/facebook_ads/ad_objects/lead_gen_form_preview_details.rb index 8f9a4945..fe505ff2 100644 --- a/lib/facebook_ads/ad_objects/lead_gen_form_preview_details.rb +++ b/lib/facebook_ads/ad_objects/lead_gen_form_preview_details.rb @@ -17,6 +17,8 @@ class LeadGenFormPreviewDetails < AdObject field :call_business_text, 'string' field :call_to_action_title, 'string' + field :chat_on_messenger_text, 'string' + field :chat_on_whatsapp_text, 'string' field :contact_information_text, 'string' field :creatives_overview_default_text, 'string' field :data_privacy_policy_setting_description, 'string' diff --git a/lib/facebook_ads/ad_objects/live_video_ad_campaign_config.rb b/lib/facebook_ads/ad_objects/live_video_ad_campaign_config.rb new file mode 100644 index 00000000..90722b3c --- /dev/null +++ b/lib/facebook_ads/ad_objects/live_video_ad_campaign_config.rb @@ -0,0 +1,24 @@ +# 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 LiveVideoAdCampaignConfig < AdObject + + field :id, 'string' + field :live_video_ad_type, 'string' + has_no_post + has_no_delete + + end +end diff --git a/lib/facebook_ads/ad_objects/messenger_business_template.rb b/lib/facebook_ads/ad_objects/messenger_business_template.rb index d4f1e0d1..db5a0901 100644 --- a/lib/facebook_ads/ad_objects/messenger_business_template.rb +++ b/lib/facebook_ads/ad_objects/messenger_business_template.rb @@ -14,6 +14,19 @@ module FacebookAds # pull request for this class. class MessengerBusinessTemplate < AdObject + STATUS = [ + "APPROVED", + "ARCHIVED", + "DELETED", + "DISABLED", + "IN_APPEAL", + "LIMIT_EXCEEDED", + "PAUSED", + "PENDING", + "PENDING_DELETION", + "REJECTED", + ] + field :category, 'string' field :components, { list: 'object' } @@ -26,7 +39,6 @@ class MessengerBusinessTemplate < AdObject field :name, 'string' field :rejected_reason, 'string' field :status, 'string' - has_no_post has_no_delete end diff --git a/lib/facebook_ads/ad_objects/messenger_call_settings.rb b/lib/facebook_ads/ad_objects/messenger_call_settings.rb index c65bea7a..793ab2f0 100644 --- a/lib/facebook_ads/ad_objects/messenger_call_settings.rb +++ b/lib/facebook_ads/ad_objects/messenger_call_settings.rb @@ -16,6 +16,7 @@ module FacebookAds class MessengerCallSettings < AdObject field :audio_enabled, 'bool' + field :icon_enabled, 'bool' has_no_id has_no_get has_no_post diff --git a/lib/facebook_ads/ad_objects/open_bridge_configuration.rb b/lib/facebook_ads/ad_objects/open_bridge_configuration.rb index 9418f054..254e8b1a 100644 --- a/lib/facebook_ads/ad_objects/open_bridge_configuration.rb +++ b/lib/facebook_ads/ad_objects/open_bridge_configuration.rb @@ -16,13 +16,20 @@ module FacebookAds class OpenBridgeConfiguration < AdObject field :active, 'bool' + field :cloud_provider, 'string' + field :cloud_region, 'string' + field :destination_id, 'string' field :endpoint, 'string' field :fallback_domain, 'string' field :fallback_domain_enabled, 'bool' + field :first_party_domain, 'string' field :host_business_id, 'string' field :host_external_id, 'string' field :id, 'string' field :instance_id, 'string' + field :instance_version, 'string' + field :is_sgw_instance, 'bool' + field :partner_name, 'string' field :pixel_id, 'string' end diff --git a/lib/facebook_ads/ad_objects/page.rb b/lib/facebook_ads/ad_objects/page.rb index 6972c0d1..7c5ae5bf 100644 --- a/lib/facebook_ads/ad_objects/page.rb +++ b/lib/facebook_ads/ad_objects/page.rb @@ -149,41 +149,6 @@ class Page < AdObject "VIEW_MONETIZATION_INSIGHTS", ] - ALIGNMENT = [ - "LEFT", - "RIGHT", - ] - - ENTRY_POINT_ICON = [ - "CHAT_ANGULAR_ICON", - "CHAT_ROUND_ICON", - "MESSENGER_ICON", - "NONE", - ] - - ENTRY_POINT_LABEL = [ - "ASK_US", - "CHAT", - "HELP", - "NONE", - ] - - GREETING_DIALOG_DISPLAY = [ - "HIDE", - "SHOW", - "WELCOME_MESSAGE", - ] - - GUEST_CHAT_MODE = [ - "DISABLED", - "ENABLED", - ] - - MOBILE_CHAT_DISPLAY = [ - "APP_SWITCH", - "CHAT_TAB", - ] - BACKDATED_TIME_GRANULARITY = [ "day", "hour", @@ -231,6 +196,10 @@ class Page < AdObject "SCHEDULED_RECURRING", ] + CATEGORY = [ + "UTILITY", + ] + MESSAGING_TYPE = [ "MESSAGE_TAG", "RESPONSE", @@ -360,7 +329,6 @@ class Page < AdObject "messaging_referrals", "mission", "name", - "otp_verification", "page_about_story", "page_change_proposal", "page_upcoming_change", @@ -649,7 +617,7 @@ class Page < AdObject has_edge :calls do |edge| edge.post do |api| - api.has_param :action, { enum: %w{ACCEPT REJECT TERMINATE }} + api.has_param :action, { enum: %w{ACCEPT CONNECT REJECT TERMINATE }} api.has_param :call_id, 'string' api.has_param :platform, { enum: %w{INSTAGRAM MESSENGER }} api.has_param :session, 'hash' @@ -693,20 +661,6 @@ class Page < AdObject has_edge :chat_plugin do |edge| edge.get 'ChatPlugin' - edge.post 'Page' do |api| - api.has_param :alignment, { enum: -> { Page::ALIGNMENT }} - api.has_param :desktop_bottom_spacing, 'int' - api.has_param :desktop_side_spacing, 'int' - api.has_param :entry_point_icon, { enum: -> { Page::ENTRY_POINT_ICON }} - api.has_param :entry_point_label, { enum: -> { Page::ENTRY_POINT_LABEL }} - api.has_param :greeting_dialog_display, { enum: -> { Page::GREETING_DIALOG_DISPLAY }} - api.has_param :guest_chat_mode, { enum: -> { Page::GUEST_CHAT_MODE }} - api.has_param :mobile_bottom_spacing, 'int' - api.has_param :mobile_chat_display, { enum: -> { Page::MOBILE_CHAT_DISPLAY }} - api.has_param :mobile_side_spacing, 'int' - api.has_param :theme_color, 'string' - api.has_param :welcome_screen_greeting, 'string' - end end has_edge :commerce_merchant_settings do |edge| @@ -920,7 +874,6 @@ class Page < AdObject api.has_param :text_format_metadata, 'string' api.has_param :text_format_preset_id, 'string' api.has_param :text_only_place, 'string' - api.has_param :throwback_camera_roll_media, 'string' api.has_param :thumbnail, 'file' api.has_param :time_since_original_post, 'int' api.has_param :title, 'string' @@ -991,6 +944,7 @@ class Page < AdObject api.has_param :questions, { list: 'object' } api.has_param :thank_you_page, 'object' api.has_param :tracking_parameters, 'hash' + api.has_param :upload_gated_file, 'file' end end @@ -1083,6 +1037,30 @@ class Page < AdObject end end + has_edge :message_templates do |edge| + edge.delete do |api| + api.has_param :name, 'string' + api.has_param :template_id, 'string' + end + edge.get 'MessengerBusinessTemplate' do |api| + api.has_param :category, { list: { enum: -> { Page::CATEGORY }} } + api.has_param :content, 'string' + api.has_param :language, { list: 'string' } + api.has_param :name, 'string' + api.has_param :name_or_content, 'string' + api.has_param :status, { list: { enum: -> { MessengerBusinessTemplate::STATUS }} } + end + edge.post 'Page' do |api| + api.has_param :category, { enum: -> { Page::CATEGORY }} + api.has_param :components, { list: 'hash' } + api.has_param :example, 'hash' + api.has_param :language, 'string' + api.has_param :library_template_button_inputs, { list: 'hash' } + api.has_param :library_template_name, 'string' + api.has_param :name, 'string' + end + end + has_edge :messages do |edge| edge.post 'Page' do |api| api.has_param :message, 'object' @@ -1106,6 +1084,7 @@ class Page < AdObject edge.get 'MessengerCallSettings' edge.post 'Page' do |api| api.has_param :audio_enabled, 'bool' + api.has_param :icon_enabled, 'bool' end end @@ -1594,7 +1573,6 @@ class Page < AdObject api.has_param :swap_mode, { enum: -> { AdVideo::SWAP_MODE }} api.has_param :targeting, 'object' api.has_param :text_format_metadata, 'string' - api.has_param :throwback_camera_roll_media, 'string' api.has_param :thumb, 'file' api.has_param :time_since_original_post, 'int' api.has_param :title, 'string' diff --git a/lib/facebook_ads/ad_objects/partnership_ads_identity.rb b/lib/facebook_ads/ad_objects/partnership_ads_identity.rb index cff0a9f9..847469d7 100644 --- a/lib/facebook_ads/ad_objects/partnership_ads_identity.rb +++ b/lib/facebook_ads/ad_objects/partnership_ads_identity.rb @@ -15,6 +15,7 @@ module FacebookAds class PartnershipAdsIdentity < AdObject + field :is_saved, 'bool' field :post_types, { list: 'string' } field :secondary_identities, { list: 'object' } has_no_id diff --git a/lib/facebook_ads/ad_objects/product_item.rb b/lib/facebook_ads/ad_objects/product_item.rb index 6a53d89c..e85742b5 100644 --- a/lib/facebook_ads/ad_objects/product_item.rb +++ b/lib/facebook_ads/ad_objects/product_item.rb @@ -390,6 +390,13 @@ class ProductItem < AdObject "ITEM_PRICE_NOT_POSITIVE", "ITEM_STALE_OUT_OF_STOCK", "MARKETPLACE_DISABLED_BY_USER", + "MARKETPLACE_PARTNER_LISTING_LIMIT_EXCEEDED", + "MARKETPLACE_PARTNER_NOT_LOCAL_ITEM", + "MARKETPLACE_PARTNER_NOT_SHIPPED_ITEM", + "MARKETPLACE_PARTNER_POLICY_VIOLATION", + "MARKETPLACE_PARTNER_RULE_LISTING_LIMIT_EXCEEDED", + "MARKETPLACE_PARTNER_SELLER_BANNED", + "MARKETPLACE_PARTNER_SELLER_NOT_VALID", "MINI_SHOPS_DISABLED_BY_USER", "MISSING_CHECKOUT", "MISSING_CHECKOUT_CURRENCY", @@ -801,6 +808,7 @@ class ProductItem < AdObject field :start_date, 'string' field :tags, { list: 'string' } field :url, 'string' + field :vendor_id, 'string' field :video_fetch_status, { enum: -> { VIDEO_FETCH_STATUS }} field :visibility, { enum: -> { VISIBILITY }} field :wa_compliance_category, 'string' diff --git a/lib/facebook_ads/ad_objects/reach_frequency_prediction.rb b/lib/facebook_ads/ad_objects/reach_frequency_prediction.rb index be04e84c..42875150 100644 --- a/lib/facebook_ads/ad_objects/reach_frequency_prediction.rb +++ b/lib/facebook_ads/ad_objects/reach_frequency_prediction.rb @@ -114,6 +114,7 @@ class ReachFrequencyPrediction < AdObject field :optimization_goal, 'int' field :optimization_goal_name, 'string' field :pause_periods, { list: 'object' } + field :percent_reach_at_target_frequency, 'int' field :placement_breakdown, 'ReachFrequencyEstimatesPlacementBreakdown' field :placement_breakdown_map, { list: 'map' } field :plan_name, 'string' diff --git a/lib/facebook_ads/ad_objects/regional_regulation_identities.rb b/lib/facebook_ads/ad_objects/regional_regulation_identities.rb index 08713cd4..a91e4cb0 100644 --- a/lib/facebook_ads/ad_objects/regional_regulation_identities.rb +++ b/lib/facebook_ads/ad_objects/regional_regulation_identities.rb @@ -15,6 +15,8 @@ module FacebookAds class RegionalRegulationIdentities < AdObject + field :australia_finserv_beneficiary, 'string' + field :australia_finserv_payer, 'string' field :taiwan_finserv_beneficiary, 'string' field :taiwan_finserv_payer, 'string' has_no_id diff --git a/lib/facebook_ads/ad_objects/user.rb b/lib/facebook_ads/ad_objects/user.rb index 869dcfe6..0e05b1dc 100644 --- a/lib/facebook_ads/ad_objects/user.rb +++ b/lib/facebook_ads/ad_objects/user.rb @@ -53,6 +53,7 @@ class User < AdObject field :id, 'string' field :id_for_avatars, 'string' field :inspirational_people, { list: 'Experience' } + field :instagram_user_self_asset, 'InstagramUser' field :install_type, 'string' field :installed, 'bool' field :is_guest_user, 'bool' @@ -73,6 +74,7 @@ class User < AdObject field :profile_pic, 'string' field :quotes, 'string' field :relationship_status, 'string' + field :religion, 'string' field :shared_login_upgrade_required_by, 'datetime' field :short_name, 'string' field :significant_other, 'User' @@ -339,7 +341,6 @@ class User < AdObject api.has_param :text_format_metadata, 'string' api.has_param :text_format_preset_id, 'string' api.has_param :text_only_place, 'string' - api.has_param :throwback_camera_roll_media, 'string' api.has_param :thumbnail, 'file' api.has_param :time_since_original_post, 'int' api.has_param :title, 'string' @@ -636,7 +637,6 @@ class User < AdObject api.has_param :start_offset, 'int' api.has_param :swap_mode, { enum: -> { AdVideo::SWAP_MODE }} api.has_param :text_format_metadata, 'string' - api.has_param :throwback_camera_roll_media, 'string' api.has_param :thumb, 'file' api.has_param :time_since_original_post, 'int' api.has_param :title, 'string' 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 47f320fe..b2a7864c 100644 --- a/lib/facebook_ads/ad_objects/whats_app_business_account.rb +++ b/lib/facebook_ads/ad_objects/whats_app_business_account.rb @@ -14,6 +14,19 @@ module FacebookAds # pull request for this class. class WhatsAppBusinessAccount < AdObject + BUSINESS_VERIFICATION_STATUS = [ + "expired", + "failed", + "ineligible", + "not_verified", + "pending", + "pending_need_more_info", + "pending_submission", + "rejected", + "revoked", + "verified", + ] + TASKS = [ "DEVELOP", "MANAGE", @@ -37,6 +50,11 @@ class WhatsAppBusinessAccount < AdObject "ORDER_DETAILS", ] + PARAMETER_FORMAT = [ + "NAMED", + "POSITIONAL", + ] + SUB_CATEGORY = [ "ORDER_DETAILS", "ORDER_STATUS", @@ -54,7 +72,7 @@ class WhatsAppBusinessAccount < AdObject field :account_review_status, 'string' field :analytics, 'object' field :auth_international_rate_eligibility, 'object' - field :business_verification_status, 'string' + field :business_verification_status, { enum: -> { BUSINESS_VERIFICATION_STATUS }} field :country, 'string' field :creation_time, 'int' field :currency, 'string' @@ -111,7 +129,7 @@ class WhatsAppBusinessAccount < AdObject has_edge :conversation_analytics do |edge| edge.get do |api| - api.has_param :conversation_categories, { list: { enum: %w{AUTHENTICATION AUTHENTICATION_INTERNATIONAL MARKETING MARKETING_OPTIMIZED_DELIVERY SERVICE UNKNOWN UTILITY UTILITY_FIXED_TEMPLATE }} } + api.has_param :conversation_categories, { list: { enum: %w{AUTHENTICATION AUTHENTICATION_INTERNATIONAL MARKETING MARKETING_LITE SERVICE UTILITY }} } api.has_param :conversation_directions, { list: { enum: %w{BUSINESS_INITIATED UNKNOWN USER_INITIATED }} } api.has_param :conversation_types, { list: { enum: %w{FREE_ENTRY_POINT FREE_TIER REGULAR UNKNOWN }} } api.has_param :country_codes, { list: 'string' } @@ -192,6 +210,7 @@ class WhatsAppBusinessAccount < AdObject api.has_param :library_template_name, 'string' api.has_param :message_send_ttl_seconds, 'int' api.has_param :name, 'string' + api.has_param :parameter_format, { enum: -> { WhatsAppBusinessAccount::PARAMETER_FORMAT }} api.has_param :sub_category, { enum: -> { WhatsAppBusinessAccount::SUB_CATEGORY }} end end diff --git a/lib/facebook_ads/ad_objects/whats_app_business_partner_client_verification_submission.rb b/lib/facebook_ads/ad_objects/whats_app_business_partner_client_verification_submission.rb index 2d1748f7..f0923a2a 100644 --- a/lib/facebook_ads/ad_objects/whats_app_business_partner_client_verification_submission.rb +++ b/lib/facebook_ads/ad_objects/whats_app_business_partner_client_verification_submission.rb @@ -19,6 +19,7 @@ class WhatsAppBusinessPartnerClientVerificationSubmission < AdObject "BUSINESS_NOT_ELIGIBLE", "LEGAL_NAME_NOT_FOUND_IN_DOCUMENTS", "LEGAL_NAME_NOT_MATCHING", + "MALFORMED_DOCUMENTS", "NONE", "WEBSITE_NOT_MATCHING", ]