diff --git a/lib/facebook_ads/ad_objects/ad_account.rb b/lib/facebook_ads/ad_objects/ad_account.rb index cf6347a0..924ae3a8 100644 --- a/lib/facebook_ads/ad_objects/ad_account.rb +++ b/lib/facebook_ads/ad_objects/ad_account.rb @@ -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' @@ -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 @@ -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' diff --git a/lib/facebook_ads/ad_objects/ad_campaign_activity.rb b/lib/facebook_ads/ad_objects/ad_campaign_activity.rb index 2ea3c727..5d65b501 100644 --- a/lib/facebook_ads/ad_objects/ad_campaign_activity.rb +++ b/lib/facebook_ads/ad_objects/ad_campaign_activity.rb @@ -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", diff --git a/lib/facebook_ads/ad_objects/ad_creative.rb b/lib/facebook_ads/ad_objects/ad_creative.rb index eaaed3af..34a923eb 100644 --- a/lib/facebook_ads/ad_objects/ad_creative.rb +++ b/lib/facebook_ads/ad_objects/ad_creative.rb @@ -134,6 +134,11 @@ class AdCreative < AdObject "STORY_OWNER", ] + INSTANT_CHECKOUT_SETTING = [ + "off", + "on", + ] + OPERATOR = [ "ALL", "ANY", @@ -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| diff --git a/lib/facebook_ads/ad_objects/ad_network_analytics_sync_query_result.rb b/lib/facebook_ads/ad_objects/ad_network_analytics_sync_query_result.rb index d809c27d..1a12e16a 100644 --- a/lib/facebook_ads/ad_objects/ad_network_analytics_sync_query_result.rb +++ b/lib/facebook_ads/ad_objects/ad_network_analytics_sync_query_result.rb @@ -44,6 +44,8 @@ class AdNetworkAnalyticsSyncQueryResult < AdObject "DISPLAY_FORMAT", "FAIL_REASON", "GENDER", + "INSTANT_ARTICLE_ID", + "INSTANT_ARTICLE_PAGE_ID", "PLACEMENT", "PLACEMENT_NAME", "PLATFORM", diff --git a/lib/facebook_ads/ad_objects/ad_set.rb b/lib/facebook_ads/ad_objects/ad_set.rb index 175e4b1c..8077b86a 100644 --- a/lib/facebook_ads/ad_objects/ad_set.rb +++ b/lib/facebook_ads/ad_objects/ad_set.rb @@ -27,6 +27,7 @@ module FacebookAds class AdSet < AdObject BID_STRATEGY = [ + "COST_CAP", "LOWEST_COST_WITHOUT_CAP", "LOWEST_COST_WITH_BID_CAP", "TARGET_COST", diff --git a/lib/facebook_ads/ad_objects/adgroup_placement_specific_review_feedback.rb b/lib/facebook_ads/ad_objects/adgroup_placement_specific_review_feedback.rb index 04e6c4ab..5c2804fe 100644 --- a/lib/facebook_ads/ad_objects/adgroup_placement_specific_review_feedback.rb +++ b/lib/facebook_ads/ad_objects/adgroup_placement_specific_review_feedback.rb @@ -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' diff --git a/lib/facebook_ads/ad_objects/business.rb b/lib/facebook_ads/ad_objects/business.rb index e7e45405..6db18bff 100644 --- a/lib/facebook_ads/ad_objects/business.rb +++ b/lib/facebook_ads/ad_objects/business.rb @@ -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", diff --git a/lib/facebook_ads/ad_objects/business_asset_group.rb b/lib/facebook_ads/ad_objects/business_asset_group.rb index 65dca2dc..1c913c20 100644 --- a/lib/facebook_ads/ad_objects/business_asset_group.rb +++ b/lib/facebook_ads/ad_objects/business_asset_group.rb @@ -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", diff --git a/lib/facebook_ads/ad_objects/business_creative_folder.rb b/lib/facebook_ads/ad_objects/business_creative_folder.rb index 2a36de8d..4187b644 100644 --- a/lib/facebook_ads/ad_objects/business_creative_folder.rb +++ b/lib/facebook_ads/ad_objects/business_creative_folder.rb @@ -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' diff --git a/lib/facebook_ads/ad_objects/campaign.rb b/lib/facebook_ads/ad_objects/campaign.rb index 359c2c4e..73425a45 100644 --- a/lib/facebook_ads/ad_objects/campaign.rb +++ b/lib/facebook_ads/ad_objects/campaign.rb @@ -27,6 +27,7 @@ module FacebookAds class Campaign < AdObject BID_STRATEGY = [ + "COST_CAP", "LOWEST_COST_WITHOUT_CAP", "LOWEST_COST_WITH_BID_CAP", "TARGET_COST", diff --git a/lib/facebook_ads/ad_objects/content_delivery_report.rb b/lib/facebook_ads/ad_objects/content_delivery_report.rb index 7ad590da..9b828cbc 100644 --- a/lib/facebook_ads/ad_objects/content_delivery_report.rb +++ b/lib/facebook_ads/ad_objects/content_delivery_report.rb @@ -29,6 +29,7 @@ class ContentDeliveryReport < AdObject PLATFORM = [ "AUDIENCE_NETWORK", "FACEBOOK", + "HIDDEN_AAA", "INSTAGRAM", "MESSENGER", "UNKNOWN", @@ -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", diff --git a/lib/facebook_ads/ad_objects/copyright_reference_container.rb b/lib/facebook_ads/ad_objects/copyright_reference_container.rb index 9737930b..e349da0b 100644 --- a/lib/facebook_ads/ad_objects/copyright_reference_container.rb +++ b/lib/facebook_ads/ad_objects/copyright_reference_container.rb @@ -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' diff --git a/lib/facebook_ads/ad_objects/dynamic_item_display_bundle.rb b/lib/facebook_ads/ad_objects/dynamic_item_display_bundle.rb deleted file mode 100644 index 4e8b5f2f..00000000 --- a/lib/facebook_ads/ad_objects/dynamic_item_display_bundle.rb +++ /dev/null @@ -1,43 +0,0 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. -# -# You are hereby granted a non-exclusive, worldwide, royalty-free license to use, -# copy, modify, and distribute this software in source code or binary form for use -# in connection with the web services and APIs provided by Facebook. -# -# As with any software that integrates with the Facebook platform, your use of -# this software is subject to the Facebook Platform Policy -# [http://developers.facebook.com/policy/]. This copyright notice shall be -# included in all copies or substantial portions of the software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -# FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -# COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -# IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN -# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - -# 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 DynamicItemDisplayBundle < AdObject - - field :additional_urls, 'hash' - field :description, 'string' - field :id, 'string' - field :name, 'string' - field :product_set, 'ProductSet' - field :text_tokens, 'hash' - field :url, 'string' - - has_edge :bundle_folders do |edge| - edge.get 'DynamicItemDisplayBundleFolder' - end - - end -end diff --git a/lib/facebook_ads/ad_objects/dynamic_item_display_bundle_folder.rb b/lib/facebook_ads/ad_objects/dynamic_item_display_bundle_folder.rb deleted file mode 100644 index 01f520fc..00000000 --- a/lib/facebook_ads/ad_objects/dynamic_item_display_bundle_folder.rb +++ /dev/null @@ -1,47 +0,0 @@ -# Copyright (c) 2017-present, Facebook, Inc. All rights reserved. -# -# You are hereby granted a non-exclusive, worldwide, royalty-free license to use, -# copy, modify, and distribute this software in source code or binary form for use -# in connection with the web services and APIs provided by Facebook. -# -# As with any software that integrates with the Facebook platform, your use of -# this software is subject to the Facebook Platform Policy -# [http://developers.facebook.com/policy/]. This copyright notice shall be -# included in all copies or substantial portions of the software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -# FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -# COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -# IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN -# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - -# 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 DynamicItemDisplayBundleFolder < AdObject - - field :categorization_criteria, 'string' - field :id, 'string' - field :name, 'string' - field :product_catalog, 'ProductCatalog' - field :product_set, 'ProductSet' - field :valid_labels, 'map>' - - has_edge :bundles do |edge| - edge.delete do |api| - api.has_param :bundle, 'string' - end - edge.post 'DynamicItemDisplayBundleFolder' do |api| - api.has_param :bundle, 'string' - end - end - - end -end diff --git a/lib/facebook_ads/ad_objects/event.rb b/lib/facebook_ads/ad_objects/event.rb index 8d22c925..5c5b77ab 100644 --- a/lib/facebook_ads/ad_objects/event.rb +++ b/lib/facebook_ads/ad_objects/event.rb @@ -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' diff --git a/lib/facebook_ads/ad_objects/media_fingerprint.rb b/lib/facebook_ads/ad_objects/media_fingerprint.rb index d9637821..7b7f32c4 100644 --- a/lib/facebook_ads/ad_objects/media_fingerprint.rb +++ b/lib/facebook_ads/ad_objects/media_fingerprint.rb @@ -34,12 +34,6 @@ class MediaFingerprint < AdObject "SONGTRACK", ] - FINGERPRINT_VALIDITY = [ - "EXPIRED", - "EXPIRING", - "VALID", - ] - field :duration_in_sec, 'double' field :fingerprint_content_type, 'string' diff --git a/lib/facebook_ads/ad_objects/page.rb b/lib/facebook_ads/ad_objects/page.rb index 55fc2e62..1ad2d3cb 100644 --- a/lib/facebook_ads/ad_objects/page.rb +++ b/lib/facebook_ads/ad_objects/page.rb @@ -94,6 +94,7 @@ class Page < AdObject TEMPORARY_STATUS = [ "DIFFERENTLY_OPEN", + "NO_DATA", "OPERATING_AS_USUAL", "TEMPORARILY_CLOSED", ] @@ -110,8 +111,9 @@ class Page < 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", @@ -135,8 +137,9 @@ class Page < 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", @@ -148,6 +151,60 @@ class Page < AdObject "VIEW_MONETIZATION_INSIGHTS", ] + BACKDATED_TIME_GRANULARITY = [ + "day", + "hour", + "min", + "month", + "none", + "year", + ] + + CHECKIN_ENTRY_POINT = [ + "BRANDING_CHECKIN", + "BRANDING_OTHER", + "BRANDING_PHOTO", + "BRANDING_STATUS", + ] + + FORMATTING = [ + "MARKDOWN", + "PLAINTEXT", + ] + + PLACE_ATTACHMENT_SETTING = [ + "1", + "2", + ] + + POST_SURFACES_BLACKLIST = [ + "1", + "2", + "3", + "4", + "5", + ] + + POSTING_TO_REDSPACE = [ + "disabled", + "enabled", + ] + + TARGET_SURFACE = [ + "STORY", + "TIMELINE", + ] + + UNPUBLISHED_CONTENT_TYPE = [ + "ADS_POST", + "DRAFT", + "INLINE_CREATED", + "PUBLISHED", + "REVIEWABLE_BRANDED_CONTENT", + "SCHEDULED", + "SCHEDULED_RECURRING", + ] + PUBLISH_STATUS = [ "DRAFT", "LIVE", @@ -330,6 +387,7 @@ class Page < AdObject field :current_location, 'string' field :description, 'string' field :description_html, 'string' + field :differently_open_offerings, 'hash' field :directed_by, 'string' field :display_subtext, 'string' field :displayed_message_response_time, 'string' @@ -623,7 +681,7 @@ class Page < AdObject api.has_param :show_expired, 'bool' api.has_param :with, { enum: -> { PagePost::WITH }} end - edge.post 'PagePost' do |api| + edge.post 'Page' do |api| api.has_param :actions, 'object' api.has_param :adaptive_type, 'string' api.has_param :album_id, 'string' @@ -637,10 +695,10 @@ class Page < AdObject api.has_param :attached_media, { list: 'object' } api.has_param :audience_exp, 'bool' api.has_param :backdated_time, 'datetime' - api.has_param :backdated_time_granularity, { enum: -> { PagePost::BACKDATED_TIME_GRANULARITY }} + api.has_param :backdated_time_granularity, { enum: -> { Page::BACKDATED_TIME_GRANULARITY }} api.has_param :call_to_action, 'object' api.has_param :caption, 'string' - api.has_param :checkin_entry_point, { enum: -> { PagePost::CHECKIN_ENTRY_POINT }} + api.has_param :checkin_entry_point, { enum: -> { Page::CHECKIN_ENTRY_POINT }} api.has_param :child_attachments, { list: 'object' } api.has_param :client_mutation_id, 'string' api.has_param :composer_entry_picker, 'string' @@ -661,7 +719,7 @@ class Page < AdObject api.has_param :expanded_height, 'int' api.has_param :expanded_width, 'int' api.has_param :feed_targeting, 'object' - api.has_param :formatting, { enum: -> { PagePost::FORMATTING }} + api.has_param :formatting, { enum: -> { Page::FORMATTING }} api.has_param :fun_fact_prompt_id, 'int' api.has_param :fun_fact_toastee_id, 'int' api.has_param :has_nickname, 'bool' @@ -698,11 +756,11 @@ class Page < AdObject api.has_param :page_recommendation, 'string' api.has_param :picture, 'string' api.has_param :place, 'object' - api.has_param :place_attachment_setting, { enum: -> { PagePost::PLACE_ATTACHMENT_SETTING }} + api.has_param :place_attachment_setting, { enum: -> { Page::PLACE_ATTACHMENT_SETTING }} api.has_param :place_list, 'string' api.has_param :place_list_data, { list: 'string' } - api.has_param :post_surfaces_blacklist, { list: { enum: -> { PagePost::POST_SURFACES_BLACKLIST }} } - api.has_param :posting_to_redspace, { enum: -> { PagePost::POSTING_TO_REDSPACE }} + api.has_param :post_surfaces_blacklist, { list: { enum: -> { Page::POST_SURFACES_BLACKLIST }} } + api.has_param :posting_to_redspace, { enum: -> { Page::POSTING_TO_REDSPACE }} api.has_param :privacy, 'string' api.has_param :prompt_id, 'string' api.has_param :prompt_tracking_string, 'string' @@ -722,7 +780,7 @@ class Page < AdObject api.has_param :sponsor_relationship, 'int' api.has_param :suggested_place_id, 'object' api.has_param :tags, { list: 'int' } - api.has_param :target_surface, { enum: -> { PagePost::TARGET_SURFACE }} + api.has_param :target_surface, { enum: -> { Page::TARGET_SURFACE }} api.has_param :targeting, 'object' api.has_param :text_format_metadata, 'string' api.has_param :text_format_preset_id, 'string' @@ -732,7 +790,7 @@ class Page < AdObject api.has_param :time_since_original_post, 'int' api.has_param :title, 'string' api.has_param :tracking_info, 'string' - api.has_param :unpublished_content_type, { enum: -> { PagePost::UNPUBLISHED_CONTENT_TYPE }} + api.has_param :unpublished_content_type, { enum: -> { Page::UNPUBLISHED_CONTENT_TYPE }} api.has_param :user_selected_tags, 'bool' api.has_param :video_start_time_ms, 'int' api.has_param :viewer_coordinates, 'object' @@ -872,6 +930,7 @@ class Page < AdObject edge.get 'Page' edge.post 'Page' do |api| api.has_param :always_open, 'bool' + api.has_param :differently_open_offerings, 'hash' api.has_param :hours, 'hash' api.has_param :ignore_warnings, 'bool' api.has_param :location, 'object' @@ -886,13 +945,13 @@ class Page < AdObject api.has_param :store_location_descriptor, 'string' api.has_param :store_name, 'string' api.has_param :store_number, 'int' + api.has_param :temporary_status, { enum: -> { Page::TEMPORARY_STATUS }} api.has_param :website, 'string' end end has_edge :media_fingerprints do |edge| edge.get 'MediaFingerprint' do |api| - api.has_param :fingerprint_validity, { enum: -> { MediaFingerprint::FINGERPRINT_VALIDITY }} api.has_param :universal_content_id, 'string' end edge.post 'MediaFingerprint' do |api| @@ -1049,6 +1108,7 @@ class Page < AdObject api.has_param :initial_view_heading_override_degrees, 'int' api.has_param :initial_view_pitch_override_degrees, 'int' api.has_param :initial_view_vertical_fov_override_degrees, 'int' + api.has_param :instagram_product_tags, { list: 'hash' } api.has_param :ios_bundle_id, 'string' api.has_param :is_explicit_location, 'bool' api.has_param :is_explicit_place, 'bool' @@ -1066,6 +1126,7 @@ class Page < AdObject api.has_param :og_phrase, 'string' api.has_param :og_set_profile_badge, 'bool' api.has_param :og_suggestion_mechanism, 'string' + api.has_param :parent_media_id, 'int' api.has_param :place, 'object' api.has_param :privacy, 'string' api.has_param :profile_id, 'int' @@ -1289,6 +1350,10 @@ class Page < AdObject api.has_param :selected_rule_id, 'string' api.has_param :source, { enum: -> { VideoCopyrightRule::SOURCE }} end + edge.post 'VideoCopyrightRule' do |api| + api.has_param :condition_groups, { list: 'object' } + api.has_param :name, 'string' + end end has_edge :video_copyrights do |edge| @@ -1298,7 +1363,6 @@ class Page < AdObject api.has_param :copyright_content_id, 'string' api.has_param :excluded_ownership_countries, { list: 'string' } api.has_param :excluded_ownership_segments, { list: 'object' } - api.has_param :fingerprint_id, 'string' api.has_param :is_reference_disabled, 'bool' api.has_param :is_reference_video, 'bool' api.has_param :monitoring_type, { enum: -> { VideoCopyright::MONITORING_TYPE }} diff --git a/lib/facebook_ads/ad_objects/page_call_to_action.rb b/lib/facebook_ads/ad_objects/page_call_to_action.rb index ad12529d..441fe50b 100644 --- a/lib/facebook_ads/ad_objects/page_call_to_action.rb +++ b/lib/facebook_ads/ad_objects/page_call_to_action.rb @@ -40,6 +40,7 @@ class PageCallToAction < AdObject IPHONE_DESTINATION_TYPE = [ "APP_DEEPLINK", + "BECOME_A_VOLUNTEER", "EMAIL", "FACEBOOK_APP", "MESSENGER", diff --git a/lib/facebook_ads/ad_objects/page_post.rb b/lib/facebook_ads/ad_objects/page_post.rb index 2f92bd0a..83f653bf 100644 --- a/lib/facebook_ads/ad_objects/page_post.rb +++ b/lib/facebook_ads/ad_objects/page_post.rb @@ -26,6 +26,10 @@ module FacebookAds # pull request for this class. class PagePost < AdObject + WITH = [ + "LOCATION", + ] + BACKDATED_TIME_GRANULARITY = [ "day", "hour", @@ -35,55 +39,6 @@ class PagePost < AdObject "year", ] - CHECKIN_ENTRY_POINT = [ - "BRANDING_CHECKIN", - "BRANDING_OTHER", - "BRANDING_PHOTO", - "BRANDING_STATUS", - ] - - FORMATTING = [ - "MARKDOWN", - "PLAINTEXT", - ] - - PLACE_ATTACHMENT_SETTING = [ - "1", - "2", - ] - - POST_SURFACES_BLACKLIST = [ - "1", - "2", - "3", - "4", - "5", - ] - - POSTING_TO_REDSPACE = [ - "disabled", - "enabled", - ] - - TARGET_SURFACE = [ - "STORY", - "TIMELINE", - ] - - UNPUBLISHED_CONTENT_TYPE = [ - "ADS_POST", - "DRAFT", - "INLINE_CREATED", - "PUBLISHED", - "REVIEWABLE_BRANDED_CONTENT", - "SCHEDULED", - "SCHEDULED_RECURRING", - ] - - WITH = [ - "LOCATION", - ] - FEED_STORY_VISIBILITY = [ "hidden", "visible", diff --git a/lib/facebook_ads/ad_objects/product_catalog.rb b/lib/facebook_ads/ad_objects/product_catalog.rb index 7ddd5094..715b3586 100644 --- a/lib/facebook_ads/ad_objects/product_catalog.rb +++ b/lib/facebook_ads/ad_objects/product_catalog.rb @@ -115,23 +115,6 @@ class ProductCatalog < AdObject end end - has_edge :bundle_folders do |edge| - edge.post 'DynamicItemDisplayBundleFolder' do |api| - api.has_param :name, 'string' - end - end - - has_edge :bundles do |edge| - edge.post 'DynamicItemDisplayBundle' do |api| - api.has_param :additional_urls, 'hash' - api.has_param :description, 'string' - api.has_param :name, 'string' - api.has_param :product_set, 'string' - api.has_param :text_tokens, 'hash' - api.has_param :url, 'string' - end - end - has_edge :categories do |edge| edge.get 'ProductCatalogCategory' do |api| api.has_param :categorization_criteria, { enum: -> { ProductCatalogCategory::CATEGORIZATION_CRITERIA }} diff --git a/lib/facebook_ads/ad_objects/reach_frequency_prediction.rb b/lib/facebook_ads/ad_objects/reach_frequency_prediction.rb index 5c4aeaca..f666021e 100644 --- a/lib/facebook_ads/ad_objects/reach_frequency_prediction.rb +++ b/lib/facebook_ads/ad_objects/reach_frequency_prediction.rb @@ -139,7 +139,6 @@ class ReachFrequencyPrediction < AdObject field :timezone_id, 'int' field :timezone_name, 'string' field :topline_id, 'int' - field :tv_viewer_cluster_map, 'map' field :video_view_length_constraint, 'int' field :viewtag, 'string' field :action, { enum: -> { ACTION }} diff --git a/lib/facebook_ads/ad_objects/video_copyright.rb b/lib/facebook_ads/ad_objects/video_copyright.rb index fa31bcfb..67b5bb9b 100644 --- a/lib/facebook_ads/ad_objects/video_copyright.rb +++ b/lib/facebook_ads/ad_objects/video_copyright.rb @@ -51,7 +51,6 @@ class VideoCopyright < AdObject field :reference_file, 'CopyrightReferenceContainer' field :reference_file_disabled, 'bool' field :reference_file_disabled_by_ops, 'bool' - field :reference_file_expired, 'bool' field :reference_owner_id, 'string' field :rule_ids, { list: 'VideoCopyrightRule' } field :tags, { list: 'string' } diff --git a/lib/facebook_ads/version.rb b/lib/facebook_ads/version.rb index 4183a7e5..e7879d77 100644 --- a/lib/facebook_ads/version.rb +++ b/lib/facebook_ads/version.rb @@ -19,6 +19,6 @@ # FB:AUTOGEN module FacebookAds - VERSION = '0.6.0.2' + VERSION = '0.6.0.3' API_VERSION = '6.0' end