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

Differential Revision: D58591483

fbshipit-source-id: 8a5b71b2af66d0951df8d02c0cf0f3a88198b9e3
  • Loading branch information
generatedunixname89002005295453 authored and facebook-github-bot committed Jun 14, 2024
1 parent d22bcc9 commit b1c5321
Show file tree
Hide file tree
Showing 494 changed files with 14,020 additions and 229 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: '2024-04-08T11:26:05-0700',
end_time: '2024-04-15T11:26:05-0700',
start_time: '2024-06-18T16:39:15-0700',
end_time: '2024-06-25T16:39:15-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: '2024-04-08T11:26:49-0700',
end_time: '2024-04-15T11:26:49-0700',
start_time: '2024-06-18T16:40:02-0700',
end_time: '2024-06-25T16:40:02-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: '2024-04-08T11:25:19-0700',
end_time: '2024-04-15T11:25:19-0700',
start_time: '2024-06-18T16:38:30-0700',
end_time: '2024-06-25T16:38:30-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: '2024-04-01T11:26:23-0700',
end_time: '2024-04-08T11:26:23-0700',
start_time: '2024-06-11T16:39:34-0700',
end_time: '2024-06-18T16:39:34-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: '2024-04-01T11:26:32-0700',
end_time: '2024-04-11T11:26:32-0700',
start_time: '2024-06-11T16:39:43-0700',
end_time: '2024-06-21T16:39:43-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: '2024-04-01T11:26:40-0700',
end_time: '2024-04-11T11:26:40-0700',
start_time: '2024-06-11T16:39:52-0700',
end_time: '2024-06-21T16:39:52-0700',
campaign_id: '<adCampaignLinkClicksID>',
bid_amount: '500',
billing_event: 'IMPRESSIONS',
Expand Down
2 changes: 1 addition & 1 deletion examples/AdgroupLeadsEdgeAdgroupLeadsFiltered.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
ad = FacebookAds::Ad.get(id)
leadss = ad.leads({
fields: { },
filtering: [{'field':'time_created','operator':'GREATER_THAN','value':1711391704}],
filtering: [{'field':'time_created','operator':'GREATER_THAN','value':1717544918}],
})
2 changes: 1 addition & 1 deletion examples/AdsPixelEventsPost.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@

ads_pixel = FacebookAds::AdsPixel.get(id)
events = ads_pixel.events.create({
data: [{'event_name':'PageView','event_time':1711995835,'user_data':{'fbc':'fb.1.1554763741205.AbCdEfGhIjKlMnOpQrStUvWxYz1234567890','fbp':'fb.1.1558571054389.1098115397','em':'309a0a5c3e211326ae75ca18196d301a9bdbd1a882a4d2569511033da23f0abd'}}],
data: [{'event_name':'PageView','event_time':1718149023,'user_data':{'fbc':'fb.1.1554763741205.AbCdEfGhIjKlMnOpQrStUvWxYz1234567890','fbp':'fb.1.1558571054389.1098115397','em':'309a0a5c3e211326ae75ca18196d301a9bdbd1a882a4d2569511033da23f0abd'}}],
})
1 change: 1 addition & 0 deletions lib/facebook_ads/ad_objects/ad.rb
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ class Ad < AdObject
field :conversion_specs, { list: 'ConversionActionQuery' }
field :created_time, 'datetime'
field :creative, 'AdCreative'
field :creative_asset_groups_spec, 'AdCreativeAssetGroupsSpec'
field :demolink_hash, 'string'
field :display_sequence, 'int'
field :effective_status, { enum: -> { EFFECTIVE_STATUS }}
Expand Down
34 changes: 16 additions & 18 deletions lib/facebook_ads/ad_objects/ad_account.rb
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@ class AdAccount < AdObject
"HOTEL",
"JOB",
"LOCAL_SERVICE_BUSINESS",
"LOCATION_BASED_ITEM",
"MEDIA_TITLE",
"OFFLINE_PRODUCT",
"PRODUCT",
Expand Down Expand Up @@ -261,7 +260,7 @@ class AdAccount < AdObject
end

