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

fbshipit-source-id: 89a99813da91e187561e4b6d9d9ca765f7bf01e3
  • Loading branch information
generatedunixname89002005295453 authored and facebook-github-bot committed Mar 18, 2024
1 parent e765825 commit f7fb93b
Show file tree
Hide file tree
Showing 30 changed files with 101 additions and 38 deletions.
4 changes: 2 additions & 2 deletions examples/AdAccountAdSetsPostAdSetCreateCpa.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
name: 'A CPA Ad Set',
campaign_id: '<adCampaignLinkClicksID>',
daily_budget: '5000',
start_time: '2023-04-24T09:25:05-0700',
end_time: '2023-05-01T09:25:05-0700',
start_time: '2024-03-20T14:31:58-0700',
end_time: '2024-03-27T14:31:58-0700',
billing_event: 'IMPRESSIONS',
optimization_goal: 'REACH',
bid_amount: '1000',
Expand Down
4 changes: 2 additions & 2 deletions examples/AdAccountAdSetsPostAdSetCreateCpaAppEvents.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
name: 'A CPA Ad Set optimized for App Events',
campaign_id: '<adCampaignAppInstallsID>',
daily_budget: '300',
start_time: '2023-04-24T09:25:55-0700',
end_time: '2023-05-01T09:25:55-0700',
start_time: '2024-03-20T14:32:42-0700',
end_time: '2024-03-27T14:32:42-0700',
billing_event: 'IMPRESSIONS',
optimization_goal: 'OFFSITE_CONVERSIONS',
bid_amount: '100',
Expand Down
4 changes: 2 additions & 2 deletions examples/AdAccountAdSetsPostCreateAdSet.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@
adsets = ad_account.adsets.create({
name: 'My First AdSet',
lifetime_budget: '20000',
start_time: '2023-04-24T09:24:18-0700',
end_time: '2023-05-01T09:24:18-0700',
start_time: '2024-03-20T14:31:13-0700',
end_time: '2024-03-27T14:31:13-0700',
campaign_id: '<adCampaignLinkClicksID>',
bid_amount: '500',
billing_event: 'IMPRESSIONS',
Expand Down
4 changes: 2 additions & 2 deletions examples/AdAccountAdSetsPostDailyBudget20.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@
adsets = ad_account.adsets.create({
name: 'My First Adset',
daily_budget: '2000',
start_time: '2023-04-17T09:25:24-0700',
end_time: '2023-04-24T09:25:24-0700',
start_time: '2024-03-13T14:32:15-0700',
end_time: '2024-03-20T14:32:15-0700',
campaign_id: '<adCampaignLinkClicksID>',
bid_amount: '100',
billing_event: 'LINK_CLICKS',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@
adsets = ad_account.adsets.create({
name: 'My First Adset',
lifetime_budget: '20000',
start_time: '2023-04-17T09:25:36-0700',
end_time: '2023-04-27T09:25:36-0700',
start_time: '2024-03-13T14:32:24-0700',
end_time: '2024-03-23T14:32:24-0700',
campaign_id: '<adCampaignLinkClicksID>',
bid_amount: '100',
billing_event: 'LINK_CLICKS',
Expand Down
4 changes: 2 additions & 2 deletions examples/AdAccountAdSetsPostOptimizePostEngagement.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@
adsets = ad_account.adsets.create({
name: 'My First Adset',
lifetime_budget: '20000',
start_time: '2023-04-17T09:25:45-0700',
end_time: '2023-04-27T09:25:45-0700',
start_time: '2024-03-13T14:32:33-0700',
end_time: '2024-03-23T14:32:33-0700',
campaign_id: '<adCampaignLinkClicksID>',
bid_amount: '500',
billing_event: 'IMPRESSIONS',
Expand Down
2 changes: 1 addition & 1 deletion lib/facebook_ads/ad_objects/ad.rb
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class Ad < AdObject
"last_week_mon_sun",
"last_week_sun_sat",
"last_year",
"lifetime",
"maximum",
"this_month",
"this_quarter",
"this_week_mon_today",
Expand Down
5 changes: 0 additions & 5 deletions lib/facebook_ads/ad_objects/ad_account.rb
Original file line number Diff line number Diff line change
Expand Up @@ -582,7 +582,6 @@ class AdAccount < AdObject
api.has_param :fun_fact_toastee_id, 'int'
api.has_param :guide, { list: { list: 'int' } }
api.has_param :guide_enabled, 'bool'
api.has_param :has_nickname, 'bool'
api.has_param :holiday_card, 'string'
api.has_param :initial_heading, 'int'
api.has_param :initial_pitch, 'int'
Expand Down Expand Up @@ -1180,10 +1179,6 @@ class AdAccount < AdObject
end
end

has_edge :value_adjustment_rule_persona_groups do |edge|
edge.get
end

has_edge :value_adjustment_rules do |edge|
edge.get
end
Expand Down
6 changes: 6 additions & 0 deletions lib/facebook_ads/ad_objects/ad_account_ad_volume.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ class AdAccountAdVolume < AdObject
"APP_AEM_V2_INSTALLATION_PROMOTION",
"ASC_BUDGET_OPTIMIZATION",
"ASC_BUDGET_OPTIMIZATION_PFR",
"ASC_CREATION_PACKAGE",
"ASPECT_RATIO",
"ATLEAST_6_PLACEMENTS",
"AUCTION_OVERLAP",
Expand All @@ -60,12 +61,14 @@ class AdAccountAdVolume < AdObject
"CASH_REWARDS_OPT_IN",
"CONNECT_FACEBOOK_PAGE_TO_INSTAGRAM",
"CONNECT_FACEBOOK_PAGE_TO_WHATSAPP",
"CONVERSION_LEAD_ADS",
"COST_GOAL",
"COST_GOAL_BUDGET_LIMITED",
"COST_GOAL_CPA_LIMITED",
"COST_PER_RESULT",
"CREATION_PACKAGE_UPGRADE_TO_ASC",
"CREATION_PACKAGE_UPGRADE_TO_TLA",
"CREATION_PACKAGE_UPGRADE_TO_TMC",
"CREATIVE_BADGE",
"CREATIVE_DIVERSITY",
"CREATIVE_FATIGUE",
Expand All @@ -75,6 +78,7 @@ class AdAccountAdVolume < AdObject
"CREATOR_ADS_PA_CONVERSION",
"CTA",
"CTX_BUDGET_OPTIMIZATION",
"CTX_GUIDANCE",
"DA_ADVANTAGE_PLUS_CREATIVE_INFO_LABELS",
"DEAD_LINK",
"DYNAMIC_ADVANTAGE_CAMPAIGN_BUDGET",
Expand All @@ -87,6 +91,7 @@ class AdAccountAdVolume < AdObject
"HIGH_COST",
"HISTORICAL_BENCHMARK",
"IG_MULTI_ADS",
"LEAD_ADS_GUIDANCE",
"LEARNING_LIMITED",
"LEARNING_PAUSE_FRICTION",
"LEARNING_PHASE_BUDGET_EDITS",
Expand Down Expand Up @@ -120,6 +125,7 @@ class AdAccountAdVolume < AdObject
"SPEND_LIMIT",
"SYD_TEST_MODE",
"TAILORED_LEAD_AD_CAMPAIGN",
"TAILORED_MESSAGES_CAMPAIGN",
"TOP_ADSETS_WITH_ADS_UNDER_CAP",
"TOP_CAMPAIGNS_WITH_ADS_UNDER_CAP",
"TWO_P_GUIDANCE_CARD_AAA",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ class AdAssetFeedAdditionalData < AdObject
field :is_click_to_message, 'bool'
field :multi_share_end_card, 'bool'
field :page_welcome_message, 'string'
field :partner_app_welcome_message_flow_id, 'string'
has_no_id
has_no_get
has_no_post
Expand Down
2 changes: 1 addition & 1 deletion lib/facebook_ads/ad_objects/ad_set.rb
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ class AdSet < AdObject
"LAST_WEEK_MON_SUN",
"LAST_WEEK_SUN_SAT",
"LAST_YEAR",
"LIFETIME",
"MAXIMUM",
"THIS_MONTH",
"THIS_QUARTER",
"THIS_WEEK_MON_TODAY",
Expand Down
2 changes: 1 addition & 1 deletion lib/facebook_ads/ad_objects/ad_video.rb
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ class AdVideo < AdObject
"MUSIC_CLIP_IN_AUDIO_DIGEST",
"MUSIC_CLIP_IN_COMMENT",
"MUSIC_CLIP_IN_LIGHTWEIGHT_STATUS",
"MUSIC_CLIP_IN_MSGR_NOTE",
"MUSIC_CLIP_IN_POLL_OPTION",
"MUSIC_CLIP_ON_DATING_PROFILE",
"NEO_ASYNC_GAME_VIDEO",
Expand Down Expand Up @@ -364,7 +365,6 @@ class AdVideo < AdObject
field :fun_fact_toastee_id, 'int'
field :guide, { list: { list: 'int' } }
field :guide_enabled, 'bool'
field :has_nickname, 'bool'
field :holiday_card, 'string'
field :initial_heading, 'int'
field :initial_pitch, 'int'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ class AdgroupPlacementSpecificReviewFeedback < AdObject
field :bsg, 'hash'
field :city_community, 'hash'
field :commerce, 'hash'
field :compromise, 'hash'
field :daily_deals, 'hash'
field :daily_deals_legacy, 'hash'
field :dpa, 'hash'
Expand Down
11 changes: 10 additions & 1 deletion lib/facebook_ads/ad_objects/ads_insights.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,12 @@ class AdsInsights < AdObject
"1d_view",
"28d_click",
"28d_view",
"28d_view_all_conversions",
"28d_view_first_conversion",
"7d_click",
"7d_view",
"7d_view_all_conversions",
"7d_view_first_conversion",
"dda",
"default",
"skan_click",
Expand All @@ -40,6 +44,8 @@ class AdsInsights < AdObject
"action_video_sound",
"action_video_type",
"conversion_destination",
"matched_persona_id",
"matched_persona_name",
"signal_source_bucket",
"standard_event_content_type",
]
Expand Down Expand Up @@ -110,7 +116,7 @@ class AdsInsights < AdObject
"last_week_mon_sun",
"last_week_sun_sat",
"last_year",
"lifetime",
"maximum",
"this_month",
"this_quarter",
"this_week_mon_today",
Expand Down Expand Up @@ -139,6 +145,8 @@ class AdsInsights < AdObject
"action_video_sound",
"action_video_type",
"conversion_destination",
"matched_persona_id",
"matched_persona_name",
"signal_source_bucket",
"standard_event_content_type",
]
Expand Down Expand Up @@ -232,6 +240,7 @@ class AdsInsights < AdObject
field :marketing_messages_cost_per_delivered, 'string'
field :marketing_messages_cost_per_link_btn_click, 'string'
field :marketing_messages_spend, 'string'
field :marketing_messages_website_purchase_values, 'string'
field :mobile_app_purchase_roas, { list: 'AdsActionStats' }
field :objective, 'string'
field :optimization_goal, 'string'
Expand Down
1 change: 0 additions & 1 deletion lib/facebook_ads/ad_objects/album.rb
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,6 @@ class Album < AdObject
api.has_param :proxied_app_id, 'string'
api.has_param :published, 'bool'
api.has_param :qn, 'string'
api.has_param :scheduled_publish_time, 'int'
api.has_param :spherical_metadata, 'hash'
api.has_param :sponsor_id, 'string'
api.has_param :sponsor_relationship, 'int'
Expand Down
1 change: 1 addition & 0 deletions lib/facebook_ads/ad_objects/avatar.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ class Avatar < AdObject
edge.get do |api|
api.has_param :client_name, 'string'
api.has_param :client_version, 'string'
api.has_param :config_id, 'string'
api.has_param :force_generate, 'bool'
api.has_param :platform, 'string'
api.has_param :profile, 'string'
Expand Down
1 change: 0 additions & 1 deletion lib/facebook_ads/ad_objects/business.rb
Original file line number Diff line number Diff line change
Expand Up @@ -996,7 +996,6 @@ class Business < AdObject
api.has_param :fun_fact_toastee_id, 'int'
api.has_param :guide, { list: { list: 'int' } }
api.has_param :guide_enabled, 'bool'
api.has_param :has_nickname, 'bool'
api.has_param :holiday_card, 'string'
api.has_param :initial_heading, 'int'
api.has_param :initial_pitch, 'int'
Expand Down
2 changes: 1 addition & 1 deletion lib/facebook_ads/ad_objects/campaign.rb
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class Campaign < AdObject
"last_week_mon_sun",
"last_week_sun_sat",
"last_year",
"lifetime",
"maximum",
"this_month",
"this_quarter",
"this_week_mon_today",
Expand Down
1 change: 0 additions & 1 deletion lib/facebook_ads/ad_objects/catalog_sub_vertical_list.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ class CatalogSubVerticalList < AdObject
field :local_service_business_item, 'object'
field :local_service_business_restaurant, 'object'
field :loyalty_offer, 'object'
field :meetup_space, 'object'
field :nursery, 'object'
field :printers_and_scanners, 'object'
field :printers_scanners_and_fax_machines, 'object'
Expand Down
1 change: 1 addition & 0 deletions lib/facebook_ads/ad_objects/custom_audience_data_source.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ class CustomAudienceDataSource < AdObject
"INSTANT_ARTICLE_EVENTS",
"LOOKALIKE_PLATFORM",
"MAIL_CHIMP_EMAIL_HASHES",
"MARKETPLACE_LISTINGS",
"MESSENGER_ONSITE_SUBSCRIPTION",
"MOBILE_ADVERTISER_IDS",
"MOBILE_APP_COMBINATION_EVENTS",
Expand Down
1 change: 1 addition & 0 deletions lib/facebook_ads/ad_objects/funding_source_details.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ module FacebookAds
class FundingSourceDetails < AdObject

field :coupon, 'FundingSourceDetailsCoupon'
field :coupons, { list: 'FundingSourceDetailsCoupon' }
field :display_string, 'string'
field :id, 'string'
field :type, 'int'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ module FacebookAds
class FundingSourceDetailsCoupon < AdObject

field :amount, 'int'
field :campaign_ids, { list: 'int' }
field :currency, 'string'
field :display_amount, 'string'
field :expiration, 'datetime'
Expand Down
5 changes: 2 additions & 3 deletions lib/facebook_ads/ad_objects/group.rb
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,8 @@ class Group < AdObject
api.has_param :audience_exp, 'bool'
api.has_param :backdated_time, 'datetime'
api.has_param :backdated_time_granularity, { enum: -> { Post::BACKDATED_TIME_GRANULARITY }}
api.has_param :breaking_news, 'bool'
api.has_param :breaking_news_expiration, 'int'
api.has_param :call_to_action, 'object'
api.has_param :caption, 'string'
api.has_param :child_attachments, { list: 'object' }
Expand All @@ -193,7 +195,6 @@ class Group < AdObject
api.has_param :formatting, { enum: -> { Post::FORMATTING }}
api.has_param :fun_fact_prompt_id, 'int'
api.has_param :fun_fact_toastee_id, 'int'
api.has_param :has_nickname, 'bool'
api.has_param :height, 'int'
api.has_param :holiday_card, 'string'
api.has_param :home_checkin_city_id, 'object'
Expand Down Expand Up @@ -376,7 +377,6 @@ class Group < AdObject
api.has_param :proxied_app_id, 'string'
api.has_param :published, 'bool'
api.has_param :qn, 'string'
api.has_param :scheduled_publish_time, 'int'
api.has_param :spherical_metadata, 'hash'
api.has_param :sponsor_id, 'string'
api.has_param :sponsor_relationship, 'int'
Expand Down Expand Up @@ -435,7 +435,6 @@ class Group < AdObject
api.has_param :fun_fact_toastee_id, 'int'
api.has_param :guide, { list: { list: 'int' } }
api.has_param :guide_enabled, 'bool'
api.has_param :has_nickname, 'bool'
api.has_param :holiday_card, 'string'
api.has_param :initial_heading, 'int'
api.has_param :initial_pitch, 'int'
Expand Down
1 change: 1 addition & 0 deletions lib/facebook_ads/ad_objects/ig_user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ class IgUser < AdObject
api.has_param :product_tags, { list: 'hash' }
api.has_param :share_to_feed, 'bool'
api.has_param :thumb_offset, 'string'
api.has_param :upload_type, 'string'
api.has_param :user_tags, { list: 'hash' }
api.has_param :video_url, 'string'
end
Expand Down
4 changes: 2 additions & 2 deletions lib/facebook_ads/ad_objects/insights_result.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class InsightsResult < AdObject
"last_week_mon_sun",
"last_week_sun_sat",
"last_year",
"lifetime",
"maximum",
"this_month",
"this_quarter",
"this_week_mon_today",
Expand All @@ -53,7 +53,7 @@ class InsightsResult < AdObject
field :name, 'string'
field :period, 'string'
field :title, 'string'
field :values, { list: 'object' }
field :values, { list: 'InsightsValue' }
has_no_get
has_no_post
has_no_delete
Expand Down
34 changes: 34 additions & 0 deletions lib/facebook_ads/ad_objects/insights_value.rb
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 InsightsValue < AdObject

field :campaign_id, 'string'
field :end_time, 'datetime'
field :engagement_source, 'string'
field :message_type, 'string'
field :messaging_channel, 'string'
field :recurring_notifications_entry_point, 'string'
field :recurring_notifications_frequency, 'string'
field :recurring_notifications_topic, 'string'
field :start_time, 'datetime'
field :value, 'object'
has_no_id
has_no_get
has_no_post
has_no_delete

end
end
Loading

0 comments on commit f7fb93b

Please sign in to comment.