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

fbshipit-source-id: 1d53891588a4952bd4b6150837a79ef16492de33
  • Loading branch information
generatedunixname89002005295453 authored and facebook-github-bot committed Oct 14, 2023
1 parent 704d18f commit 3963d74
Show file tree
Hide file tree
Showing 22 changed files with 97 additions and 31 deletions.
12 changes: 0 additions & 12 deletions lib/facebook_ads/ad_objects/ad_account.rb
Original file line number Diff line number Diff line change
Expand Up @@ -420,18 +420,6 @@ class AdAccount < AdObject
end
end

has_edge :ads_conversion_goal do |edge|
edge.post do |api|
api.has_param :conversion_event_value_source, { enum: %w{DATA_SOURCE VALUE_RULE }}
api.has_param :description, 'string'
api.has_param :goal_creation_method, { enum: %w{ADVERTISER_CREATED_UI AUTO_MIGRATION L2_ENHANCE_API_MIGRATION }}
api.has_param :goal_name, 'string'
api.has_param :performance_goal, { enum: %w{AD_OPTIMIZATION_GOAL_AD_RECALL_LIFT AD_OPTIMIZATION_GOAL_APP_DOWNLOADS AD_OPTIMIZATION_GOAL_APP_INSTALLS AD_OPTIMIZATION_GOAL_APP_INSTALLS_AND_OFFSITE_CONVERSIONS AD_OPTIMIZATION_GOAL_BRAND_AWARENESS AD_OPTIMIZATION_GOAL_CLICKS AD_OPTIMIZATION_GOAL_COMPLETED_VIDEO_VIEWS AD_OPTIMIZATION_GOAL_CONVERSATIONS AD_OPTIMIZATION_GOAL_DERIVED_EVENTS AD_OPTIMIZATION_GOAL_DWELLS AD_OPTIMIZATION_GOAL_ENGAGED_REACH AD_OPTIMIZATION_GOAL_ENGAGED_USERS AD_OPTIMIZATION_GOAL_EVENT_RESPONSES AD_OPTIMIZATION_GOAL_EXTERNAL AD_OPTIMIZATION_GOAL_IMPRESSIONS AD_OPTIMIZATION_GOAL_INCREMENTAL_OFFSITE_CONVERSIONS AD_OPTIMIZATION_GOAL_IN_APP_VALUE AD_OPTIMIZATION_GOAL_JOB_APPLICATIONS AD_OPTIMIZATION_GOAL_LANDING_PAGE_VIEWS AD_OPTIMIZATION_GOAL_LEAD_GENERATION AD_OPTIMIZATION_GOAL_MEDIA_DOWNLOADS AD_OPTIMIZATION_GOAL_MESSAGING_APPOINTMENT_CONVERSION AD_OPTIMIZATION_GOAL_MESSAGING_DEEP_CONVERSATION_AND_FOLLOW AD_OPTIMIZATION_GOAL_MESSAGING_DEEP_CONVERSATION_AND_REPLY AD_OPTIMIZATION_GOAL_MESSAGING_PURCHASE_CONVERSION AD_OPTIMIZATION_GOAL_MID_FUNNEL_EVENT AD_OPTIMIZATION_GOAL_MRC_VIDEO_VIEWS AD_OPTIMIZATION_GOAL_MULTI_CONVERSIONS AD_OPTIMIZATION_GOAL_NONE AD_OPTIMIZATION_GOAL_OFFER_CLAIMS AD_OPTIMIZATION_GOAL_OFFLINE_CONVERSIONS AD_OPTIMIZATION_GOAL_OFFSITE_CLICKS AD_OPTIMIZATION_GOAL_OFFSITE_CONVERSIONS AD_OPTIMIZATION_GOAL_ONSITE_CONVERSIONS AD_OPTIMIZATION_GOAL_PAGE_ENGAGEMENT AD_OPTIMIZATION_GOAL_PAGE_FOLLOWS AD_OPTIMIZATION_GOAL_PAGE_LIKES AD_OPTIMIZATION_GOAL_POST_ENGAGEMENT AD_OPTIMIZATION_GOAL_QUALITY_CALL AD_OPTIMIZATION_GOAL_QUALITY_LEAD AD_OPTIMIZATION_GOAL_REACH AD_OPTIMIZATION_GOAL_REMINDERS_SET AD_OPTIMIZATION_GOAL_REPLIES AD_OPTIMIZATION_GOAL_RESEARCH_POLL_RESPONSES AD_OPTIMIZATION_GOAL_RETENTION AD_OPTIMIZATION_GOAL_RETURN_ON_AD_SPEND AD_OPTIMIZATION_GOAL_SOCIAL_IMPRESSIONS AD_OPTIMIZATION_GOAL_STORE_VISITS AD_OPTIMIZATION_GOAL_SUBSCRIBERS AD_OPTIMIZATION_GOAL_TICKET_PURCHASE AD_OPTIMIZATION_GOAL_VALUE AD_OPTIMIZATION_GOAL_VIDEO_LONG_VIEWS AD_OPTIMIZATION_GOAL_VIDEO_VIEWS AD_OPTIMIZATION_GOAL_VIDEO_VIEWS_15S AD_OPTIMIZATION_GOAL_VISIT_INSTAGRAM_PROFILE AD_OPTIMIZATION_GOAL_VISIT_INSTAGRAM_PROFILE_AND_PROFILE_ACTIONS }}
api.has_param :single_channel_conversion_events, { list: 'hash' }
api.has_param :value_adjustment_rule, 'hash'
end
end