has_edge :ad_saved_keywords do |edge|
edge.get do |api|
edge.get 'AdSavedKeywords' do |api|
api.has_param :fields, { list: 'string' }
end
end
Expand Down Expand Up @@ -289,6 +288,7 @@ class AdAccount < AdObject
api.has_param :call_to_action, 'object'
api.has_param :categorization_criteria, { enum: -> { AdCreative::CATEGORIZATION_CRITERIA }}
api.has_param :category_media_source, { enum: -> { AdCreative::CATEGORY_MEDIA_SOURCE }}
api.has_param :contextual_multi_ads, 'hash'
api.has_param :degrees_of_freedom_spec, 'hash'
api.has_param :destination_set_id, 'string'
api.has_param :dynamic_ad_voice, { enum: -> { AdCreative::DYNAMIC_AD_VOICE }}
Expand All @@ -306,14 +306,14 @@ class AdAccount < AdObject
api.has_param :is_dco_internal, 'bool'
api.has_param :link_og_id, 'string'
api.has_param :link_url, 'string'
api.has_param :messenger_sponsored_message, 'string'
api.has_param :name, 'string'
api.has_param :object_id, 'int'
api.has_param :object_story_id, 'string'
api.has_param :object_story_spec, 'AdCreativeObjectStorySpec'
api.has_param :object_type, 'string'
api.has_param :object_url, 'string'
api.has_param :omnichannel_link_spec, 'hash'
api.has_param :page_welcome_message, 'string'
api.has_param :place_page_set_id, 'string'
api.has_param :platform_customizations, 'object'
api.has_param :playable_asset_id, 'string'
Expand Down Expand Up @@ -415,6 +415,7 @@ class AdAccount < AdObject
api.has_param :bid_amount, 'int'
api.has_param :conversion_domain, 'string'
api.has_param :creative, 'AdCreative'
api.has_param :creative_asset_groups_spec, 'object'
api.has_param :date_format, 'string'
api.has_param :display_sequence, 'int'
api.has_param :draft_adgroup_id, 'string'
Expand All @@ -431,18 +432,18 @@ class AdAccount < AdObject
end

has_edge :ads_reporting_mmm_reports do |edge|
edge.get do |api|
edge.get 'AdsReportBuilderMmmReport' do |api|
api.has_param :filtering, { list: 'hash' }
end
end

has_edge :ads_reporting_mmm_schedulers do |edge|
edge.get
edge.get 'AdsReportBuilderMmmReportScheduler'
end

has_edge :ads_volume do |edge|
edge.get 'AdAccountAdVolume' do |api|
api.has_param :page_id, 'int'
api.has_param :page_id, 'string'
api.has_param :recommendation_type, { enum: -> { AdAccountAdVolume::RECOMMENDATION_TYPE }}
api.has_param :show_breakdown_by_actor, 'bool'
end
Expand Down Expand Up @@ -502,6 +503,8 @@ class AdAccount < AdObject
api.has_param :pacing_type, { list: 'string' }
api.has_param :promoted_object, 'object'
api.has_param :rb_prediction_id, 'string'
api.has_param :regional_regulated_categories, { list: { enum: -> { AdSet::REGIONAL_REGULATED_CATEGORIES }} }
api.has_param :regional_regulation_identities, 'hash'
api.has_param :rf_prediction_id, 'string'
api.has_param :source_adset_id, 'string'
api.has_param :start_time, 'datetime'
Expand Down Expand Up @@ -555,7 +558,6 @@ class AdAccount < AdObject
api.has_param :title, 'string'
end
edge.post 'AdVideo' do |api|
api.has_param :adaptive_type, 'string'
api.has_param :animated_effect_id, 'int'
api.has_param :application_id, 'string'
api.has_param :asked_fun_fact_prompt_id, 'int'
Expand Down Expand Up @@ -603,7 +605,6 @@ class AdAccount < AdObject
api.has_param :original_fov, 'int'
api.has_param :original_projection_type, { enum: -> { AdVideo::ORIGINAL_PROJECTION_TYPE }}
api.has_param :publish_event_id, 'int'
api.has_param :react_mode_metadata, 'string'
api.has_param :referenced_sticker_id, 'string'
api.has_param :replace_video_id, 'string'
api.has_param :slideshow_spec, 'hash'
Expand Down Expand Up @@ -689,7 +690,7 @@ class AdAccount < AdObject
end

has_edge :audience_funnel do |edge|
edge.get
edge.get 'AudienceFunnel'
end

