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 54b08216..cace43db 100644 --- a/lib/facebook_ads/ad_objects/ad_account_ad_volume.rb +++ b/lib/facebook_ads/ad_objects/ad_account_ad_volume.rb @@ -31,6 +31,7 @@ class AdAccountAdVolume < AdObject "AUCTION_OVERLAP", "AUCTION_OVERLAP_CONSOLIDATION", "AUDIENCE_EXPANSION", + "AUDIENCE_EXPANSION_RETARGETING", "AUTOFLOW_OPT_IN", "AUTOFLOW_OPT_IN_FALLBACK_DUPLICATION_FLOW", "AUTOMATIC_PLACEMENTS", diff --git a/lib/facebook_ads/ad_objects/ad_activity.rb b/lib/facebook_ads/ad_objects/ad_activity.rb index a7c8ae78..4d6d67aa 100644 --- a/lib/facebook_ads/ad_objects/ad_activity.rb +++ b/lib/facebook_ads/ad_objects/ad_activity.rb @@ -84,10 +84,14 @@ class AdActivity < AdObject "update_campaign_ad_scheduling", "update_campaign_budget", "update_campaign_budget_optimization_toggling_status", + "update_campaign_budget_scheduling_state", "update_campaign_delivery_type", "update_campaign_group_ad_scheduling", + "update_campaign_group_budget_scheduling_state", "update_campaign_group_delivery_type", + "update_campaign_group_high_demand_periods", "update_campaign_group_spend_cap", + "update_campaign_high_demand_periods", "update_campaign_name", "update_campaign_run_status", "update_campaign_schedule", diff --git a/lib/facebook_ads/ad_objects/ad_creative.rb b/lib/facebook_ads/ad_objects/ad_creative.rb index bd81bbbb..315656a0 100644 --- a/lib/facebook_ads/ad_objects/ad_creative.rb +++ b/lib/facebook_ads/ad_objects/ad_creative.rb @@ -166,6 +166,7 @@ class AdCreative < AdObject field :categorization_criteria, 'string' field :category_media_source, 'string' field :collaborative_ads_lsb_image_bank_id, 'string' + field :creative_sourcing_spec, 'AdCreativeSourcingSpec' field :degrees_of_freedom_spec, 'AdCreativeDegreesOfFreedomSpec' field :destination_set_id, 'string' field :dynamic_ad_voice, 'string' diff --git a/lib/facebook_ads/ad_objects/ad_creative_degrees_of_freedom_spec.rb b/lib/facebook_ads/ad_objects/ad_creative_degrees_of_freedom_spec.rb index 55db24b7..cc96e0cc 100644 --- a/lib/facebook_ads/ad_objects/ad_creative_degrees_of_freedom_spec.rb +++ b/lib/facebook_ads/ad_objects/ad_creative_degrees_of_freedom_spec.rb @@ -16,7 +16,7 @@ module FacebookAds class AdCreativeDegreesOfFreedomSpec < AdObject field :ad_handle_type, 'string' - field :creative_features_spec, 'object' + field :creative_features_spec, 'AdCreativeFeaturesSpec' field :degrees_of_freedom_type, 'string' field :image_transformation_types, { list: 'string' } field :multi_media_transformation_type, 'string' diff --git a/lib/facebook_ads/ad_objects/ad_creative_feature_details.rb b/lib/facebook_ads/ad_objects/ad_creative_feature_details.rb new file mode 100644 index 00000000..fcfc4b6a --- /dev/null +++ b/lib/facebook_ads/ad_objects/ad_creative_feature_details.rb @@ -0,0 +1,25 @@ +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. + +# This source code is licensed under the license found in the +# LICENSE file in the root directory of this source tree. + +# FB:AUTOGEN + +module FacebookAds + # This class is auto-generated. + + # For any issues or feature requests related to this class, please let us know + # on github and we'll fix in our codegen framework. We'll not be able to accept + # pull request for this class. + + class AdCreativeFeatureDetails < AdObject + + field :enroll_status, 'string' + has_no_id + has_no_get + has_no_post + has_no_delete + + end +end diff --git a/lib/facebook_ads/ad_objects/ad_creative_features_spec.rb b/lib/facebook_ads/ad_objects/ad_creative_features_spec.rb new file mode 100644 index 00000000..09825075 --- /dev/null +++ b/lib/facebook_ads/ad_objects/ad_creative_features_spec.rb @@ -0,0 +1,51 @@ +# 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 AdCreativeFeaturesSpec < AdObject + + field :advantage_plus_creative, 'AdCreativeFeatureDetails' + field :audio, 'AdCreativeFeatureDetails' + field :carousel_to_video, 'AdCreativeFeatureDetails' + field :cv_transformation, 'AdCreativeFeatureDetails' + field :description_automation, 'AdCreativeFeatureDetails' + field :dha_optimization, 'AdCreativeFeatureDetails' + field :ig_glados_feed, 'AdCreativeFeatureDetails' + field :image_auto_crop, 'AdCreativeFeatureDetails' + field :image_background_gen, 'AdCreativeFeatureDetails' + field :image_enhancement, 'AdCreativeFeatureDetails' + field :image_templates, 'AdCreativeFeatureDetails' + field :image_touchups, 'AdCreativeFeatureDetails' + field :image_uncrop, 'AdCreativeFeatureDetails' + field :inline_comment, 'AdCreativeFeatureDetails' + field :media_liquidity_animated_image, 'AdCreativeFeatureDetails' + field :media_order, 'AdCreativeFeatureDetails' + field :media_type_automation, 'AdCreativeFeatureDetails' + field :product_extensions, 'AdCreativeFeatureDetails' + field :product_metadata_automation, 'AdCreativeFeatureDetails' + field :product_tags, 'AdCreativeFeatureDetails' + field :profile_card, 'AdCreativeFeatureDetails' + field :standard_enhancements, 'AdCreativeFeatureDetails' + field :standard_enhancements_catalog, 'AdCreativeFeatureDetails' + field :text_generation, 'AdCreativeFeatureDetails' + field :text_optimizations, 'AdCreativeFeatureDetails' + field :video_auto_crop, 'AdCreativeFeatureDetails' + field :video_highlight, 'AdCreativeFeatureDetails' + has_no_id + has_no_get + has_no_post + has_no_delete + + end +end diff --git a/lib/facebook_ads/ad_objects/ad_creative_sourcing_spec.rb b/lib/facebook_ads/ad_objects/ad_creative_sourcing_spec.rb new file mode 100644 index 00000000..b266cd1c --- /dev/null +++ b/lib/facebook_ads/ad_objects/ad_creative_sourcing_spec.rb @@ -0,0 +1,25 @@ +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. + +# This source code is licensed under the license found in the +# LICENSE file in the root directory of this source tree. + +# FB:AUTOGEN + +module FacebookAds + # This class is auto-generated. + + # For any issues or feature requests related to this class, please let us know + # on github and we'll fix in our codegen framework. We'll not be able to accept + # pull request for this class. + + class AdCreativeSourcingSpec < AdObject + + field :associated_product_set_id, 'string' + has_no_id + has_no_get + has_no_post + has_no_delete + + end +end diff --git a/lib/facebook_ads/ad_objects/ad_preview.rb b/lib/facebook_ads/ad_objects/ad_preview.rb index cea08203..b571b8a9 100644 --- a/lib/facebook_ads/ad_objects/ad_preview.rb +++ b/lib/facebook_ads/ad_objects/ad_preview.rb @@ -73,6 +73,7 @@ class AdPreview < AdObject ] CREATIVE_FEATURE = [ + "product_metadata_automation", "profile_card", "standard_enhancements_catalog", ] diff --git a/lib/facebook_ads/ad_objects/ad_promoted_object.rb b/lib/facebook_ads/ad_objects/ad_promoted_object.rb index 93a1bf8a..13723b1e 100644 --- a/lib/facebook_ads/ad_objects/ad_promoted_object.rb +++ b/lib/facebook_ads/ad_objects/ad_promoted_object.rb @@ -69,6 +69,7 @@ class AdPromotedObject < AdObject field :product_item_id, 'string' field :product_set_id, 'string' field :retention_days, 'string' + field :whats_app_business_phone_number_id, 'object' has_no_id has_no_get has_no_post diff --git a/lib/facebook_ads/ad_objects/ad_rule.rb b/lib/facebook_ads/ad_objects/ad_rule.rb index 137c31c4..3ebb3686 100644 --- a/lib/facebook_ads/ad_objects/ad_rule.rb +++ b/lib/facebook_ads/ad_objects/ad_rule.rb @@ -36,6 +36,8 @@ class AdRule < AdObject "AM_RULE_LANDING_PAGE_BANNER", "AM_SYD_RESOLUTION_FLOW", "AM_SYD_RESOLUTION_FLOW_MODAL", + "AM_TABLE_DELIVERY_COLUMN_POPOVER", + "AM_TABLE_TOGGLE_POPOVER", "AM_TOOLBAR_CREATE_RULE_DROPDOWN", "PE_CAMPAIGN_STRUCTURE_MENU", "PE_EDITOR_CARD", diff --git a/lib/facebook_ads/ad_objects/ad_video.rb b/lib/facebook_ads/ad_objects/ad_video.rb index d32e44c2..bc77930e 100644 --- a/lib/facebook_ads/ad_objects/ad_video.rb +++ b/lib/facebook_ads/ad_objects/ad_video.rb @@ -296,6 +296,7 @@ class AdVideo < AdObject field :content_category, 'string' field :content_tags, { list: 'string' } field :copyright, 'VideoCopyright' + field :copyright_check_information, 'object' field :copyright_monitoring_status, 'string' field :created_time, 'datetime' field :custom_labels, { list: 'string' } diff --git a/lib/facebook_ads/ad_objects/ads_insights.rb b/lib/facebook_ads/ad_objects/ads_insights.rb index 446456d3..b8ec6ab8 100644 --- a/lib/facebook_ads/ad_objects/ads_insights.rb +++ b/lib/facebook_ads/ad_objects/ads_insights.rb @@ -70,6 +70,12 @@ class AdsInsights < AdObject "is_conversion_id_modeled", "link_url_asset", "marketing_messages_btn_name", + "media_asset_url", + "media_creator", + "media_destination_url", + "media_format", + "media_origin_url", + "media_text_content", "mmm", "place_page_id", "platform_position", diff --git a/lib/facebook_ads/ad_objects/application.rb b/lib/facebook_ads/ad_objects/application.rb index 94ff7cc2..7cda6f9d 100644 --- a/lib/facebook_ads/ad_objects/application.rb +++ b/lib/facebook_ads/ad_objects/application.rb @@ -435,6 +435,12 @@ class Application < AdObject end end + has_edge :iap_purchases do |edge| + edge.get do |api| + api.has_param :order_id, 'string' + end + end + has_edge :insights_push_schedule do |edge| edge.get end @@ -489,6 +495,10 @@ class Application < AdObject edge.get 'NullNode' end + has_edge :objects do |edge| + edge.get 'NullNode' + end + has_edge :occludespopups do |edge| edge.post do |api| api.has_param :flash, 'bool' diff --git a/lib/facebook_ads/ad_objects/automotive_model.rb b/lib/facebook_ads/ad_objects/automotive_model.rb index 8f180e9f..cfec890a 100644 --- a/lib/facebook_ads/ad_objects/automotive_model.rb +++ b/lib/facebook_ads/ad_objects/automotive_model.rb @@ -71,7 +71,7 @@ class AutomotiveModel < AdObject end has_edge :videos_metadata do |edge| - edge.get + edge.get 'DynamicVideoMetadata' end end diff --git a/lib/facebook_ads/ad_objects/campaign.rb b/lib/facebook_ads/ad_objects/campaign.rb index bf9d3107..2fd08ad0 100644 --- a/lib/facebook_ads/ad_objects/campaign.rb +++ b/lib/facebook_ads/ad_objects/campaign.rb @@ -392,6 +392,7 @@ class Campaign < AdObject field :budget_rebalance_flag, 'bool' field :budget_remaining, 'string' field :buying_type, 'string' + field :campaign_group_active_time, 'string' field :can_create_brand_lift_study, 'bool' field :can_use_spend_cap, 'bool' field :configured_status, { enum: -> { CONFIGURED_STATUS }} diff --git a/lib/facebook_ads/ad_objects/commerce_merchant_settings.rb b/lib/facebook_ads/ad_objects/commerce_merchant_settings.rb index b224990f..21bcf9cf 100644 --- a/lib/facebook_ads/ad_objects/commerce_merchant_settings.rb +++ b/lib/facebook_ads/ad_objects/commerce_merchant_settings.rb @@ -17,7 +17,6 @@ class CommerceMerchantSettings < AdObject field :braintree_merchant_id, 'string' field :checkout_message, 'string' - field :commerce_store, 'object' field :contact_email, 'string' field :cta, 'string' field :disable_checkout_urls, 'bool' diff --git a/lib/facebook_ads/ad_objects/content_publishing_limit_response.rb b/lib/facebook_ads/ad_objects/content_publishing_limit_response.rb new file mode 100644 index 00000000..27613b9b --- /dev/null +++ b/lib/facebook_ads/ad_objects/content_publishing_limit_response.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 ContentPublishingLimitResponse < AdObject + + field :config, 'object' + field :quota_usage, 'int' + has_no_id + has_no_get + has_no_post + has_no_delete + + end +end diff --git a/lib/facebook_ads/ad_objects/destination.rb b/lib/facebook_ads/ad_objects/destination.rb index d19ee87e..978901ca 100644 --- a/lib/facebook_ads/ad_objects/destination.rb +++ b/lib/facebook_ads/ad_objects/destination.rb @@ -58,7 +58,7 @@ class Destination < AdObject end has_edge :videos_metadata do |edge| - edge.get + edge.get 'DynamicVideoMetadata' end end diff --git a/lib/facebook_ads/ad_objects/dynamic_video_metadata.rb b/lib/facebook_ads/ad_objects/dynamic_video_metadata.rb new file mode 100644 index 00000000..2f9b0a05 --- /dev/null +++ b/lib/facebook_ads/ad_objects/dynamic_video_metadata.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 DynamicVideoMetadata < AdObject + + field :id, 'string' + field :tags, { list: 'string' } + field :url, 'string' + field :video, 'AdVideo' + has_no_post + has_no_delete + + end +end diff --git a/lib/facebook_ads/ad_objects/flight.rb b/lib/facebook_ads/ad_objects/flight.rb index 66770d95..2a92e8ee 100644 --- a/lib/facebook_ads/ad_objects/flight.rb +++ b/lib/facebook_ads/ad_objects/flight.rb @@ -59,7 +59,7 @@ class Flight < AdObject end has_edge :videos_metadata do |edge| - edge.get + edge.get 'DynamicVideoMetadata' end end diff --git a/lib/facebook_ads/ad_objects/home_listing.rb b/lib/facebook_ads/ad_objects/home_listing.rb index ef55403d..e69eb55d 100644 --- a/lib/facebook_ads/ad_objects/home_listing.rb +++ b/lib/facebook_ads/ad_objects/home_listing.rb @@ -85,7 +85,7 @@ class HomeListing < AdObject end has_edge :videos_metadata do |edge| - edge.get + edge.get 'DynamicVideoMetadata' end end diff --git a/lib/facebook_ads/ad_objects/hotel.rb b/lib/facebook_ads/ad_objects/hotel.rb index 6f2b6f84..b12dc882 100644 --- a/lib/facebook_ads/ad_objects/hotel.rb +++ b/lib/facebook_ads/ad_objects/hotel.rb @@ -67,7 +67,7 @@ class Hotel < AdObject end has_edge :videos_metadata do |edge| - edge.get + edge.get 'DynamicVideoMetadata' end end diff --git a/lib/facebook_ads/ad_objects/ig_comment.rb b/lib/facebook_ads/ad_objects/ig_comment.rb index 3ba387d1..182c8b48 100644 --- a/lib/facebook_ads/ad_objects/ig_comment.rb +++ b/lib/facebook_ads/ad_objects/ig_comment.rb @@ -15,7 +15,7 @@ module FacebookAds class IgComment < AdObject - field :from, 'object' + field :from, 'IgCommentFromUser' field :hidden, 'bool' field :id, 'string' field :like_count, 'int' diff --git a/lib/facebook_ads/ad_objects/ig_comment_from_user.rb b/lib/facebook_ads/ad_objects/ig_comment_from_user.rb new file mode 100644 index 00000000..f6f2c10a --- /dev/null +++ b/lib/facebook_ads/ad_objects/ig_comment_from_user.rb @@ -0,0 +1,25 @@ +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. + +# This source code is licensed under the license found in the +# LICENSE file in the root directory of this source tree. + +# FB:AUTOGEN + +module FacebookAds + # This class is auto-generated. + + # For any issues or feature requests related to this class, please let us know + # on github and we'll fix in our codegen framework. We'll not be able to accept + # pull request for this class. + + class IgCommentFromUser < AdObject + + field :id, 'string' + field :username, 'string' + has_no_get + has_no_post + has_no_delete + + end +end diff --git a/lib/facebook_ads/ad_objects/ig_shopping_product_appeal.rb b/lib/facebook_ads/ad_objects/ig_shopping_product_appeal.rb new file mode 100644 index 00000000..5b76887f --- /dev/null +++ b/lib/facebook_ads/ad_objects/ig_shopping_product_appeal.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 IgShoppingProductAppeal < AdObject + + field :eligible_for_appeal, 'bool' + field :product_appeal_status, 'string' + field :product_id, 'int' + field :rejection_reasons, { list: 'string' } + field :review_status, 'string' + has_no_id + has_no_get + has_no_post + has_no_delete + + end +end diff --git a/lib/facebook_ads/ad_objects/ig_user.rb b/lib/facebook_ads/ad_objects/ig_user.rb index a87962d3..aa9def30 100644 --- a/lib/facebook_ads/ad_objects/ig_user.rb +++ b/lib/facebook_ads/ad_objects/ig_user.rb @@ -35,18 +35,18 @@ class IgUser < AdObject has_no_delete has_edge :available_catalogs do |edge| - edge.get + edge.get 'UserAvailableCatalogs' end has_edge :catalog_product_search do |edge| - edge.get do |api| + edge.get 'ShadowIgUserCatalogProductSearch' do |api| api.has_param :catalog_id, 'string' api.has_param :q, 'string' end end has_edge :content_publishing_limit do |edge| - edge.get do |api| + edge.get 'ContentPublishingLimitResponse' do |api| api.has_param :since, 'datetime' end end @@ -116,17 +116,17 @@ class IgUser < AdObject end has_edge :product_appeal do |edge| - edge.get do |api| + edge.get 'IgShoppingProductAppeal' do |api| api.has_param :product_id, 'string' end - edge.post do |api| + edge.post 'IgShoppingProductAppeal' do |api| api.has_param :appeal_reason, 'string' api.has_param :product_id, 'string' end end has_edge :recently_searched_hashtags do |edge| - edge.get + edge.get 'ShadowIgHashtag' end has_edge :stories do |edge| diff --git a/lib/facebook_ads/ad_objects/instagram_shopping_merchant_review_message.rb b/lib/facebook_ads/ad_objects/instagram_shopping_merchant_review_message.rb new file mode 100644 index 00000000..8d180ebb --- /dev/null +++ b/lib/facebook_ads/ad_objects/instagram_shopping_merchant_review_message.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 InstagramShoppingMerchantReviewMessage < AdObject + + field :help_url, 'string' + field :message, 'string' + has_no_id + has_no_get + has_no_post + has_no_delete + + end +end diff --git a/lib/facebook_ads/ad_objects/media_title.rb b/lib/facebook_ads/ad_objects/media_title.rb index 872377f7..b47f3a5d 100644 --- a/lib/facebook_ads/ad_objects/media_title.rb +++ b/lib/facebook_ads/ad_objects/media_title.rb @@ -66,7 +66,7 @@ class MediaTitle < AdObject end has_edge :videos_metadata do |edge| - edge.get + edge.get 'DynamicVideoMetadata' end end diff --git a/lib/facebook_ads/ad_objects/page.rb b/lib/facebook_ads/ad_objects/page.rb index 38fb8d14..d88bb0a8 100644 --- a/lib/facebook_ads/ad_objects/page.rb +++ b/lib/facebook_ads/ad_objects/page.rb @@ -1361,7 +1361,11 @@ class Page < AdObject end has_edge :stories do |edge| - edge.get 'Stories' + edge.get 'Stories' do |api| + api.has_param :since, 'datetime' + api.has_param :status, { list: { enum: -> { Stories::STATUS }} } + api.has_param :until, 'datetime' + end end has_edge :subscribed_apps do |edge| diff --git a/lib/facebook_ads/ad_objects/page_post_experiment.rb b/lib/facebook_ads/ad_objects/page_post_experiment.rb index 0bd4e2f9..c865e1a2 100644 --- a/lib/facebook_ads/ad_objects/page_post_experiment.rb +++ b/lib/facebook_ads/ad_objects/page_post_experiment.rb @@ -27,6 +27,7 @@ class PagePostExperiment < AdObject field :insight_snapshots, { list: 'map>>' } field :name, 'string' field :optimization_goal, 'string' + field :post_variant_fields, { list: 'string' } field :publish_status, 'string' field :publish_time, 'datetime' field :scheduled_experiment_timestamp, 'datetime' diff --git a/lib/facebook_ads/ad_objects/product_item.rb b/lib/facebook_ads/ad_objects/product_item.rb index b7ed7727..3f634c06 100644 --- a/lib/facebook_ads/ad_objects/product_item.rb +++ b/lib/facebook_ads/ad_objects/product_item.rb @@ -75,6 +75,15 @@ class ProductItem < AdObject "oz", ] + VIDEO_FETCH_STATUS = [ + "DIRECT_UPLOAD", + "FETCHED", + "FETCH_FAILED", + "NO_STATUS", + "OUTDATED", + "PARTIAL_FETCH", + ] + VISIBILITY = [ "published", "staging", @@ -727,6 +736,7 @@ class ProductItem < AdObject field :size, 'string' field :start_date, 'string' field :url, 'string' + field :video_fetch_status, { enum: -> { VIDEO_FETCH_STATUS }} field :visibility, { enum: -> { VISIBILITY }} field :wa_compliance_category, 'string' field :additional_uploaded_image_ids, { list: 'string' } @@ -763,7 +773,7 @@ class ProductItem < AdObject end has_edge :videos_metadata do |edge| - edge.get + edge.get 'DynamicVideoMetadata' end end diff --git a/lib/facebook_ads/ad_objects/shadow_ig_hashtag.rb b/lib/facebook_ads/ad_objects/shadow_ig_hashtag.rb new file mode 100644 index 00000000..1a950ecc --- /dev/null +++ b/lib/facebook_ads/ad_objects/shadow_ig_hashtag.rb @@ -0,0 +1,36 @@ +# 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 ShadowIgHashtag < AdObject + + field :id, 'string' + field :name, 'string' + has_no_post + has_no_delete + + has_edge :recent_media do |edge| + edge.get 'IgMedia' do |api| + api.has_param :user_id, 'string' + end + end + + has_edge :top_media do |edge| + edge.get 'IgMedia' do |api| + api.has_param :user_id, 'string' + end + end + + end +end diff --git a/lib/facebook_ads/ad_objects/shadow_ig_media_builder.rb b/lib/facebook_ads/ad_objects/shadow_ig_media_builder.rb new file mode 100644 index 00000000..80672f02 --- /dev/null +++ b/lib/facebook_ads/ad_objects/shadow_ig_media_builder.rb @@ -0,0 +1,25 @@ +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. + +# This source code is licensed under the license found in the +# LICENSE file in the root directory of this source tree. + +# FB:AUTOGEN + +module FacebookAds + # This class is auto-generated. + + # For any issues or feature requests related to this class, please let us know + # on github and we'll fix in our codegen framework. We'll not be able to accept + # pull request for this class. + + class ShadowIgMediaBuilder < AdObject + + field :id, 'string' + field :status, 'string' + field :status_code, 'string' + has_no_post + has_no_delete + + end +end diff --git a/lib/facebook_ads/ad_objects/shadow_ig_user_catalog_product_search.rb b/lib/facebook_ads/ad_objects/shadow_ig_user_catalog_product_search.rb new file mode 100644 index 00000000..6782d97a --- /dev/null +++ b/lib/facebook_ads/ad_objects/shadow_ig_user_catalog_product_search.rb @@ -0,0 +1,32 @@ +# 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 ShadowIgUserCatalogProductSearch < AdObject + + field :image_url, 'string' + field :is_checkout_flow, 'bool' + field :merchant_id, 'int' + field :product_id, 'int' + field :product_name, 'string' + field :product_variants, { list: 'ShadowIgUserCatalogProductVariant' } + field :retailer_id, 'string' + field :review_status, 'string' + has_no_id + has_no_get + has_no_post + has_no_delete + + end +end diff --git a/lib/facebook_ads/ad_objects/shadow_ig_user_catalog_product_variant.rb b/lib/facebook_ads/ad_objects/shadow_ig_user_catalog_product_variant.rb new file mode 100644 index 00000000..224d99d1 --- /dev/null +++ b/lib/facebook_ads/ad_objects/shadow_ig_user_catalog_product_variant.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 ShadowIgUserCatalogProductVariant < AdObject + + field :product_id, 'int' + field :variant_name, 'string' + has_no_id + has_no_get + has_no_post + has_no_delete + + end +end diff --git a/lib/facebook_ads/ad_objects/stories.rb b/lib/facebook_ads/ad_objects/stories.rb index 9b8424f4..0f8044a8 100644 --- a/lib/facebook_ads/ad_objects/stories.rb +++ b/lib/facebook_ads/ad_objects/stories.rb @@ -14,8 +14,14 @@ module FacebookAds # pull request for this class. class Stories < AdObject + STATUS = [ + "ARCHIVED", + "PUBLISHED", + ] + field :creation_time, 'string' + field :media_id, 'string' field :media_type, 'string' field :post_id, 'string' field :status, 'string' diff --git a/lib/facebook_ads/ad_objects/user_available_catalogs.rb b/lib/facebook_ads/ad_objects/user_available_catalogs.rb new file mode 100644 index 00000000..e5b0e0d1 --- /dev/null +++ b/lib/facebook_ads/ad_objects/user_available_catalogs.rb @@ -0,0 +1,28 @@ +# 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 UserAvailableCatalogs < AdObject + + field :catalog_id, 'string' + field :catalog_name, 'string' + field :product_count, 'int' + field :shop_name, 'string' + has_no_id + has_no_get + has_no_post + has_no_delete + + end +end diff --git a/lib/facebook_ads/ad_objects/vehicle.rb b/lib/facebook_ads/ad_objects/vehicle.rb index f252a3d5..afcd055e 100644 --- a/lib/facebook_ads/ad_objects/vehicle.rb +++ b/lib/facebook_ads/ad_objects/vehicle.rb @@ -176,7 +176,7 @@ class Vehicle < AdObject end has_edge :videos_metadata do |edge| - edge.get + edge.get 'DynamicVideoMetadata' end end diff --git a/lib/facebook_ads/ad_objects/vehicle_offer.rb b/lib/facebook_ads/ad_objects/vehicle_offer.rb index 63b19328..c212dde7 100644 --- a/lib/facebook_ads/ad_objects/vehicle_offer.rb +++ b/lib/facebook_ads/ad_objects/vehicle_offer.rb @@ -86,7 +86,7 @@ class VehicleOffer < AdObject end has_edge :videos_metadata do |edge| - edge.get + edge.get 'DynamicVideoMetadata' 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 caaf5cc9..029777e9 100644 --- a/lib/facebook_ads/ad_objects/whats_app_business_account.rb +++ b/lib/facebook_ads/ad_objects/whats_app_business_account.rb @@ -28,6 +28,12 @@ class WhatsAppBusinessAccount < AdObject "UTILITY", ] + SUB_CATEGORY = [ + "CUSTOM", + "ORDER_DETAILS", + "ORDER_STATUS", + ] + field :account_review_status, 'string' field :analytics, 'object' @@ -83,10 +89,22 @@ class WhatsAppBusinessAccount < AdObject has_edge :extensions do |edge| edge.get + edge.post do |api| + 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| + api.has_param :clone_flow_id, 'string' + api.has_param :clone_template, 'string' + api.has_param :data_channel_uri, 'string' + api.has_param :name, 'string' + end end has_edge :message_campaigns do |edge| @@ -125,7 +143,7 @@ class WhatsAppBusinessAccount < AdObject api.has_param :language, 'string' api.has_param :message_send_ttl_seconds, 'int' api.has_param :name, 'string' - api.has_param :sub_category, 'object' + api.has_param :sub_category, { enum: -> { WhatsAppBusinessAccount::SUB_CATEGORY }} end end diff --git a/lib/facebook_ads/version.rb b/lib/facebook_ads/version.rb index 1f8104eb..ac4ce530 100644 --- a/lib/facebook_ads/version.rb +++ b/lib/facebook_ads/version.rb @@ -7,6 +7,6 @@ # FB:AUTOGEN module FacebookAds - VERSION = '18.0.0' + VERSION = '18.0.1' API_VERSION = '18.0' end