Skip to content

Commit

Permalink
Auto-generated ruby SDK code update
Browse files Browse the repository at this point in the history
Summary: ignore-conflict-markers

Reviewed By: stcheng

Differential Revision: D51766820

fbshipit-source-id: 7da721bbc29b083d4ddc4e0ad4b756cc3939c58e
  • Loading branch information
generatedunixname89002005295453 authored and facebook-github-bot committed Dec 2, 2023
1 parent dddfc39 commit 3df6b28
Show file tree
Hide file tree
Showing 20 changed files with 306 additions and 18 deletions.
29 changes: 29 additions & 0 deletions lib/facebook_ads/ad_objects/ad_asset_feed_additional_data.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.

# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.

# FB:AUTOGEN

module FacebookAds
# This class is auto-generated.

# For any issues or feature requests related to this class, please let us know
# on github and we'll fix in our codegen framework. We'll not be able to accept
# pull request for this class.

class AdAssetFeedAdditionalData < AdObject

field :automated_product_tags, 'bool'
field :brand_page_id, 'string'
field :is_click_to_message, 'bool'
field :multi_share_end_card, 'bool'
field :page_welcome_message, 'string'
has_no_id
has_no_get
has_no_post
has_no_delete

end
end
10 changes: 5 additions & 5 deletions lib/facebook_ads/ad_objects/ad_asset_feed_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -94,22 +94,22 @@ class AdAssetFeedSpec < AdObject


field :ad_formats, { list: 'string' }
field :additional_data, 'object'
field :additional_data, 'AdAssetFeedAdditionalData'
field :app_product_page_id, 'string'
field :asset_customization_rules, { list: 'AdAssetFeedSpecAssetCustomizationRule' }
field :autotranslate, { list: 'string' }
field :bodies, { list: 'AdAssetFeedSpecBody' }
field :call_to_action_types, { list: { enum: -> { CALL_TO_ACTION_TYPES }} }
field :call_to_actions, { list: 'object' }
field :call_to_actions, { list: 'AdAssetFeedSpecCallToAction' }
field :captions, { list: 'AdAssetFeedSpecCaption' }
field :carousels, { list: 'object' }
field :carousels, { list: 'AdAssetFeedSpecCarousel' }
field :descriptions, { list: 'AdAssetFeedSpecDescription' }
field :events, { list: 'object' }
field :events, { list: 'AdAssetFeedSpecEvents' }
field :groups, { list: 'AdAssetFeedSpecGroupRule' }
field :images, { list: 'AdAssetFeedSpecImage' }
field :link_urls, { list: 'AdAssetFeedSpecLinkUrl' }
field :message_extensions, { list: 'AdAssetMessageExtensions' }
field :onsite_destinations, { list: 'object' }
field :onsite_destinations, { list: 'AdAssetOnsiteDestinations' }
field :optimization_type, 'string'
field :reasons_to_shop, 'bool'
field :shops_bundle, 'bool'
Expand Down
27 changes: 27 additions & 0 deletions lib/facebook_ads/ad_objects/ad_asset_feed_spec_call_to_action.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# 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 AdAssetFeedSpecCallToAction < AdObject

field :adlabels, { list: 'AdAssetFeedSpecAssetLabel' }
field :type, 'string'
field :value, 'AdCreativeLinkDataCallToActionValue'
has_no_id
has_no_get
has_no_post
has_no_delete

end
end
28 changes: 28 additions & 0 deletions lib/facebook_ads/ad_objects/ad_asset_feed_spec_carousel.rb
Original file line number Diff line number Diff line change
@@ -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 AdAssetFeedSpecCarousel < AdObject

field :adlabels, { list: 'AdAssetFeedSpecAssetLabel' }
field :child_attachments, { list: 'AdAssetFeedSpecCarouselChildAttachment' }
field :multi_share_end_card, 'bool'
field :multi_share_optimized, 'bool'
has_no_id
has_no_get
has_no_post
has_no_delete

end
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# 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 AdAssetFeedSpecCarouselChildAttachment < AdObject