has_edge :ads_reporting_mmm_reports do |edge|
edge.get do |api|
api.has_param :filtering, { list: 'hash' }
Expand Down
8 changes: 7 additions & 1 deletion lib/facebook_ads/ad_objects/ad_account_ad_volume.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ class AdAccountAdVolume < AdObject
"ACO_TOGGLE",
"ADS_REPORTING",
"ADVANCED_CAMPAIGN_BUDGET",
"ADVANTAGE_CUSTOM_AUDIENCE_UPSELL",
"ADVANTAGE_PLUS_AUDIENCE_FRICTION",
"ADVANTAGE_PLUS_AUDIENCE_TOGGLE",
"ADVANTAGE_PLUS_CREATIVE",
"ADVANTAGE_PLUS_CREATIVE_CATALOG",
"ADVANTAGE_SHOPPING_CAMPAIGN",
Expand Down Expand Up @@ -54,21 +57,24 @@ class AdAccountAdVolume < AdObject
"CREATIVE_LIMITED_HOURLY",
"CREATOR_ADS_PA_CONVERSION",
"CTA",
"DA_ADVANTAGE_PLUS_CREATIVE_INFO_LABELS",
"DEAD_LINK",
"DYNAMIC_ADVANTAGE_CAMPAIGN_BUDGET",
"ECOSYSTEM_BID_REDUCE_L1_CARDINALITY",
"FRAGMENTATION",
"GES_TEST",
"GUIDANCE_CENTER_CODE_GEN",
"LEARNING_LIMITED",
"LEARNING_PAUSE_FRICTION",
"LOW_OUTCOME",
"MERLIN_GUIDANCE",
"MIXED_PA_COMBINE_ADSETS",
"MMT_CAROUSEL_TO_VIDEO",
"MOBILE_FIRST_VIDEO",
"MR_AEMV2SUB_KCONSOLIDATION",
"MULTI_TEXT",
"MUSIC",
"OPTIMAL_SPEND",
"OPTIMAL_BAU",
"PAYMENT_METHOD",
"PERFORMANT_CREATIVE_REELS_OPT_IN",
"PFR_L1_INLINE_MMT",
Expand Down
1 change: 1 addition & 0 deletions lib/facebook_ads/ad_objects/ad_activity.rb
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ class AdActivity < AdObject
"update_campaign_budget",
"update_campaign_budget_optimization_toggling_status",
"update_campaign_budget_scheduling_state",
"update_campaign_conversion_goal",
"update_campaign_delivery_type",
"update_campaign_group_ad_scheduling",
"update_campaign_group_budget_scheduling_state",
Expand Down
1 change: 1 addition & 0 deletions lib/facebook_ads/ad_objects/ad_asset_feed_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ class AdAssetFeedSpec < AdObject
"CALL",
"CALL_ME",
"CALL_NOW",
"CONFIRM",
"CONTACT",
"CONTACT_US",
"DONATE",
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 @@ -26,6 +26,7 @@ class AdCreative < AdObject
"CALL",
"CALL_ME",
"CALL_NOW",
"CONFIRM",
"CONTACT",
"CONTACT_US",
"DONATE",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ class AdCreativeLinkDataCallToAction < AdObject
"CALL",
"CALL_ME",
"CALL_NOW",
"CONFIRM",
"CONTACT",
"CONTACT_US",
"DONATE",
Expand Down
1 change: 0 additions & 1 deletion lib/facebook_ads/ad_objects/ad_promoted_object.rb
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ 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
1 change: 1 addition & 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,7 @@ class AdsInsights < AdObject
"is_conversion_id_modeled",
"link_url_asset",
"marketing_messages_btn_name",
"mdsa_landing_destination",
"media_asset_url",
"media_creator",
"media_destination_url",
Expand Down
6 changes: 6 additions & 0 deletions lib/facebook_ads/ad_objects/ads_pixel.rb
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,12 @@ class AdsPixel < AdObject
edge.get 'Business'
end

