diff --git a/examples/AdAccountAdSetsPostAdSetCreateCpa.rb b/examples/AdAccountAdSetsPostAdSetCreateCpa.rb index 644c887d..866f3b68 100644 --- a/examples/AdAccountAdSetsPostAdSetCreateCpa.rb +++ b/examples/AdAccountAdSetsPostAdSetCreateCpa.rb @@ -34,8 +34,8 @@ name: 'A CPA Ad Set', campaign_id: '', daily_budget: '5000', - start_time: '2024-03-20T14:31:58-0700', - end_time: '2024-03-27T14:31:58-0700', + start_time: '2024-04-08T11:26:05-0700', + end_time: '2024-04-15T11:26:05-0700', billing_event: 'IMPRESSIONS', optimization_goal: 'REACH', bid_amount: '1000', diff --git a/examples/AdAccountAdSetsPostAdSetCreateCpaAppEvents.rb b/examples/AdAccountAdSetsPostAdSetCreateCpaAppEvents.rb index f3e40f20..57a66be9 100644 --- a/examples/AdAccountAdSetsPostAdSetCreateCpaAppEvents.rb +++ b/examples/AdAccountAdSetsPostAdSetCreateCpaAppEvents.rb @@ -34,8 +34,8 @@ name: 'A CPA Ad Set optimized for App Events', campaign_id: '', daily_budget: '300', - start_time: '2024-03-20T14:32:42-0700', - end_time: '2024-03-27T14:32:42-0700', + start_time: '2024-04-08T11:26:49-0700', + end_time: '2024-04-15T11:26:49-0700', billing_event: 'IMPRESSIONS', optimization_goal: 'OFFSITE_CONVERSIONS', bid_amount: '100', diff --git a/examples/AdAccountAdSetsPostCreateAdSet.rb b/examples/AdAccountAdSetsPostCreateAdSet.rb index 6b2325d8..f7edfbe2 100644 --- a/examples/AdAccountAdSetsPostCreateAdSet.rb +++ b/examples/AdAccountAdSetsPostCreateAdSet.rb @@ -33,8 +33,8 @@ adsets = ad_account.adsets.create({ name: 'My First AdSet', lifetime_budget: '20000', - start_time: '2024-03-20T14:31:13-0700', - end_time: '2024-03-27T14:31:13-0700', + start_time: '2024-04-08T11:25:19-0700', + end_time: '2024-04-15T11:25:19-0700', campaign_id: '', bid_amount: '500', billing_event: 'IMPRESSIONS', diff --git a/examples/AdAccountAdSetsPostDailyBudget20.rb b/examples/AdAccountAdSetsPostDailyBudget20.rb index 41fdcd94..5c831803 100644 --- a/examples/AdAccountAdSetsPostDailyBudget20.rb +++ b/examples/AdAccountAdSetsPostDailyBudget20.rb @@ -33,8 +33,8 @@ adsets = ad_account.adsets.create({ name: 'My First Adset', daily_budget: '2000', - start_time: '2024-03-13T14:32:15-0700', - end_time: '2024-03-20T14:32:15-0700', + start_time: '2024-04-01T11:26:23-0700', + end_time: '2024-04-08T11:26:23-0700', campaign_id: '', bid_amount: '100', billing_event: 'LINK_CLICKS', diff --git a/examples/AdAccountAdSetsPostLifetimeBudget200Duration10Days.rb b/examples/AdAccountAdSetsPostLifetimeBudget200Duration10Days.rb index 137d52ae..8e5f6422 100644 --- a/examples/AdAccountAdSetsPostLifetimeBudget200Duration10Days.rb +++ b/examples/AdAccountAdSetsPostLifetimeBudget200Duration10Days.rb @@ -33,8 +33,8 @@ adsets = ad_account.adsets.create({ name: 'My First Adset', lifetime_budget: '20000', - start_time: '2024-03-13T14:32:24-0700', - end_time: '2024-03-23T14:32:24-0700', + start_time: '2024-04-01T11:26:32-0700', + end_time: '2024-04-11T11:26:32-0700', campaign_id: '', bid_amount: '100', billing_event: 'LINK_CLICKS', diff --git a/examples/AdAccountAdSetsPostOptimizePostEngagement.rb b/examples/AdAccountAdSetsPostOptimizePostEngagement.rb index d40c401a..9d06b5a6 100644 --- a/examples/AdAccountAdSetsPostOptimizePostEngagement.rb +++ b/examples/AdAccountAdSetsPostOptimizePostEngagement.rb @@ -33,8 +33,8 @@ adsets = ad_account.adsets.create({ name: 'My First Adset', lifetime_budget: '20000', - start_time: '2024-03-13T14:32:33-0700', - end_time: '2024-03-23T14:32:33-0700', + start_time: '2024-04-01T11:26:40-0700', + end_time: '2024-04-11T11:26:40-0700', campaign_id: '', bid_amount: '500', billing_event: 'IMPRESSIONS', diff --git a/examples/AdgroupLeadsEdgeAdgroupLeadsFiltered.rb b/examples/AdgroupLeadsEdgeAdgroupLeadsFiltered.rb index 59777af3..f7345799 100644 --- a/examples/AdgroupLeadsEdgeAdgroupLeadsFiltered.rb +++ b/examples/AdgroupLeadsEdgeAdgroupLeadsFiltered.rb @@ -32,5 +32,5 @@ ad = FacebookAds::Ad.get(id) leadss = ad.leads({ fields: { }, - filtering: [{'field':'time_created','operator':'GREATER_THAN','value':1681144509}], + filtering: [{'field':'time_created','operator':'GREATER_THAN','value':1711391704}], }) \ No newline at end of file diff --git a/examples/AdsPixelEventsPost.rb b/examples/AdsPixelEventsPost.rb index 626c124f..8fa61d11 100644 --- a/examples/AdsPixelEventsPost.rb +++ b/examples/AdsPixelEventsPost.rb @@ -31,5 +31,5 @@ ads_pixel = FacebookAds::AdsPixel.get(id) events = ads_pixel.events.create({ - data: [{'event_name':'PageView','event_time':1681748568,'user_data':{'fbc':'fb.1.1554763741205.AbCdEfGhIjKlMnOpQrStUvWxYz1234567890','fbp':'fb.1.1558571054389.1098115397','em':'309a0a5c3e211326ae75ca18196d301a9bdbd1a882a4d2569511033da23f0abd'}}], + data: [{'event_name':'PageView','event_time':1711995835,'user_data':{'fbc':'fb.1.1554763741205.AbCdEfGhIjKlMnOpQrStUvWxYz1234567890','fbp':'fb.1.1558571054389.1098115397','em':'309a0a5c3e211326ae75ca18196d301a9bdbd1a882a4d2569511033da23f0abd'}}], }) \ No newline at end of file diff --git a/lib/facebook_ads/ad_objects/ad_account.rb b/lib/facebook_ads/ad_objects/ad_account.rb index 4638b832..a4d92dde 100644 --- a/lib/facebook_ads/ad_objects/ad_account.rb +++ b/lib/facebook_ads/ad_objects/ad_account.rb @@ -103,6 +103,7 @@ class AdAccount < AdObject "AUTOMOTIVE_MODEL", "DESTINATION", "FLIGHT", + "GENERIC", "HOME_LISTING", "HOTEL", "JOB", @@ -122,6 +123,7 @@ class AdAccount < AdObject "CLAIM", "CUSTOM", "ENGAGEMENT", + "EXCLUSION", "FOX", "LOOKALIKE", "MANAGED", @@ -151,6 +153,7 @@ class AdAccount < AdObject field :amount_spent, 'string' field :attribution_spec, { list: 'AttributionSpec' } field :balance, 'string' + field :brand_safety_content_filter_levels, { list: 'string' } field :business, 'Business' field :business_city, 'string' field :business_country_code, 'string' @@ -685,6 +688,10 @@ class AdAccount < AdObject end end + has_edge :audience_funnel do |edge| + edge.get + end + has_edge :block_list_drafts do |edge| edge.post 'AdAccount' do |api| api.has_param :publisher_urls_file, 'file' @@ -762,6 +769,10 @@ class AdAccount < AdObject edge.get end + has_edge :cpa_guidance do |edge| + edge.get + end + has_edge :customaudiences do |edge| edge.get 'CustomAudience' do |api| api.has_param :business_id, 'string' @@ -1113,6 +1124,8 @@ class AdAccount < AdObject api.has_param :allow_only_fat_head_interests, 'bool' api.has_param :app_store, { enum: -> { AdAccountTargetingUnified::APP_STORE }} api.has_param :countries, { list: 'string' } + api.has_param :is_account_level_brand_safety_exclusion, 'bool' + api.has_param :is_account_level_employer_exclusion, 'bool' api.has_param :is_exclusion, 'bool' api.has_param :limit_type, { enum: -> { AdAccountTargetingUnified::LIMIT_TYPE }} api.has_param :objective, { enum: -> { AdAccountTargetingUnified::OBJECTIVE }} @@ -1179,6 +1192,10 @@ class AdAccount < AdObject end end + has_edge :value_adjustment_rule_collections do |edge| + edge.get + end + has_edge :value_adjustment_rules do |edge| edge.get 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 a6f80db7..3cbcbbee 100644 --- a/lib/facebook_ads/ad_objects/ad_account_ad_volume.rb +++ b/lib/facebook_ads/ad_objects/ad_account_ad_volume.rb @@ -42,6 +42,7 @@ class AdAccountAdVolume < AdObject "ASC_BUDGET_OPTIMIZATION", "ASC_BUDGET_OPTIMIZATION_PFR", "ASC_CREATION_PACKAGE", + "ASC_FRAGMENTATION_V2", "ASPECT_RATIO", "ATLEAST_6_PLACEMENTS", "AUCTION_OVERLAP", @@ -59,6 +60,7 @@ class AdAccountAdVolume < AdObject "CAPI_PERFORMANCE_MATCH_KEY", "CAPI_PERFORMANCE_MATCH_KEY_V2", "CASH_REWARDS_OPT_IN", + "CONNECTED_SOURCES", "CONNECT_FACEBOOK_PAGE_TO_INSTAGRAM", "CONNECT_FACEBOOK_PAGE_TO_WHATSAPP", "CONVERSION_LEAD_ADS", @@ -78,8 +80,10 @@ class AdAccountAdVolume < AdObject "CREATOR_ADS_PA_CONVERSION", "CTA", "CTX_BUDGET_OPTIMIZATION", + "CTX_CREATION_PACKAGE", "CTX_GUIDANCE", "DA_ADVANTAGE_PLUS_CREATIVE_INFO_LABELS", + "DA_DUPLICATION_PRODUCT_TAGS", "DEAD_LINK", "DYNAMIC_ADVANTAGE_CAMPAIGN_BUDGET", "ECOSYSTEM_BID_REDUCE_L1_CARDINALITY", @@ -110,6 +114,7 @@ class AdAccountAdVolume < AdObject "PFR_L1_INLINE_MMT", "PREDICTIVE_CREATIVE_LIMITED", "PREDICTIVE_CREATIVE_LIMITED_HOURLY", + "PREPARING_STATUS", "RAPID_LEARNING_LIMITED", "RAPID_LEARNING_PHASE", "REELS_DUPLICATION_UPSELL", diff --git a/lib/facebook_ads/ad_objects/ad_account_targeting_unified.rb b/lib/facebook_ads/ad_objects/ad_account_targeting_unified.rb index 3c05e4d0..8846cecb 100644 --- a/lib/facebook_ads/ad_objects/ad_account_targeting_unified.rb +++ b/lib/facebook_ads/ad_objects/ad_account_targeting_unified.rb @@ -396,6 +396,7 @@ class AdAccountTargetingUnified < AdObject "location_categories", "location_cluster_ids", "location_expansion", + "marketing_message_channels", "marketing_message_targeting", "marketplace_product_categories", "messenger_positions", diff --git a/lib/facebook_ads/ad_objects/ad_activity.rb b/lib/facebook_ads/ad_objects/ad_activity.rb index 72afb34d..5a62048f 100644 --- a/lib/facebook_ads/ad_objects/ad_activity.rb +++ b/lib/facebook_ads/ad_objects/ad_activity.rb @@ -96,6 +96,7 @@ class AdActivity < AdObject "update_campaign_name", "update_campaign_run_status", "update_campaign_schedule", + "update_campaign_value_adjustment_rule", "update_delivery_type_cross_level_shift", ] 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 04a0dcbf..6dc63ed3 100644 --- a/lib/facebook_ads/ad_objects/ad_asset_feed_spec.rb +++ b/lib/facebook_ads/ad_objects/ad_asset_feed_spec.rb @@ -17,15 +17,20 @@ class AdAssetFeedSpec < AdObject CALL_TO_ACTION_TYPES = [ "ADD_TO_CART", "APPLY_NOW", + "ASK_ABOUT_SERVICES", + "ASK_FOR_MORE_INFO", "AUDIO_CALL", + "BOOK_A_CONSULTATION", "BOOK_NOW", "BOOK_TRAVEL", "BUY", "BUY_NOW", "BUY_TICKETS", + "BUY_VIA_MESSAGE", "CALL", "CALL_ME", "CALL_NOW", + "CHAT_WITH_US", "CONFIRM", "CONTACT", "CONTACT_US", @@ -38,6 +43,7 @@ class AdAssetFeedSpec < AdObject "FOLLOW_NEWS_STORYLINE", "FOLLOW_PAGE", "FOLLOW_USER", + "GET_A_QUOTE", "GET_DIRECTIONS", "GET_OFFER", "GET_OFFER_VIEW", @@ -53,6 +59,7 @@ class AdAssetFeedSpec < AdObject "LIKE_PAGE", "LISTEN_MUSIC", "LISTEN_NOW", + "MAKE_AN_APPOINTMENT", "MESSAGE_PAGE", "MOBILE_DOWNLOAD", "NO_BUTTON", @@ -112,6 +119,7 @@ class AdAssetFeedSpec < AdObject field :message_extensions, { list: 'AdAssetMessageExtensions' } field :onsite_destinations, { list: 'AdAssetOnsiteDestinations' } field :optimization_type, 'string' + field :promotional_metadata, 'object' field :reasons_to_shop, 'bool' field :shops_bundle, 'bool' field :titles, { list: 'AdAssetFeedSpecTitle' } diff --git a/lib/facebook_ads/ad_objects/ad_creative.rb b/lib/facebook_ads/ad_objects/ad_creative.rb index 131fdedc..73bff28d 100644 --- a/lib/facebook_ads/ad_objects/ad_creative.rb +++ b/lib/facebook_ads/ad_objects/ad_creative.rb @@ -17,15 +17,20 @@ class AdCreative < AdObject CALL_TO_ACTION_TYPE = [ "ADD_TO_CART", "APPLY_NOW", + "ASK_ABOUT_SERVICES", + "ASK_FOR_MORE_INFO", "AUDIO_CALL", + "BOOK_A_CONSULTATION", "BOOK_NOW", "BOOK_TRAVEL", "BUY", "BUY_NOW", "BUY_TICKETS", + "BUY_VIA_MESSAGE", "CALL", "CALL_ME", "CALL_NOW", + "CHAT_WITH_US", "CONFIRM", "CONTACT", "CONTACT_US", @@ -38,6 +43,7 @@ class AdCreative < AdObject "FOLLOW_NEWS_STORYLINE", "FOLLOW_PAGE", "FOLLOW_USER", + "GET_A_QUOTE", "GET_DIRECTIONS", "GET_OFFER", "GET_OFFER_VIEW", @@ -53,6 +59,7 @@ class AdCreative < AdObject "LIKE_PAGE", "LISTEN_MUSIC", "LISTEN_NOW", + "MAKE_AN_APPOINTMENT", "MESSAGE_PAGE", "MOBILE_DOWNLOAD", "NO_BUTTON", 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 09825075..bb8603c3 100644 --- a/lib/facebook_ads/ad_objects/ad_creative_features_spec.rb +++ b/lib/facebook_ads/ad_objects/ad_creative_features_spec.rb @@ -16,8 +16,11 @@ module FacebookAds class AdCreativeFeaturesSpec < AdObject field :advantage_plus_creative, 'AdCreativeFeatureDetails' + field :app_highlights, 'AdCreativeFeatureDetails' field :audio, 'AdCreativeFeatureDetails' field :carousel_to_video, 'AdCreativeFeatureDetails' + field :catalog_feed_tag, 'AdCreativeFeatureDetails' + field :customize_product_recommendation, 'AdCreativeFeatureDetails' field :cv_transformation, 'AdCreativeFeatureDetails' field :description_automation, 'AdCreativeFeatureDetails' field :dha_optimization, 'AdCreativeFeatureDetails' @@ -36,6 +39,7 @@ class AdCreativeFeaturesSpec < AdObject field :product_metadata_automation, 'AdCreativeFeatureDetails' field :product_tags, 'AdCreativeFeatureDetails' field :profile_card, 'AdCreativeFeatureDetails' + field :site_extensions, 'AdCreativeFeatureDetails' field :standard_enhancements, 'AdCreativeFeatureDetails' field :standard_enhancements_catalog, 'AdCreativeFeatureDetails' field :text_generation, '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 116ec6f5..ad7f2179 100644 --- a/lib/facebook_ads/ad_objects/ad_creative_link_data.rb +++ b/lib/facebook_ads/ad_objects/ad_creative_link_data.rb @@ -19,6 +19,7 @@ class AdCreativeLinkData < AdObject "carousel_images_multi_items", "carousel_images_single_item", "carousel_slideshows", + "collection_video", "single_image", ] 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 32f5c0c8..18813bdc 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 @@ -17,15 +17,20 @@ class AdCreativeLinkDataCallToAction < AdObject TYPE = [ "ADD_TO_CART", "APPLY_NOW", + "ASK_ABOUT_SERVICES", + "ASK_FOR_MORE_INFO", "AUDIO_CALL", + "BOOK_A_CONSULTATION", "BOOK_NOW", "BOOK_TRAVEL", "BUY", "BUY_NOW", "BUY_TICKETS", + "BUY_VIA_MESSAGE", "CALL", "CALL_ME", "CALL_NOW", + "CHAT_WITH_US", "CONFIRM", "CONTACT", "CONTACT_US", @@ -38,6 +43,7 @@ class AdCreativeLinkDataCallToAction < AdObject "FOLLOW_NEWS_STORYLINE", "FOLLOW_PAGE", "FOLLOW_USER", + "GET_A_QUOTE", "GET_DIRECTIONS", "GET_OFFER", "GET_OFFER_VIEW", @@ -53,6 +59,7 @@ class AdCreativeLinkDataCallToAction < AdObject "LIKE_PAGE", "LISTEN_MUSIC", "LISTEN_NOW", + "MAKE_AN_APPOINTMENT", "MESSAGE_PAGE", "MOBILE_DOWNLOAD", "NO_BUTTON", diff --git a/lib/facebook_ads/ad_objects/ad_creative_sourcing_spec.rb b/lib/facebook_ads/ad_objects/ad_creative_sourcing_spec.rb index 491cfb0c..7dc001ba 100644 --- a/lib/facebook_ads/ad_objects/ad_creative_sourcing_spec.rb +++ b/lib/facebook_ads/ad_objects/ad_creative_sourcing_spec.rb @@ -18,6 +18,7 @@ class AdCreativeSourcingSpec < AdObject field :associated_product_set_id, 'string' field :promotion_metadata_spec, { list: 'AdCreativePromotionMetadataSpec' } field :site_links_spec, { list: 'AdCreativeSiteLinksSpec' } + field :source_url, 'string' has_no_id has_no_get has_no_post diff --git a/lib/facebook_ads/ad_objects/ad_preview.rb b/lib/facebook_ads/ad_objects/ad_preview.rb index 5106b74d..c2d76906 100644 --- a/lib/facebook_ads/ad_objects/ad_preview.rb +++ b/lib/facebook_ads/ad_objects/ad_preview.rb @@ -50,9 +50,11 @@ class AdPreview < AdObject "INSTANT_ARTICLE_RECIRCULATION_AD", "INSTANT_ARTICLE_STANDARD", "INSTREAM_BANNER_DESKTOP", + "INSTREAM_BANNER_FULLSCREEN_MOBILE", "INSTREAM_BANNER_IMMERSIVE_MOBILE", "INSTREAM_BANNER_MOBILE", "INSTREAM_VIDEO_DESKTOP", + "INSTREAM_VIDEO_FULLSCREEN_MOBILE", "INSTREAM_VIDEO_IMAGE", "INSTREAM_VIDEO_IMMERSIVE_MOBILE", "INSTREAM_VIDEO_MOBILE", @@ -70,6 +72,7 @@ class AdPreview < AdObject "MOBILE_NATIVE", "RIGHT_COLUMN_STANDARD", "SUGGESTED_VIDEO_DESKTOP", + "SUGGESTED_VIDEO_FULLSCREEN_MOBILE", "SUGGESTED_VIDEO_IMMERSIVE_MOBILE", "SUGGESTED_VIDEO_MOBILE", "WATCH_FEED_HOME", diff --git a/lib/facebook_ads/ad_objects/ad_set.rb b/lib/facebook_ads/ad_objects/ad_set.rb index 3b5dfe17..c2a5b9eb 100644 --- a/lib/facebook_ads/ad_objects/ad_set.rb +++ b/lib/facebook_ads/ad_objects/ad_set.rb @@ -233,6 +233,7 @@ class AdSet < AdObject field :promoted_object, 'AdPromotedObject' field :recommendations, { list: 'AdRecommendation' } field :recurring_budget_semantics, 'bool' + field :regional_regulation_identities, 'object' field :review_feedback, 'string' field :rf_prediction_id, 'string' field :source_adset, 'AdSet' diff --git a/lib/facebook_ads/ad_objects/ads_pixel.rb b/lib/facebook_ads/ad_objects/ads_pixel.rb index 653fad98..9293a234 100644 --- a/lib/facebook_ads/ad_objects/ads_pixel.rb +++ b/lib/facebook_ads/ad_objects/ads_pixel.rb @@ -183,9 +183,5 @@ class AdsPixel < AdObject end end - has_edge :telemetry do |edge| - edge.post - end - end end diff --git a/lib/facebook_ads/ad_objects/application.rb b/lib/facebook_ads/ad_objects/application.rb index c497e346..3c289300 100644 --- a/lib/facebook_ads/ad_objects/application.rb +++ b/lib/facebook_ads/ad_objects/application.rb @@ -236,6 +236,7 @@ class Application < AdObject api.has_param :page_id, 'int' api.has_param :page_scoped_user_id, 'int' api.has_param :receipt_data, 'string' + api.has_param :sdk_version, 'string' api.has_param :ud, 'hash' api.has_param :url_schemes, { list: 'string' } api.has_param :user_id, 'string' @@ -424,13 +425,6 @@ class Application < AdObject end end - has_edge :events do |edge| - edge.get 'Event' do |api| - api.has_param :include_canceled, 'bool' - api.has_param :type, { enum: -> { Event::TYPE }} - end - end - has_edge :iap_purchases do |edge| edge.get do |api| api.has_param :order_id, 'string' diff --git a/lib/facebook_ads/ad_objects/commerce_merchant_settings.rb b/lib/facebook_ads/ad_objects/commerce_merchant_settings.rb index f5d29c21..ca56f97e 100644 --- a/lib/facebook_ads/ad_objects/commerce_merchant_settings.rb +++ b/lib/facebook_ads/ad_objects/commerce_merchant_settings.rb @@ -39,7 +39,6 @@ class CommerceMerchantSettings < AdObject field :supported_card_types, { list: 'string' } field :terms, 'string' field :terms_url_by_locale, { list: 'hash' } - field :whatsapp_channel, 'object' has_no_post has_no_delete @@ -92,10 +91,6 @@ class CommerceMerchantSettings < AdObject end end - has_edge :seller_issues do |edge| - edge.get - end - has_edge :setup_status do |edge| edge.get 'CommerceMerchantSettingsSetupStatus' end @@ -122,12 +117,5 @@ class CommerceMerchantSettings < AdObject edge.get end - has_edge :whatsapp_channel do |edge| - edge.post do |api| - api.has_param :op, { enum: %w{ADD REMOVE }} - api.has_param :whatsapp_business_accounts, { list: 'string' } - end - end - end end diff --git a/lib/facebook_ads/ad_objects/commerce_order.rb b/lib/facebook_ads/ad_objects/commerce_order.rb index 2853839e..38bc3fa5 100644 --- a/lib/facebook_ads/ad_objects/commerce_order.rb +++ b/lib/facebook_ads/ad_objects/commerce_order.rb @@ -79,10 +79,10 @@ class CommerceOrder < AdObject end end - has_edge :fulfill_order do |edge| + has_edge :item_updates do |edge| edge.post 'CommerceOrder' do |api| - api.has_param :idempotency_key, 'string' api.has_param :items, { list: 'hash' } + api.has_param :merchant_order_reference, 'string' end end @@ -155,5 +155,15 @@ 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.rb b/lib/facebook_ads/ad_objects/custom_audience.rb index 75eacd5e..27cdedca 100644 --- a/lib/facebook_ads/ad_objects/custom_audience.rb +++ b/lib/facebook_ads/ad_objects/custom_audience.rb @@ -30,6 +30,7 @@ class CustomAudience < AdObject "AUTOMOTIVE_MODEL", "DESTINATION", "FLIGHT", + "GENERIC", "HOME_LISTING", "HOTEL", "JOB", @@ -55,6 +56,7 @@ class CustomAudience < AdObject "CLAIM", "CUSTOM", "ENGAGEMENT", + "EXCLUSION", "FOX", "LOOKALIKE", "MANAGED", diff --git a/lib/facebook_ads/ad_objects/destination.rb b/lib/facebook_ads/ad_objects/destination.rb index 978901ca..d25ee380 100644 --- a/lib/facebook_ads/ad_objects/destination.rb +++ b/lib/facebook_ads/ad_objects/destination.rb @@ -42,6 +42,7 @@ class Destination < AdObject field :price, 'string' field :price_change, 'string' field :sanitized_images, { list: 'string' } + field :tags, { list: 'string' } field :types, { list: 'string' } field :unit_price, 'object' field :url, 'string' diff --git a/lib/facebook_ads/ad_objects/flight.rb b/lib/facebook_ads/ad_objects/flight.rb index 2a92e8ee..a0acbb2b 100644 --- a/lib/facebook_ads/ad_objects/flight.rb +++ b/lib/facebook_ads/ad_objects/flight.rb @@ -45,6 +45,7 @@ class Flight < AdObject field :origin_city, 'string' field :price, 'string' field :sanitized_images, { list: 'string' } + field :tags, { list: 'string' } field :unit_price, 'object' field :url, 'string' field :visibility, { enum: -> { VISIBILITY }} diff --git a/lib/facebook_ads/ad_objects/hotel.rb b/lib/facebook_ads/ad_objects/hotel.rb index b12dc882..32d9620c 100644 --- a/lib/facebook_ads/ad_objects/hotel.rb +++ b/lib/facebook_ads/ad_objects/hotel.rb @@ -49,6 +49,7 @@ class Hotel < AdObject field :sale_price, 'string' field :sanitized_images, { list: 'string' } field :star_rating, 'double' + field :tags, { list: 'string' } field :unit_price, 'object' field :url, 'string' field :visibility, { enum: -> { VISIBILITY }} diff --git a/lib/facebook_ads/ad_objects/page_commerce_eligibility.rb b/lib/facebook_ads/ad_objects/ig_upcoming_event.rb similarity index 76% rename from lib/facebook_ads/ad_objects/page_commerce_eligibility.rb rename to lib/facebook_ads/ad_objects/ig_upcoming_event.rb index 5a634028..36911706 100644 --- a/lib/facebook_ads/ad_objects/page_commerce_eligibility.rb +++ b/lib/facebook_ads/ad_objects/ig_upcoming_event.rb @@ -13,13 +13,12 @@ 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 PageCommerceEligibility < AdObject + class IgUpcomingEvent < AdObject - field :offsite, 'object' - field :onsite, 'object' - has_no_id - has_no_get - has_no_post + field :end_time, 'datetime' + field :id, 'string' + field :start_time, 'datetime' + field :title, 'string' has_no_delete end diff --git a/lib/facebook_ads/ad_objects/instagram_user.rb b/lib/facebook_ads/ad_objects/instagram_user.rb index 09f4dc94..e747ea0b 100644 --- a/lib/facebook_ads/ad_objects/instagram_user.rb +++ b/lib/facebook_ads/ad_objects/instagram_user.rb @@ -48,7 +48,12 @@ class InstagramUser < AdObject end has_edge :upcoming_events do |edge| - edge.get + edge.get 'IgUpcomingEvent' + edge.post 'IgUpcomingEvent' do |api| + api.has_param :end_time, 'datetime' + api.has_param :start_time, 'datetime' + api.has_param :title, 'string' + end end end diff --git a/lib/facebook_ads/ad_objects/local_service_business.rb b/lib/facebook_ads/ad_objects/local_service_business.rb index 67296687..5a5ca3f6 100644 --- a/lib/facebook_ads/ad_objects/local_service_business.rb +++ b/lib/facebook_ads/ad_objects/local_service_business.rb @@ -84,6 +84,7 @@ class LocalServiceBusiness < AdObject field :retailer_category, 'string' field :sanitized_images, { list: 'string' } field :size, 'string' + field :tags, { list: 'string' } field :title, 'string' field :unit_price, 'object' field :url, 'string' diff --git a/lib/facebook_ads/ad_objects/page.rb b/lib/facebook_ads/ad_objects/page.rb index 13fe6b8b..0bcb518e 100644 --- a/lib/facebook_ads/ad_objects/page.rb +++ b/lib/facebook_ads/ad_objects/page.rb @@ -375,6 +375,7 @@ class Page < AdObject "publisher_subscriptions", "ratings", "registration", + "response_feedback", "send_cart", "standby", "user_action", @@ -461,6 +462,7 @@ class Page < AdObject field :is_community_page, 'bool' field :is_eligible_for_branded_content, 'bool' field :is_eligible_for_disable_connect_ig_btn_for_non_page_admin_am_web, 'bool' + field :is_eligible_for_live_boosting_expansion, 'bool' field :is_messenger_bot_get_started_enabled, 'bool' field :is_messenger_platform_bot, 'bool' field :is_owned, 'bool' @@ -694,10 +696,6 @@ class Page < AdObject end end - has_edge :commerce_eligibility do |edge| - edge.get 'PageCommerceEligibility' - end - has_edge :commerce_merchant_settings do |edge| edge.get 'CommerceMerchantSettings' end diff --git a/lib/facebook_ads/ad_objects/product_catalog.rb b/lib/facebook_ads/ad_objects/product_catalog.rb index 7cff0538..a4eed740 100644 --- a/lib/facebook_ads/ad_objects/product_catalog.rb +++ b/lib/facebook_ads/ad_objects/product_catalog.rb @@ -528,5 +528,15 @@ class ProductCatalog < AdObject end end + has_edge :version_items_batch do |edge| + edge.post 'ProductCatalog' do |api| + api.has_param :allow_upsert, 'bool' + api.has_param :item_type, 'string' + api.has_param :item_version, 'string' + api.has_param :requests, 'hash' + api.has_param :version, 'int' + end + end + end end diff --git a/lib/facebook_ads/ad_objects/product_item.rb b/lib/facebook_ads/ad_objects/product_item.rb index f3bf3b5c..1f439502 100644 --- a/lib/facebook_ads/ad_objects/product_item.rb +++ b/lib/facebook_ads/ad_objects/product_item.rb @@ -328,6 +328,7 @@ class ProductItem < AdObject "EMPTY_TITLE", "EXTERNAL_MERCHANT_ID_MISMATCH", "GENERIC_INVALID_FIELD", + "GROUPS_DISABLED_BY_USER", "HIDDEN_UNTIL_PRODUCT_LAUNCH", "IMAGE_FETCH_FAILED", "IMAGE_FETCH_FAILED_BAD_GATEWAY", diff --git a/lib/facebook_ads/ad_objects/targeting_geo_location.rb b/lib/facebook_ads/ad_objects/targeting_geo_location.rb index 32773706..243cb7b1 100644 --- a/lib/facebook_ads/ad_objects/targeting_geo_location.rb +++ b/lib/facebook_ads/ad_objects/targeting_geo_location.rb @@ -23,7 +23,6 @@ class TargetingGeoLocation < AdObject field :geo_markets, { list: 'TargetingGeoLocationMarket' } field :large_geo_areas, { list: 'TargetingGeoLocationGeoEntities' } field :location_cluster_ids, { list: 'TargetingGeoLocationLocationCluster' } - field :location_expansion, 'TargetingGeoLocationLocationExpansion' field :location_types, { list: 'string' } field :medium_geo_areas, { list: 'TargetingGeoLocationGeoEntities' } field :metro_areas, { list: 'TargetingGeoLocationGeoEntities' } diff --git a/lib/facebook_ads/ad_objects/targeting_geo_location_location_expansion.rb b/lib/facebook_ads/ad_objects/targeting_geo_location_location_expansion.rb deleted file mode 100644 index b7b644d8..00000000 --- a/lib/facebook_ads/ad_objects/targeting_geo_location_location_expansion.rb +++ /dev/null @@ -1,25 +0,0 @@ -# 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 TargetingGeoLocationLocationExpansion < AdObject - - field :allowed, 'bool' - has_no_id - has_no_get - has_no_post - has_no_delete - - end -end 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 4ba4e867..0bc1eeb5 100644 --- a/lib/facebook_ads/ad_objects/whats_app_business_account.rb +++ b/lib/facebook_ads/ad_objects/whats_app_business_account.rb @@ -33,7 +33,6 @@ class WhatsAppBusinessAccount < AdObject ] SUB_CATEGORY = [ - "CUSTOM", "ORDER_DETAILS", "ORDER_STATUS", ] @@ -80,7 +79,7 @@ class WhatsAppBusinessAccount < AdObject has_edge :conversation_analytics do |edge| edge.get do |api| - api.has_param :conversation_categories, { list: { enum: %w{AUTHENTICATION MARKETING MARKETING_OPTIMIZED_DELIVERY SERVICE UNKNOWN UTILITY }} } + api.has_param :conversation_categories, { list: { enum: %w{AUTHENTICATION AUTHENTICATION_INTERNATIONAL FIXED_TEMPLATE_NOTIFY MARKETING MARKETING_OPTIMIZED_DELIVERY SERVICE UNKNOWN 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' } @@ -181,6 +180,10 @@ class WhatsAppBusinessAccount < AdObject edge.get end + has_edge :set_obo_mobility_intent do |edge| + edge.post + end + has_edge :subscribed_apps do |edge| edge.delete edge.get 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 718adcda..6d59a460 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 @@ -14,14 +14,27 @@ module FacebookAds # pull request for this class. class WhatsAppBusinessPartnerClientVerificationSubmission < AdObject + REJECTION_REASONS = [ + "ADDRESS_NOT_MATCHING", + "LEGAL_NAME_NOT_MATCHING", + "NONE", + "WEBSITE_NOT_MATCHING", + ] + + VERIFICATION_STATUS = [ + "APPROVED", + "FAILED", + "PENDING", + ] + field :client_business_id, 'string' field :id, 'string' - field :rejection_reasons, { list: 'string' } + field :rejection_reasons, { list: { enum: -> { REJECTION_REASONS }} } field :submitted_info, 'object' field :submitted_time, 'datetime' field :update_time, 'datetime' - field :verification_status, 'string' + field :verification_status, { enum: -> { VERIFICATION_STATUS }} has_no_get has_no_post has_no_delete diff --git a/lib/facebook_ads/version.rb b/lib/facebook_ads/version.rb index df9e1905..f0c88388 100644 --- a/lib/facebook_ads/version.rb +++ b/lib/facebook_ads/version.rb @@ -7,6 +7,6 @@ # FB:AUTOGEN module FacebookAds - VERSION = '19.0.2' + VERSION = '19.0.3' API_VERSION = '19.0' end