field :body_label, 'AdAssetFeedSpecAssetLabel'
field :call_to_action_type_label, 'AdAssetFeedSpecAssetLabel'
field :caption_label, 'AdAssetFeedSpecAssetLabel'
field :description_label, 'AdAssetFeedSpecAssetLabel'
field :image_label, 'AdAssetFeedSpecAssetLabel'
field :link_url_label, 'AdAssetFeedSpecAssetLabel'
field :phone_data_ids_label, 'AdAssetFeedSpecAssetLabel'
field :static_card, 'bool'
field :title_label, 'AdAssetFeedSpecAssetLabel'
field :video_label, 'AdAssetFeedSpecAssetLabel'
has_no_id
has_no_get
has_no_post
has_no_delete

end
end
24 changes: 24 additions & 0 deletions lib/facebook_ads/ad_objects/ad_asset_feed_spec_events.rb
Original file line number Diff line number Diff line change
@@ -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 AdAssetFeedSpecEvents < AdObject

field :id, 'string'
has_no_get
has_no_post
has_no_delete

end
end
28 changes: 28 additions & 0 deletions lib/facebook_ads/ad_objects/ad_asset_onsite_destinations.rb
Original file line number Diff line number Diff line change
@@ -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 AdAssetOnsiteDestinations < AdObject

field :auto_optimization, 'string'
field :details_page_product_id, 'string'
field :shop_collection_product_set_id, 'string'
field :storefront_shop_id, 'string'
has_no_id
has_no_get
has_no_post
has_no_delete

end
end
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class AdCreativeBrandedContentAds < AdObject
field :creator_ad_permission_type, 'string'
field :instagram_boost_post_access_token, 'string'
field :is_mca_internal, 'bool'
field :partners, { list: 'object' }
field :partners, { list: 'AdCreativeBrandedContentAdsPartners' }
field :ui_version, 'int'
has_no_id
has_no_get
Expand Down
Original file line number Diff line number Diff line change
@@ -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 AdCreativeBrandedContentAdsPartners < AdObject

field :fb_page_id, 'string'
field :identity_type, 'string'
field :ig_asset_id, 'string'
field :ig_user_id, 'string'
has_no_id
has_no_get
has_no_post
has_no_delete

end
end
1 change: 1 addition & 0 deletions lib/facebook_ads/ad_objects/ad_video.rb
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ class AdVideo < AdObject
"INSTAGRAM_VIDEO_COPY",
"INSTANT_APPLICATION_PREVIEW",
"INSTANT_ARTICLE",
"INSTANT_GAMES_PROMO",
"INSTANT_GAME_CLIP",
"ISSUE_MODULE",
"JOBS_CAREERS",
Expand Down
10 changes: 2 additions & 8 deletions lib/facebook_ads/ad_objects/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,8 @@ class Application < AdObject
field :auto_event_mapping_android, { list: 'object' }
field :auto_event_mapping_ios, { list: 'object' }
field :auto_event_setup_enabled, 'bool'
field :auto_log_app_events_default, 'bool'
field :auto_log_app_events_enabled, 'bool'
field :business, 'Business'
field :canvas_fluid_height, 'bool'
field :canvas_fluid_width, 'int'
Expand Down Expand Up @@ -159,8 +161,6 @@ class Application < AdObject
field :restrictions, 'object'
field :restrictive_data_filter_params, 'string'
field :restrictive_data_filter_rules, 'string'
field :sdk_auto_logging_default_value, 'bool'
field :sdk_auto_logging_override_value, 'bool'
field :sdk_update_message, 'string'
field :seamless_login, 'int'
field :secure_canvas_url, 'string'
Expand Down Expand Up @@ -398,12 +398,6 @@ class Application < AdObject
end
end

has_edge :banned do |edge|
edge.get 'User' do |api|
api.has_param :uid, 'int'
end
end

has_edge :button_auto_detection_device_selection do |edge|
edge.get do |api|
api.has_param :device_id, 'string'
Expand Down
1 change: 1 addition & 0 deletions lib/facebook_ads/ad_objects/messenger_profile.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ module FacebookAds
class MessengerProfile < AdObject

