{
  "api": {
    "version": "v25.0",
    "baseUrl": "https://graph.facebook.com"
  },
  "ad_account": {
    "endpoints": "152337878727146/client_ad_accounts,152337878727146/owned_ad_accounts",
    "fields": ["id", "name", "business", "currency", "created_time"],
    "tablename": "stage.meta_ad_account",
    "limit": "500"
  },
  "campaign": {
    "endpoint": "campaigns",
    "fields": ["id", "name", "created_time", "status", "effective_status", "configured_status", "objective", "primary_attribution", "start_time", "stop_time", "buying_type"],
    "tablename": "stage.meta_campaign",
    "filtering": "[{'field':'campaign.effective_status','operator':'IN','value':['ACTIVE','PAUSED','DELETED','PENDING_REVIEW','DISAPPROVED','PREAPPROVED','PENDING_BILLING_INFO','CAMPAIGN_PAUSED','ARCHIVED','ADSET_PAUSED','IN_PROCESS','WITH_ISSUES']}]",
    "limit": "500"
  },
  "adset": {
    "endpoint": "adsets",
    "fields": ["id", "name", "campaign_id", "created_time", "status", "effective_status", "configured_status", "destination_type", "optimization_goal", "start_time", "end_time"],
    "tablename": "stage.meta_adset",
    "filtering": "[{'field':'adset.effective_status','operator':'IN','value':['ACTIVE','PAUSED','DELETED','PENDING_REVIEW','DISAPPROVED','PREAPPROVED','PENDING_BILLING_INFO','CAMPAIGN_PAUSED','ARCHIVED','ADSET_PAUSED','IN_PROCESS','WITH_ISSUES']}]",
    "limit": "500"
  },
  "ad": {
    "endpoint": "ads",
    "fields": ["id", "adset_id", "name", "status", "effective_status", "preview_shareable_link"],
    "tablename": "stage.meta_ad",
    "filtering": "[{'field':'ad.effective_status','operator':'IN','value':['ACTIVE','PAUSED','DELETED','PENDING_REVIEW','DISAPPROVED','PREAPPROVED','PENDING_BILLING_INFO','CAMPAIGN_PAUSED','ARCHIVED','ADSET_PAUSED','IN_PROCESS','WITH_ISSUES']}]",
    "limit": "500"
  },
  "ad_stats": {
    "endpoint": "insights",
    "fields": ["ad_id", "impressions", "clicks", "outbound_clicks", "inline_link_clicks", "video_play_actions", "video_p25_watched_actions", "video_p50_watched_actions", "video_p75_watched_actions", "video_p100_watched_actions", "video_thruplay_watched_actions", "video_avg_time_watched_actions", "spend", "date_start"],
    "breakdowns": "impression_device,publisher_platform",
    "tablename": "stage.meta_ad_stats",
    "filtering": "[{field:'ad.impressions',operator:'GREATER_THAN',value:0},{'field':'ad.effective_status','operator':'IN','value':['ACTIVE','PAUSED','DELETED','PENDING_REVIEW','DISAPPROVED','PREAPPROVED','PENDING_BILLING_INFO','CAMPAIGN_PAUSED','ARCHIVED','ADSET_PAUSED','IN_PROCESS','WITH_ISSUES']}]",
    "limit": "1000"
  },
  "conversion_stats": {
    "endpoint": "insights",
    "fields": ["ad_id", "conversions", "date_start"],
    "breakdowns": "impression_device,publisher_platform",
    "tablename": "stage.meta_conversion_stats",
    "filtering": "[{'field':'ad.effective_status','operator':'IN','value':['ACTIVE','PAUSED','DELETED','PENDING_REVIEW','DISAPPROVED','PREAPPROVED','PENDING_BILLING_INFO','CAMPAIGN_PAUSED','ARCHIVED','ADSET_PAUSED','IN_PROCESS','WITH_ISSUES']}]",
    "limit": "1000"
  },
  "fbk_page_insights": {
    "endpoint": "me/accounts",
    "fields": ["id", "name", "access_token", "instagram_business_account", "link", "followers_count", "fan_count", "rating_count", "talking_about_count"],
    "tablename": "stage.fbk_page_insights"
  },
  "fbk_page_insights_daily": {
    "endpoint": "insights",
    "fields": [
      "page_total_media_view_unique",
      "page_media_view",
      "page_actions_post_reactions_like_total",
      "page_actions_post_reactions_love_total",
      "page_actions_post_reactions_wow_total",
      "page_actions_post_reactions_haha_total",
      "page_actions_post_reactions_sorry_total",
      "page_actions_post_reactions_anger_total",
      "page_video_views",
      "page_views_total",
      "page_total_actions",
      "page_post_engagements",
      "page_follows"
    ],
    "tablename": "stage.fbk_page_insights_daily"
  },
  "ins_page_insights_daily": {
    "endpoint": "insights",
    "fields": ["reach", "total_interactions", "accounts_engaged", "likes", "comments", "shares", "profile_views", "follows_and_unfollows", "views"],
    "tablename": "stage.ins_page_insights_daily"
  },
  "ins_page_insights": {
    "fields": ["id", "name", "followers_count"],
    "tablename": "stage.ins_page_insights"
  },
  "ins_media": {
    "endpoint": "media",
    "fields": ["id", "caption", "media_type", "timestamp", "permalink", "like_count", "comments_count"],
    "tablename": "stage.ins_media",
    "limit": "100"
  },
  "ins_media_insights": {
    "endpoint": "insights",
    "fields": ["reach", "likes", "comments", "shares", "saved", "total_interactions", "views", "total_likes", "total_comments", "total_views", "profile_visits", "profile_activity", "follows", "reposts"],
    "tablename": "stage.ins_media_insights"
  }
}