has_edge :ahp_configs do |edge|
edge.post do |api|
api.has_param :applink_autosetup, 'bool'
end
end

has_edge :assigned_users do |edge|
edge.get 'AssignedUser' do |api|
api.has_param :business, 'string'
Expand Down
3 changes: 3 additions & 0 deletions lib/facebook_ads/ad_objects/business.rb
Original file line number Diff line number Diff line change
Expand Up @@ -744,6 +744,8 @@ class Business < AdObject
api.has_param :access_key, 'string'
api.has_param :active, 'bool'
api.has_param :endpoint, 'string'
api.has_param :fallback_domain, 'string'
api.has_param :fallback_domain_enabled, 'bool'
api.has_param :host_business_id, 'int'
api.has_param :host_external_id, 'string'
api.has_param :pixel_id, 'int'
Expand Down Expand Up @@ -800,6 +802,7 @@ class Business < AdObject
edge.get 'Page'
edge.post 'Business' do |api|
api.has_param :code, 'string'
api.has_param :entry_point, 'string'
api.has_param :page_id, 'int'
end
end
Expand Down
7 changes: 0 additions & 7 deletions lib/facebook_ads/ad_objects/group.rb
Original file line number Diff line number Diff line change
Expand Up @@ -137,13 +137,6 @@ class Group < AdObject
end
end

has_edge :attachment_surfaces do |edge|
edge.get
edge.post do |api|
api.has_param :title, 'hash'
end
end

has_edge :docs do |edge|
edge.get
end
Expand Down
5 changes: 5 additions & 0 deletions lib/facebook_ads/ad_objects/ig_media.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ class IgMedia < AdObject

field :caption, 'string'
field :comments_count, 'int'
field :copyright_check_information, 'IgVideoCopyrightCheckMatchesInformation'
field :id, 'string'
field :ig_id, 'string'
field :is_comment_enabled, 'bool'
Expand All @@ -37,6 +38,10 @@ class IgMedia < AdObject
edge.get 'IgMedia'
end

has_edge :collaborators do |edge|
edge.get 'ShadowIgMediaCollaborators'
end

has_edge :comments do |edge|
edge.get 'IgComment'
edge.post 'IgComment' do |api|
Expand Down
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 IgVideoCopyrightCheckMatchesInformation < AdObject

field :copyright_matches, { list: 'object' }
field :status, 'IgVideoCopyrightCheckStatus'
has_no_id
has_no_get
has_no_post
has_no_delete

end
end
26 changes: 26 additions & 0 deletions lib/facebook_ads/ad_objects/ig_video_copyright_check_status.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 IgVideoCopyrightCheckStatus < AdObject

field :matches_found, 'bool'
field :status, '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/instagram_comment.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ class InstagramComment < AdObject
field :instagram_user, 'InstagramUser'
field :mentioned_instagram_users, { list: 'InstagramUser' }
field :message, 'string'
field :username, 'string'

