Clarification needed service account + API calls.

68 views
Skip to first unread message

Alexander

unread,
Jun 9, 2021, 10:27:53 AM6/9/21
to AdWords API and Google Ads API Forum
I need to understand what am I doing wrong when get NOT_ADS_USER error.
What I have:
1. Google Ads account (xxx-xxx-xxxx).
2. Developer id for this account (xxxxxxx-xxxxxxxxxxxxxx).
3. "xxx xxx xxx" project in cloud console with Ads API enabled.
4. Service account (xx...@xxx-xxx-xxx-316211.iam.gserviceaccount.com) with generated key and wide-domain delegation enabled.

My workflow:
1. Get auth token using JWT (success, no errors)
2. Make a call with this token (NOT_ADS_USER error)

Right now I have "test account" api enabled only but even with newly created test account with all the stuff done I get the same error. I tried to change logins, emails, add and remove "sub" field in JWT claim, nothing works. May be I'm missing something. 

Help me
 

Google Ads API Forum Advisor

unread,
Jun 10, 2021, 2:31:41 PM6/10/21
to a.bolo...@gmail.com, adwor...@googlegroups.com

Hi Alexander,

Thank you for reaching out. I would recommend you use the OAuth Desktop Application Flow or the OAuth Web Application Flow instead. Please give it a try to use either of them by following this guide.

Thanks and regards,
Xiaoming, Google Ads API Team


Google Logo
Xiaoming
Google Ads API Team
 


ref:_00D1U1174p._5004Q2I1Qw6:ref
Reply all
Reply to author
Forward
0 new messages