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

Differential Revision: D20907334

fbshipit-source-id: 32500e8d
  • Loading branch information
generatedunixname89002005295453 authored and facebook-github-bot committed Apr 8, 2020
1 parent 289c77c commit dcc6ad4
Show file tree
Hide file tree
Showing 23 changed files with 106 additions and 197 deletions.
15 changes: 2 additions & 13 deletions lib/facebook_ads/ad_objects/ad_account.rb
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,7 @@ class AdAccount < AdObject
api.has_param :image_url, 'string'
api.has_param :instagram_actor_id, 'string'
api.has_param :instagram_permalink_url, 'string'
api.has_param :instant_checkout_setting, { enum: -> { AdCreative::INSTANT_CHECKOUT_SETTING }}
api.has_param :interactive_components_spec, 'hash'
api.has_param :is_dco_internal, 'bool'
api.has_param :link_og_id, 'string'
Expand Down Expand Up @@ -407,7 +408,7 @@ class AdAccount < AdObject
has_edge :ads_volume do |edge|
edge.get 'AdAccountAdVolume' do |api|
api.has_param :page_id, 'int'
api.has_param :show_ad_limit_by_actor, 'bool'
api.has_param :show_breakdown_by_actor, 'bool'
end
end

Expand Down Expand Up @@ -656,18 +657,6 @@ class AdAccount < AdObject
end
end

has_edge :batchreplace do |edge|
edge.post do |api|
api.has_param :payload, { list: 'string' }
end
end

has_edge :batchupload do |edge|
edge.post do |api|
api.has_param :payload, { list: 'string' }
end
end

has_edge :block_list_drafts do |edge|
edge.post 'AdAccount' do |api|
api.has_param :publisher_urls_file, 'file'
Expand Down
2 changes: 2 additions & 0 deletions lib/facebook_ads/ad_objects/ad_campaign_activity.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,14 @@ module FacebookAds

class AdCampaignActivity < AdObject
BID_STRATEGY_NEW = [
"COST_CAP",
"LOWEST_COST_WITHOUT_CAP",
"LOWEST_COST_WITH_BID_CAP",
"TARGET_COST",
]

BID_STRATEGY_OLD = [
"COST_CAP",
"LOWEST_COST_WITHOUT_CAP",
"LOWEST_COST_WITH_BID_CAP",
"TARGET_COST",
Expand Down
6 changes: 6 additions & 0 deletions lib/facebook_ads/ad_objects/ad_creative.rb
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,11 @@ class AdCreative < AdObject
"STORY_OWNER",
]

INSTANT_CHECKOUT_SETTING = [
"off",
"on",
]

