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: D49643037

fbshipit-source-id: 9025b9fa69b153fb958feff16bddc72dc5d5d3b4
  • Loading branch information
generatedunixname89002005295453 authored and facebook-github-bot committed Sep 26, 2023
1 parent 4cb4408 commit 704d18f
Show file tree
Hide file tree
Showing 41 changed files with 467 additions and 21 deletions.
1 change: 1 addition & 0 deletions lib/facebook_ads/ad_objects/ad_account_ad_volume.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 4 additions & 0 deletions lib/facebook_ads/ad_objects/ad_activity.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 1 addition & 0 deletions lib/facebook_ads/ad_objects/ad_creative.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
25 changes: 25 additions & 0 deletions lib/facebook_ads/ad_objects/ad_creative_feature_details.rb
Original file line number Diff line number Diff line change
@@ -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
51 changes: 51 additions & 0 deletions lib/facebook_ads/ad_objects/ad_creative_features_spec.rb
Original file line number Diff line number Diff line change
@@ -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
25 changes: 25 additions & 0 deletions lib/facebook_ads/ad_objects/ad_creative_sourcing_spec.rb
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions lib/facebook_ads/ad_objects/ad_preview.rb
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ class AdPreview < AdObject
]

CREATIVE_FEATURE = [
"product_metadata_automation",
"profile_card",
"standard_enhancements_catalog",
]
Expand Down
1 change: 1 addition & 0 deletions lib/facebook_ads/ad_objects/ad_promoted_object.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions lib/facebook_ads/ad_objects/ad_rule.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
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 @@ -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' }
Expand Down
6 changes: 6 additions & 0 deletions lib/facebook_ads/ad_objects/ads_insights.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
10 changes: 10 additions & 0 deletions lib/facebook_ads/ad_objects/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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'
Expand Down
2 changes: 1 addition & 1 deletion lib/facebook_ads/ad_objects/automotive_model.rb
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ class AutomotiveModel < AdObject
end

has_edge :videos_metadata do |edge|
edge.get
edge.get 'DynamicVideoMetadata'
end

end
Expand Down
1 change: 1 addition & 0 deletions lib/facebook_ads/ad_objects/campaign.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
1 change: 0 additions & 1 deletion lib/facebook_ads/ad_objects/commerce_merchant_settings.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
26 changes: 26 additions & 0 deletions lib/facebook_ads/ad_objects/content_publishing_limit_response.rb
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion lib/facebook_ads/ad_objects/destination.rb
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class Destination < AdObject
end

has_edge :videos_metadata do |edge|
edge.get
edge.get 'DynamicVideoMetadata'
end

end
Expand Down
26 changes: 26 additions & 0 deletions lib/facebook_ads/ad_objects/dynamic_video_metadata.rb
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion lib/facebook_ads/ad_objects/flight.rb
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class Flight < AdObject
end

has_edge :videos_metadata do |edge|
edge.get
edge.get 'DynamicVideoMetadata'
end

end
Expand Down
2 changes: 1 addition & 1 deletion lib/facebook_ads/ad_objects/home_listing.rb
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ class HomeListing < AdObject
end

has_edge :videos_metadata do |edge|
edge.get
edge.get 'DynamicVideoMetadata'
end

end
Expand Down
2 changes: 1 addition & 1 deletion lib/facebook_ads/ad_objects/hotel.rb
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class Hotel < AdObject
end

has_edge :videos_metadata do |edge|
edge.get
edge.get 'DynamicVideoMetadata'
end

end
Expand Down
2 changes: 1 addition & 1 deletion lib/facebook_ads/ad_objects/ig_comment.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
25 changes: 25 additions & 0 deletions lib/facebook_ads/ad_objects/ig_comment_from_user.rb
Original file line number Diff line number Diff line change
@@ -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
29 changes: 29 additions & 0 deletions lib/facebook_ads/ad_objects/ig_shopping_product_appeal.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 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
Loading

0 comments on commit 704d18f

Please sign in to comment.