invalid_request: Principal must be an email address

31 views
Skip to first unread message

David Scott

unread,
Nov 25, 2019, 1:29:36 PM11/25/19
to AdWords API and Google Ads API Forum
A search shows no results.

When I run python get_campaigns.py this is the response.

"invalid_request: Principal must be an email address"

What does this error mean?
And, how do I solve it?

David

Google Ads API Forum Advisor Prod

unread,
Nov 25, 2019, 4:06:50 PM11/25/19
to da...@secondsiteadvertising.com, adwor...@googlegroups.com
Hi David,

Thank you for reaching out. Can you please provide the complete request and response logs for your call via reply privately to author?

If you are using AdWords API, you can find information on enabling logging here. If you are using Google Ads API, you can find it here.

Regards,
Mitchell
Google Ads API Team

ref:_00D1U1174p._5001UODEcg:ref

David Scott

unread,
Nov 25, 2019, 5:01:12 PM11/25/19
to AdWords API and Google Ads API Forum
I don't know what I did but after adding user = 'my email address' to yaml i am getting a new response:
google.auth.exceptions.RefreshError: ('disabled_client: The OAuth client was disabled.

David

Google Ads API Forum Advisor Prod

unread,
Nov 26, 2019, 9:49:03 AM11/26/19
to da...@secondsiteadvertising.com, adwor...@googlegroups.com
Hi David,

It is possible that you are attempting to reuse an existing clientId and secret from an existing project. Please follow the steps here for creating new ones. You can also check out this forum thread for some more tips for solving this issue. If you are still having issues after following those instructions, please share the logs via reply privately to author.
Reply all
Reply to author
Forward
0 new messages