AuthenticationError.NOT_ADS_USER Error when integrate adWard to salesforce

47 views
Skip to first unread message

jitendra rawat

unread,
Nov 9, 2014, 9:00:39 AM11/9/14
to adwor...@googlegroups.com
How I can resolve this issue. What is the possible solution or reasons for this.
I am fetching performance report from adword and i have developer token and also got the Auth token for scope "'https://adwords.google.com/api/adwords/

Danial Klimkin

unread,
Nov 10, 2014, 9:18:31 AM11/10/14
to adwor...@googlegroups.com
Hello,


This error normally means you have generated the refresh token with a wrong account. Try logging off and re-authorizing your application logging in as your AdWords user.


-Danial, AdWords API Team.

jitendra rawat

unread,
Nov 11, 2014, 11:04:44 AM11/11/14
to adwor...@googlegroups.com
Hi,

I am using google service account to authentication during authentication follow this document "https://developers.google.com/accounts/docs/OAuth2ServiceAccount".

If you want then i can provide the apex code. Noted that I am facing this error when try to fetch performance report into salesforce. 

Danial Klimkin

unread,
Nov 12, 2014, 9:12:11 AM11/12/14
to adwor...@googlegroups.com
Hello,


As the document says, we strongly discourage to use Service Accounts with AdWords. It's much easier to obtain and use an offline refresh token.

If you are still using it and have a google apps domain, you need to grant a user rights to access the correct account and set impersonation address to this user email address.


-Danial, AdWords API Team.

Jamie Brown

unread,
Nov 14, 2014, 3:44:31 AM11/14/14
to adwor...@googlegroups.com
If we don't have a Google Apps domain, is it still possible to grant an MCC that same user rights access?  

Danial Klimkin

unread,
Nov 14, 2014, 7:14:41 AM11/14/14
to adwor...@googlegroups.com
Hello Jamie,


Yes, you need to retrieve a refresh token for a user that has access to the given AdWords account as described here:



-Danial, AdWords API Team.
Reply all
Reply to author
Forward
0 new messages