lib/facebook_ads/ad_objects/ads_insights.rb (233 lines of code) (raw):
# 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 AdsInsights < AdObject
ACTION_ATTRIBUTION_WINDOWS = [
"1d_click",
"1d_view",
"28d_click",
"28d_view",
"7d_click",
"7d_view",
"dda",
"default",
"skan_click",
"skan_view",
]
ACTION_BREAKDOWNS = [
"action_canvas_component_name",
"action_carousel_card_id",
"action_carousel_card_name",
"action_destination",
"action_device",
"action_reaction",
"action_target_id",
"action_type",
"action_video_sound",
"action_video_type",
]
ACTION_REPORT_TIME = [
"conversion",
"impression",
"mixed",
]
BREAKDOWNS = [
"ad_format_asset",
"age",
"app_id",
"body_asset",
"call_to_action_asset",
"country",
"description_asset",
"device_platform",
"dma",
"frequency_value",
"gender",
"hourly_stats_aggregated_by_advertiser_time_zone",
"hourly_stats_aggregated_by_audience_time_zone",
"image_asset",
"impression_device",
"link_url_asset",
"place_page_id",
"platform_position",
"product_id",
"publisher_platform",
"region",
"skan_conversion_id",
"title_asset",
"video_asset",
]
DATE_PRESET = [
"data_maximum",
"last_14d",
"last_28d",
"last_30d",
"last_3d",
"last_7d",
"last_90d",
"last_month",
"last_quarter",
"last_week_mon_sun",
"last_week_sun_sat",
"last_year",
"maximum",
"this_month",
"this_quarter",
"this_week_mon_today",
"this_week_sun_today",
"this_year",
"today",
"yesterday",
]
LEVEL = [
"account",
"ad",
"adset",
"campaign",
]
SUMMARY_ACTION_BREAKDOWNS = [
"action_canvas_component_name",
"action_carousel_card_id",
"action_carousel_card_name",
"action_destination",
"action_device",
"action_reaction",
"action_target_id",
"action_type",
"action_video_sound",
"action_video_type",
]
field :account_currency, 'string'
field :account_id, 'string'
field :account_name, 'string'
field :action_values, { list: 'AdsActionStats' }
field :actions, { list: 'AdsActionStats' }
field :ad_bid_value, 'string'
field :ad_click_actions, { list: 'AdsActionStats' }
field :ad_id, 'string'
field :ad_impression_actions, { list: 'AdsActionStats' }
field :ad_name, 'string'
field :adset_bid_value, 'string'
field :adset_end, 'string'
field :adset_id, 'string'
field :adset_name, 'string'
field :adset_start, 'string'
field :age_targeting, 'string'
field :attribution_setting, 'string'
field :auction_bid, 'string'
field :auction_competitiveness, 'string'
field :auction_max_competitor_bid, 'string'
field :buying_type, 'string'
field :campaign_id, 'string'
field :campaign_name, 'string'
field :canvas_avg_view_percent, 'string'
field :canvas_avg_view_time, 'string'
field :catalog_segment_actions, { list: 'AdsActionStats' }
field :catalog_segment_value, { list: 'AdsActionStats' }
field :catalog_segment_value_mobile_purchase_roas, { list: 'AdsActionStats' }
field :catalog_segment_value_omni_purchase_roas, { list: 'AdsActionStats' }
field :catalog_segment_value_website_purchase_roas, { list: 'AdsActionStats' }
field :clicks, 'string'
field :conversion_rate_ranking, 'string'
field :conversion_values, { list: 'AdsActionStats' }
field :conversions, { list: 'AdsActionStats' }
field :converted_product_quantity, { list: 'AdsActionStats' }
field :converted_product_value, { list: 'AdsActionStats' }
field :cost_per_15_sec_video_view, { list: 'AdsActionStats' }
field :cost_per_2_sec_continuous_video_view, { list: 'AdsActionStats' }
field :cost_per_action_type, { list: 'AdsActionStats' }
field :cost_per_ad_click, { list: 'AdsActionStats' }
field :cost_per_conversion, { list: 'AdsActionStats' }
field :cost_per_dda_countby_convs, 'string'
field :cost_per_estimated_ad_recallers, 'string'
field :cost_per_inline_link_click, 'string'
field :cost_per_inline_post_engagement, 'string'
field :cost_per_one_thousand_ad_impression, { list: 'AdsActionStats' }
field :cost_per_outbound_click, { list: 'AdsActionStats' }
field :cost_per_thruplay, { list: 'AdsActionStats' }
field :cost_per_unique_action_type, { list: 'AdsActionStats' }
field :cost_per_unique_click, 'string'
field :cost_per_unique_conversion, { list: 'AdsActionStats' }
field :cost_per_unique_inline_link_click, 'string'
field :cost_per_unique_outbound_click, { list: 'AdsActionStats' }
field :cpc, 'string'
field :cpm, 'string'
field :cpp, 'string'
field :created_time, 'string'
field :ctr, 'string'
field :date_start, 'string'
field :date_stop, 'string'
field :dda_countby_convs, 'string'
field :dda_results, { list: 'object' }
field :engagement_rate_ranking, 'string'
field :estimated_ad_recall_rate, 'string'
field :estimated_ad_recall_rate_lower_bound, 'string'
field :estimated_ad_recall_rate_upper_bound, 'string'
field :estimated_ad_recallers, 'string'
field :estimated_ad_recallers_lower_bound, 'string'
field :estimated_ad_recallers_upper_bound, 'string'
field :frequency, 'string'
field :full_view_impressions, 'string'
field :full_view_reach, 'string'
field :gender_targeting, 'string'
field :impressions, 'string'
field :inline_link_click_ctr, 'string'
field :inline_link_clicks, 'string'
field :inline_post_engagement, 'string'
field :instant_experience_clicks_to_open, 'string'
field :instant_experience_clicks_to_start, 'string'
field :instant_experience_outbound_clicks, { list: 'AdsActionStats' }
field :interactive_component_tap, { list: 'AdsActionStats' }
field :labels, 'string'
field :location, 'string'
field :mobile_app_purchase_roas, { list: 'AdsActionStats' }
field :objective, 'string'
field :optimization_goal, 'string'
field :outbound_clicks, { list: 'AdsActionStats' }
field :outbound_clicks_ctr, { list: 'AdsActionStats' }
field :place_page_name, 'string'
field :purchase_roas, { list: 'AdsActionStats' }
field :qualifying_question_qualify_answer_rate, 'string'
field :quality_ranking, 'string'
field :quality_score_ectr, 'string'
field :quality_score_ecvr, 'string'
field :quality_score_organic, 'string'
field :reach, 'string'
field :social_spend, 'string'
field :spend, 'string'
field :total_postbacks, 'string'
field :unique_actions, { list: 'AdsActionStats' }
field :unique_clicks, 'string'
field :unique_conversions, { list: 'AdsActionStats' }
field :unique_ctr, 'string'
field :unique_inline_link_click_ctr, 'string'
field :unique_inline_link_clicks, 'string'
field :unique_link_clicks_ctr, 'string'
field :unique_outbound_clicks, { list: 'AdsActionStats' }
field :unique_outbound_clicks_ctr, { list: 'AdsActionStats' }
field :unique_video_continuous_2_sec_watched_actions, { list: 'AdsActionStats' }
field :unique_video_view_15_sec, { list: 'AdsActionStats' }
field :updated_time, 'string'
field :video_15_sec_watched_actions, { list: 'AdsActionStats' }
field :video_30_sec_watched_actions, { list: 'AdsActionStats' }
field :video_avg_time_watched_actions, { list: 'AdsActionStats' }
field :video_continuous_2_sec_watched_actions, { list: 'AdsActionStats' }
field :video_p100_watched_actions, { list: 'AdsActionStats' }
field :video_p25_watched_actions, { list: 'AdsActionStats' }
field :video_p50_watched_actions, { list: 'AdsActionStats' }
field :video_p75_watched_actions, { list: 'AdsActionStats' }
field :video_p95_watched_actions, { list: 'AdsActionStats' }
field :video_play_actions, { list: 'AdsActionStats' }
field :video_play_curve_actions, { list: 'object' }
field :video_play_retention_0_to_15s_actions, { list: 'object' }
field :video_play_retention_20_to_60s_actions, { list: 'object' }
field :video_play_retention_graph_actions, { list: 'object' }
field :video_thruplay_watched_actions, { list: 'AdsActionStats' }
field :video_time_watched_actions, { list: 'AdsActionStats' }
field :website_ctr, { list: 'AdsActionStats' }
field :website_purchase_roas, { list: 'AdsActionStats' }
field :wish_bid, 'string'
has_no_id
has_no_get
has_no_post
has_no_delete
end
end