GET request resulting in 200 response:
GET request resulting in 401 UNAUTHORIZED_ACCESS error:
The only difference between the two is that in the second one I’m using the timestamp as defined in the documentation (ISO 8601: https://dev.twitter.com/ads/reference/1/get/stats/accounts/%3Aaccount_id). But, unexpectedly that request returns:
code: 'UNAUTHORIZED_ACCESS', message: 'This request is not properly authenticated'
Updating just the timestamps so they no longer include the time part (so they are formatted like this:
YYYY-MM-DD), does result in a 200 response though.
I would expect an invalid date format error of some sorts, not unauthorized access.