Hi - a quick query, while querying ads analytics I can get stats for a full day
gives me the metrics but the moment I want it for an hour it doesn’t accept the format and keeps giving UNAUTHORIZED_ACCESS response
Any Idea what I could be doing wrong, the syntax seems to be correct but can’t to get the query working for intervals less than a day.
Thanks in Advance
Have you tried to repro this with the twurl command line tool? At a glance your format looks correct but I would check for things like unintended symbols or copy/paste problems and using either twurl or SDK can narrow those down.
Thanks for the reply, yup, tried everything including postman and cmd line curl…just doesn’t work. Not sure if the account needs to have any special approval or authorization to query data less granular than a day?
Two more things to look at, @krnK111:
Given your original comment, you may want to focus on the second.
Hope this helps!
Thanks - this has helped, changing the : to %3A and then firing the query gets the results.
Wanted to also quickly ask (instead of creating another topic) if theres a way in the API to filter out expired campaigns somehow, so that means the status will be ACTIVE but they will still be expired??
I think the end_time in the response should be the expiry status set in the UI?