has_edge :replies do |edge|
edge.get 'InstagramComment'
Expand Down
2 changes: 2 additions & 0 deletions lib/facebook_ads/ad_objects/open_bridge_configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ class OpenBridgeConfiguration < AdObject
field :access_key, 'string'
field :active, 'bool'
field :endpoint, 'string'
field :fallback_domain, 'string'
field :fallback_domain_enabled, 'bool'
field :host_business_id, 'string'
field :host_external_id, 'string'
field :id, 'string'
Expand Down
7 changes: 4 additions & 3 deletions lib/facebook_ads/ad_objects/page.rb
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,7 @@ class Page < AdObject
field :directed_by, 'string'
field :display_subtext, 'string'
field :displayed_message_response_time, 'string'
field :does_viewer_have_page_permission_link_ig, 'bool'
field :emails, { list: 'string' }
field :engagement, 'Engagement'
field :fan_count, 'int'
Expand Down Expand Up @@ -446,6 +447,7 @@ class Page < AdObject
field :is_chain, 'bool'
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_messenger_bot_get_started_enabled, 'bool'
field :is_messenger_platform_bot, 'bool'
field :is_owned, 'bool'
Expand All @@ -465,7 +467,6 @@ class Page < AdObject
field :merchant_review_status, 'string'
field :messaging_feature_status, 'MessagingFeatureStatus'
field :messenger_ads_default_icebreakers, { list: 'string' }
field :messenger_ads_default_page_welcome_message, 'MessengerDestinationPageWelcomeMessage'
field :messenger_ads_default_quick_replies, { list: 'string' }
field :messenger_ads_quick_replies_type, 'string'
field :mini_shop_storefront, 'Shop'
Expand Down Expand Up @@ -1015,8 +1016,8 @@ class Page < AdObject

has_edge :locations do |edge|
edge.delete do |api|
api.has_param :location_page_id, 'string'
api.has_param :store_number, 'int'
api.has_param :location_page_ids, { list: 'string' }
api.has_param :store_numbers, { list: 'int' }
end
edge.get 'Page'
edge.post 'Page' do |api|
Expand Down
1 change: 1 addition & 0 deletions lib/facebook_ads/ad_objects/product_feed.rb
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ class ProductFeed < AdObject
"LANGUAGE",
"LANGUAGE_AND_COUNTRY",
"LOCAL",
"SMART_PIXEL_LANGUAGE_OR_COUNTRY",
]


Expand Down
1 change: 1 addition & 0 deletions lib/facebook_ads/ad_objects/shadow_ig_media_builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ module FacebookAds

class ShadowIgMediaBuilder < AdObject

field :copyright_check_status, 'IgVideoCopyrightCheckStatus'
field :id, 'string'
field :status, 'string'
field :status_code, 'string'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,11 @@ 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 MessengerDestinationPageWelcomeMessage < AdObject
class ShadowIgMediaCollaborators < AdObject

field :id, 'string'
field :page_welcome_message_body, 'string'
field :page_welcome_message_type, 'string'
field :template_name, 'string'
field :time_created, 'datetime'
field :time_last_used, 'datetime'
field :invite_status, 'string'
field :username, 'string'
has_no_get
has_no_post
has_no_delete
Expand Down
6 changes: 6 additions & 0 deletions lib/facebook_ads/ad_objects/whats_app_business_account.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,11 @@ class WhatsAppBusinessAccount < AdObject
"MANAGE",
"MANAGE_EXTENSIONS",
"MANAGE_PHONE",
"MANAGE_PHONE_ASSETS",
"MANAGE_TEMPLATES",
"VIEW_COST",
"VIEW_PHONE_ASSETS",
"VIEW_TEMPLATES",
]

CATEGORY = [
Expand Down Expand Up @@ -90,6 +94,7 @@ class WhatsAppBusinessAccount < AdObject
has_edge :extensions 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_extension_id, 'string'
api.has_param :clone_template, 'string'
api.has_param :data_channel_uri, 'string'
Expand All @@ -100,6 +105,7 @@ class WhatsAppBusinessAccount < AdObject
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'
Expand Down
2 changes: 1 addition & 1 deletion lib/facebook_ads/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
# FB:AUTOGEN

module FacebookAds
VERSION = '18.0.1'
VERSION = '18.0.2'
API_VERSION = '18.0'
end

0 comments on commit 3963d74

Please sign in to comment.