OPERATOR = [
"ALL",
"ANY",
Expand Down Expand Up @@ -197,6 +202,7 @@ class AdCreative < AdObject
field :video_id, 'string'
field :call_to_action, 'object'
field :image_file, 'string'
field :instant_checkout_setting, { enum: -> { INSTANT_CHECKOUT_SETTING }}
field :is_dco_internal, 'bool'

has_edge :adlabels do |edge|
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ class AdNetworkAnalyticsSyncQueryResult < AdObject
"DISPLAY_FORMAT",
"FAIL_REASON",
"GENDER",
"INSTANT_ARTICLE_ID",
"INSTANT_ARTICLE_PAGE_ID",
"PLACEMENT",
"PLACEMENT_NAME",
"PLATFORM",
Expand Down
1 change: 1 addition & 0 deletions lib/facebook_ads/ad_objects/ad_set.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ module FacebookAds

class AdSet < AdObject
BID_STRATEGY = [
"COST_CAP",
"LOWEST_COST_WITHOUT_CAP",
"LOWEST_COST_WITH_BID_CAP",
"TARGET_COST",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ class AdgroupPlacementSpecificReviewFeedback < AdObject
field :daily_deals_legacy, 'hash'
field :dpa, 'hash'
field :facebook, 'hash'
field :facebook_pages_live_shopping, 'hash'
field :instagram, 'hash'
field :instagram_shop, 'hash'
field :lead_gen_honeypot, 'hash'
Expand Down
3 changes: 2 additions & 1 deletion lib/facebook_ads/ad_objects/business.rb
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,9 @@ class Business < AdObject
"MODERATE_COMMUNITY",
"PAGES_MESSAGING",
"PAGES_MESSAGING_SUBSCRIPTIONS",
"PLATFORM_MANAGE_PAGES",
"PLATFORM_PAGES_MANAGE_INSTANT_ARTICLES",
"PLATFORM_PAGE_ADMINISTER",
"PLATFORM_PAGE_BASIC_ADMIN",
"PLATFORM_READ_INSIGHTS",
"PROFILE_PLUS_ADVERTISE",
"PROFILE_PLUS_ANALYZE",
Expand Down
3 changes: 2 additions & 1 deletion lib/facebook_ads/ad_objects/business_asset_group.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,9 @@ class BusinessAssetGroup < AdObject
"MODERATE_COMMUNITY",
"PAGES_MESSAGING",
"PAGES_MESSAGING_SUBSCRIPTIONS",
"PLATFORM_MANAGE_PAGES",
"PLATFORM_PAGES_MANAGE_INSTANT_ARTICLES",
"PLATFORM_PAGE_ADMINISTER",
"PLATFORM_PAGE_BASIC_ADMIN",
"PLATFORM_READ_INSIGHTS",
"PROFILE_PLUS_ADVERTISE",
"PROFILE_PLUS_ANALYZE",
Expand Down
3 changes: 0 additions & 3 deletions lib/facebook_ads/ad_objects/business_creative_folder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,6 @@ class BusinessCreativeFolder < AdObject
field :parent_folder_id, 'string'

has_edge :agencies do |edge|
edge.delete do |api|
api.has_param :business, 'string'
end
edge.get 'Business'
edge.post 'BusinessCreativeFolder' do |api|
api.has_param :business, 'string'
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 @@ -27,6 +27,7 @@ module FacebookAds

class Campaign < AdObject
BID_STRATEGY = [
"COST_CAP",
"LOWEST_COST_WITHOUT_CAP",
"LOWEST_COST_WITH_BID_CAP",
"TARGET_COST",
Expand Down
3 changes: 3 additions & 0 deletions lib/facebook_ads/ad_objects/content_delivery_report.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ class ContentDeliveryReport < AdObject
PLATFORM = [
"AUDIENCE_NETWORK",
"FACEBOOK",
"HIDDEN_AAA",
"INSTAGRAM",
"MESSENGER",
"UNKNOWN",
Expand All @@ -42,11 +43,13 @@ class ContentDeliveryReport < AdObject
"FACEBOOK_STORIES",
"FEED",
"GROUPS",
"HIDDEN_AAA",
"INSTAGRAM_EXPLORE",
"INSTAGRAM_IGTV",
"INSTAGRAM_STORIES",
"INSTANT_ARTICLE",
"INSTREAM_VIDEO",
"JOBS_BROWSER",
"MARKETPLACE",
"MESSENGER_INBOX",
"MESSENGER_STORIES",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ class CopyrightReferenceContainer < AdObject
field :copyright_creation_time, 'datetime'
field :download_hd_url, 'string'
field :duration_in_sec, 'double'
field :fingerprint_validity, 'string'
field :id, 'string'
field :iswc, 'string'
field :metadata, 'object'
Expand Down
43 changes: 0 additions & 43 deletions lib/facebook_ads/ad_objects/dynamic_item_display_bundle.rb

This file was deleted.

47 changes: 0 additions & 47 deletions lib/facebook_ads/ad_objects/dynamic_item_display_bundle_folder.rb

This file was deleted.

1 change: 1 addition & 0 deletions lib/facebook_ads/ad_objects/event.rb
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ class Event < AdObject
field :interested_count, 'int'
field :is_canceled, 'bool'
field :is_draft, 'bool'
field :is_online, 'bool'
field :is_page_owned, 'bool'
field :maybe_count, 'int'
field :name, 'string'
Expand Down
6 changes: 0 additions & 6 deletions lib/facebook_ads/ad_objects/media_fingerprint.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,6 @@ class MediaFingerprint < AdObject
"SONGTRACK",
]

FINGERPRINT_VALIDITY = [
"EXPIRED",
"EXPIRING",
"VALID",
]


field :duration_in_sec, 'double'
field :fingerprint_content_type, 'string'
Expand Down
Loading

0 comments on commit dcc6ad4

Please sign in to comment.