field :account_linking_url, 'string'
field :commands, { list: 'object' }
field :get_started, 'object'
field :greeting, { list: 'object' }
field :ice_breakers, { list: 'object' }
Expand Down
1 change: 0 additions & 1 deletion lib/facebook_ads/ad_objects/page_post_experiment.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ class PagePostExperiment < AdObject
field :insight_snapshots, { list: 'map<datetime, list<map<int, Object>>>' }
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'
Expand Down
3 changes: 3 additions & 0 deletions lib/facebook_ads/ad_objects/product_item.rb
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,7 @@ class ProductItem < AdObject
"AVAILABLE",
"BAD_QUALITY_IMAGE",
"CANNOT_EDIT_SUBSCRIPTION_PRODUCTS",
"CHECKOUT_DISABLED_BY_USER",
"COMMERCE_ACCOUNT_NOT_LEGALLY_COMPLIANT",
"CRAWLED_AVAILABILITY_MISMATCH",
"DA_DISABLED_BY_USER",
Expand Down Expand Up @@ -348,6 +349,7 @@ class ProductItem < AdObject
"ITEM_OVERRIDE_EMPTY_PRICE",
"ITEM_OVERRIDE_NOT_VISIBLE",
"ITEM_STALE_OUT_OF_STOCK",
"MARKETPLACE_DISABLED_BY_USER",
"MINI_SHOPS_DISABLED_BY_USER",
"MISSING_CHECKOUT",
"MISSING_CHECKOUT_CURRENCY",
Expand Down Expand Up @@ -740,6 +742,7 @@ class ProductItem < AdObject
field :short_description, 'string'
field :size, 'string'
field :start_date, 'string'
field :tags, { list: 'string' }
field :url, 'string'
field :video_fetch_status, { enum: -> { VIDEO_FETCH_STATUS }}
field :visibility, { enum: -> { VISIBILITY }}
Expand Down
4 changes: 4 additions & 0 deletions lib/facebook_ads/ad_objects/user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,10 @@ class User < AdObject
end
end

has_edge :fbdl_runs do |edge|
edge.get 'WhitehatFbdlRun'
end

has_edge :feed do |edge|
edge.get 'Post' do |api|
api.has_param :include_hidden, 'bool'
Expand Down
8 changes: 6 additions & 2 deletions lib/facebook_ads/ad_objects/whats_app_business_account.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class WhatsAppBusinessAccount < AdObject
field :country, 'string'
field :creation_time, 'int'
field :currency, 'string'
field :health_status, 'object'
field :health_status, 'WhatsAppBusinessHealthStatusForMessageSend'
field :id, 'string'
field :is_enabled_for_insights, 'bool'
field :message_template_namespace, 'string'
Expand Down Expand Up @@ -92,13 +92,17 @@ class WhatsAppBusinessAccount < AdObject
end
end

has_edge :dcc_config do |edge|
edge.get
end

has_edge :flows do |edge|
edge.get
edge.post do |api|
api.has_param :categories, { list: { enum: %w{APPOINTMENT_BOOKING CONTACT_US CUSTOMER_SUPPORT LEAD_GENERATION OTHER SIGN_IN SIGN_UP SURVEY }} }
api.has_param :clone_flow_id, 'string'
api.has_param :clone_template, 'string'
api.has_param :data_channel_uri, 'string'
api.has_param :endpoint_uri, 'string'
api.has_param :name, 'string'
end
end
Expand Down
28 changes: 28 additions & 0 deletions lib/facebook_ads/ad_objects/whats_app_business_health_status.rb
Original file line number Diff line number Diff line change
@@ -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 WhatsAppBusinessHealthStatus < AdObject

field :additional_info, { list: 'string' }
field :can_send_message, 'string'
field :entity_type, 'string'
field :errors, { list: 'object' }
field :id, 'string'
has_no_get
has_no_post
has_no_delete

end
end
Loading

0 comments on commit 3df6b28

Please sign in to comment.