Trying to run report from api but receive AuthenticationError.NOT_ADS_USER however the user is an adwords user - help please

56 views
Skip to first unread message

Steven Huddleston

unread,
Jun 25, 2018, 3:11:19 PM6/25/18
to AdWords API and Google Ads API Forum
I am trying to pull adwords report data into salesforce and I have an OAUTH access token and in the header I am including

        req.setHeader('Authorization', 'bearer '+ accesstoken)    
        req.setHeader('Content-Type', 'application/x-www-form-urlencoded' );
        req.setHeader('developerToken', 'XXXXXXX' );
        req.setHeader('clientCustomerId', 'XXXXX' );
        req.setHeader('client_id', 'XXXXXX' );
        req.setHeader('Client_secret', 'XXXXXx' );
        req.setHeader('user-agent' ,XXXX');
        req.setHeader('reportDefinition', 'https://adwords.google.com/api/adwords/cm/v201806' );
        req.setHeader('Cache-Control' , 'no-cache');

but I am getting AuthenticationError.NOT_ADS_USER - I have tried having the clientCustomerId as both MCC level id and also individual account level but the error continues. please can anyone help?

Thanks

Steven

Peter Oliquino (AdWords API Team)

unread,
Jun 26, 2018, 2:30:15 AM6/26/18
to AdWords API and Google Ads API Forum
Hi Steven,

The AuthenticationError.NOT_ADS_USER error that you are encountering indicates that the email used to generate your OAuth2 credentials is not associated to any AdWords account. To resolve this, you need to recreate your OAuth2 credentials using an email address which has access to your AdWords account.

Let me know if this helps.

Thanks and regards,
Peter
AdWords API Team

Steven Huddleston

unread,
Jun 26, 2018, 3:17:39 AM6/26/18
to AdWords API and Google Ads API Forum
Hi, 

Thank you for your reply. I have tried this and I am still receiving the same error. the account being used was already associated with adwords at the point of settings up the Oauth on both occasions. 

thanks

Steve 

Peter Oliquino (AdWords API Team)

unread,
Jun 26, 2018, 4:14:03 AM6/26/18
to AdWords API and Google Ads API Forum
Hi Steve,

So I can further investigate, could you provide your clientCustomerId and the email you used to generate the said credentials? You may reply to me using the Reply privately to author option.

son.l...@amanotes.com

unread,
Sep 5, 2018, 5:48:47 AM9/5/18
to AdWords API and Google Ads API Forum
Hi Peter, 

I met the same error, could you check for my credentials and MCC account?

Thanks and Best Regards.

Ngoc Son

Nadine Sundquist (AdWords API Team)

unread,
Sep 5, 2018, 9:51:36 AM9/5/18
to AdWords API and Google Ads API Forum
Hello Ngoc Son,

Could you please do me a big favor and start a new thread? There's a chance that your issue is a bit different, and it may be confusing to keep it on this same thread. One of my teammates will get back to you on that new forum thread.

Thanks,
Nadine, AdWords API Team
Reply all
Reply to author
Forward
0 new messages