I am trying to fetch insights of bulk campaigns, ads and adsets but i can only fetch data of default date_preset value which is i guess 7 days or something. When i use sandbox account i get data value but after using original account i do not receive any data since the date_preset param is missing. This is my request and i cant figure out how to add date_preset param in it.
me?fields=adaccounts{campaigns{status,spend_cap,account_id,can_use_spend_cap,start_time,stop_time,name,id,adsets{id,name,bid_amount,billing_event,daily_budget,end_time,lifetime_budget,optimization_goal,promoted_object,start_time,targetingsentencelines{params,id,targetingsentencelines},insights,ads{insights{frequency,impressions,reach,social_reach,social_spend,social_impressions,spend,cpm,cost_per_total_action,ad_id},id,name}},insights{frequency,impressions,reach,social_clicks,social_reach,social_impressions,social_spend,spend,cpm,cost_per_total_action}},activities},id
You can use it in graph api explorer it will return proper insights if you are using sandbox account. I am using the
api version 2.12