Ads api Asynchronous Analytics fails authorization


#1

Hi,

When I try to make a Asynchronous analytics POST request, I get a error message saying “UNAUTHORIZED_ACCESS”. I was able to make synchronous analytics call with the same keys and token. My whitelisted app (app id: 14966091) has both read and write permissions

https://ads-api.twitter.com/3/stats/jobs/accounts/xxxx?entity=LINE_ITEM&entity_ids=bc0px&start_time=2018-03-01&end_time=2018-03-31&granularity=DAY&placement=ALL_ON_TWITTER&metric_groups=ENGAGEMENT

Response:

{
    "errors": [
        {
            "code": "UNAUTHORIZED_ACCESS",
            "message": "This request is not properly authenticated"
        }
    ],
    "request": {
        "params": {}
    }
}

Thanks,
Prasad


#2

@PBiruduraju: Please see this post for some additional information. Not sure if that’s the issue you’re facing based on the URL you’ve provided, though.