I’m attempting to query Ad Group stats API for an Account for a full day’s worth of data.
The Facebook documentation recommendation is to specify start and end dates along with times (in UTC) as relates to the ad_account time zone, as in the following examples:
1) Pacific Time (12/8/2012):
/adgroupstats?start_time=2012-12-08T08:00:00&end_time=2012-12-09T08:00:00&
stats_mode=with_delivery&include_deleted=true&access_token=
2) Daylight savings (8/8/2012):
/adgroupstats?start_time=2012-08-08T07:00:00&end_time=2012-08-09T07:00:00
&stats_mode=with_delivery&include_deleted=true&access_token=
I'm looking for a better way to account for daylight savings time, so I'd like to know if excluding the time entirely is an option, since I'm just after the full day.
In testing, I've found the following to return the same results as option 2, but I'm wondering if this is a reliable method, since it is undocumented:
/adgroupstats?start_time=2012-08-08T00:00:00&end_time=2012-08-09T00:00:00&
stats_mode=with_delivery&include_deleted=true&access_token=