DatePeriod for Facebook Ads Insights API -


i able facebook campaign insights using marketing api, can said period of time. code below gives data last 30 days. how can dropdown data user input period (eg. 60days or 1 day or 1 week etc). please let me know code. per developers site, available presets: date_preset enum{today, yesterday, last_3_days, this_week, last_week, last_7_days, last_14_days, last_28_days, last_30_days, last_90_days, this_month, last_month, this_quarter, last_3_months, lifetime}

$params = array (     'date_preset'=>'last_30_days',     'data_columns'=>"['adgroup_id','actions','reach']", );  ?> 

you need use time range field. example time_range={"since":"2016‌​-03-15","until":"2016-03-15"} per this question


Comments

Popular posts from this blog

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

configurationsection - activeMq-5.13.3 setup configurations for wildfly 10.0.0 -