I have just updated our Ads API to v4, and, I don’t know if this is related to the v4 update, but the synchronous endpoint for getting the stats does not return data even for 7 day intervals which do have data in the web interface.
Account ID: 18ce53xfoph
array( 'data_type' => 'stats', 'time_series_length' => 1, 'data' => array ( 0 => array( 'id' => 'ivs1r', 'id_data' => array ( 0 => array( 'segment' => NULL, 'metrics' => array( 'billed_charge_local_micro' => NULL, 'billed_engagements' => NULL, ), ), ), ), ), 'request' => array( 'params' => array( 'start_time' => '2019-02-21T22:00:00Z', 'segmentation_type' => NULL, 'entity_ids' => array ( 0 => 'ivs1r', ), 'end_time' => '2019-02-28T22:00:00Z', 'country' => NULL, 'placement' => 'ALL_ON_TWITTER', 'granularity' => 'TOTAL', 'entity' => 'FUNDING_INSTRUMENT', 'platform' => NULL, 'metric_groups' => array ( 0 => 'BILLING', ), ), ), )
The interval of time is exactly 7 days. I have also tried with 6 days just to be sure, but the result is the same.
The funding instrument for which I’m trying to get the data is not able to fund because it is
EXPIRED, but its status is
deleted: false, and I assume I should be able to get the data for it.
Does anyone have any ideas about what might be happening?