has_edge :block_list_drafts do |edge|
Expand All @@ -705,7 +706,7 @@ class AdAccount < AdObject
end

has_edge :businessprojects do |edge|
edge.get do |api|
edge.get 'BusinessProject' do |api|
api.has_param :business, 'string'
end
end
Expand Down Expand Up @@ -766,11 +767,11 @@ class AdAccount < AdObject
end

has_edge :conversion_goals do |edge|
edge.get
edge.get 'AdsConversionGoal'
end

has_edge :cpa_guidance do |edge|
edge.get
edge.get 'BespokePartnerGuidanceLaser'
end

has_edge :customaudiences do |edge|
Expand Down Expand Up @@ -831,6 +832,7 @@ class AdAccount < AdObject
has_edge :customconversions do |edge|
edge.get 'CustomConversion'
edge.post 'CustomConversion' do |api|
api.has_param :action_source_type, { enum: -> { CustomConversion::ACTION_SOURCE_TYPE }}
api.has_param :advanced_rule, 'string'
api.has_param :custom_event_type, { enum: -> { CustomConversion::CUSTOM_EVENT_TYPE }}
api.has_param :default_conversion_value, 'double'
Expand Down Expand Up @@ -984,10 +986,6 @@ class AdAccount < AdObject
end
end

has_edge :offline_conversion_data_sets do |edge|
edge.get 'OfflineConversionDataSet'
end

has_edge :onbehalf_requests do |edge|
edge.get 'BusinessOwnedObjectOnBehalfOfRequest' do |api|
api.has_param :status, { enum: -> { BusinessOwnedObjectOnBehalfOfRequest::STATUS }}
Expand Down Expand Up @@ -1193,11 +1191,11 @@ class AdAccount < AdObject
end

has_edge :value_adjustment_rule_collections do |edge|
edge.get
edge.get 'AdsValueAdjustmentRuleCollection'
end

has_edge :value_adjustment_rules do |edge|
edge.get
edge.get 'AdsValueAdjustmentRule'
end

end
Expand Down
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 AdAccountAaaCompatibleAdObjects < AdObject

field :adgroup_ids, { list: 'string' }
field :campaign_group_ids, { list: 'string' }
field :campaign_ids, { list: 'string' }
has_no_id
has_no_get
has_no_post
has_no_delete

end
end
27 changes: 27 additions & 0 deletions lib/facebook_ads/ad_objects/ad_account_aaa_similar_campaigns.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 AdAccountAaaSimilarCampaigns < AdObject

field :similar_campaign_limit, 'int'
field :similar_campaigns_info, { list: 'hash' }
field :used_campaign_slots, 'int'
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 @@ -13,12 +13,10 @@ 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 FameExportConfig < AdObject
class AdAccountAdLimitsInsights < AdObject

field :can_edit, 'bool'
field :column_id, 'string'
field :display_name, 'string'
field :format, 'string'
field :date_start, 'string'
field :date_stop, 'string'
has_no_id
has_no_get
has_no_post
Expand Down
26 changes: 26 additions & 0 deletions lib/facebook_ads/ad_objects/ad_account_ad_rules_count_by_type.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 AdAccountAdRulesCountByType < AdObject

field :count, 'int'
field :evaluation_type, 'string'
has_no_id
has_no_get
has_no_post
has_no_delete

end
end
3 changes: 3 additions & 0 deletions lib/facebook_ads/ad_objects/ad_account_ad_rules_history.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,14 @@ class AdAccountAdRulesHistory < AdObject
"CHANGED_BID",
"CHANGED_BUDGET",
"EMAIL",
"ENABLE_ADVANTAGE_CAMPAIGN_BUDGET",
"ENABLE_ADVANTAGE_PLUS_CREATIVE",
"ENABLE_ADVANTAGE_PLUS_PLACEMENTS",
"ENABLE_AUTOFLOW",
"ENABLE_GEN_UNCROP",
"ENABLE_MUSIC",
"ENABLE_SEMANTIC_BASED_AUDIENCE_EXPANSION",
"ENABLE_SHOPS_ADS",
"ENDPOINT_PINGED",
"ERROR",
"FACEBOOK_NOTIFICATION_SENT",
Expand Down
Loading

0 comments on commit b1c5321

Please sign in to comment.