Error while trying to setup transfer of Google Ads to BigQuery

298 views
Skip to first unread message

Cherry Cars

unread,
Dec 22, 2023, 12:17:23 PM12/22/23
to Google Ads API and AdWords API Forum
image (1).pngHello,

While attempting to setup a data transfer of GoogleAds data to BigQuery using a service account that should have admin rights, we're running into the following error message:

generic::unauthenticated: The Google account (@gmail.com user) that generated the OAuth access tokens is not associated with any Ads accounts. Create a new account, or add the Google account to an existing Ads account.

2023-12-22_11-12.png

I've tried adding the service account to Google Ads, but ran into the following error message:

This email address isn't in an allowed domain.  To make changes to the allowed domain list, update your security settings.

Any advice is greatly appreciated, thanks!

Google Ads API Forum Advisor

unread,
Dec 22, 2023, 5:37:41 PM12/22/23
to cherry...@gmail.com, adwor...@googlegroups.com
Hi,

Thank you for reaching out to the Google Ads API support team.

By reviewing your concern, I understand that while trying to establish a data transfer of Google Ads data to BigQuery using a service account with supposed admin privileges, you're encountering the error message indicating "unauthenticated". I would recommend you to follow every step of the service account guide , specifically the prerequisites

On the other hand, please note that we strongly recommend using OAuth2 desktop app or web app flow instead of service accounts unless you need a domain-specific feature (for example, impersonation). OAuth2 desktop app and web app flows do require an initial user interaction for granting access to the account, but are much simpler to set up.

For the OAuth2 desktop app flow, you can persist a refresh token (which never expires) to obtain a new access token whenever necessary. When using one of our client libraries, you can authorize your app by filling out a configuration file.
If the issue persists after trying with the provided suggestion, then provide us with the complete updated API logs (request and response with request-id and request header) generated at your end and uncropped UI screenshot of the Google Ads account where you are facing the issue.

If you are using a client library and haven't enabled the logging yet, I would request you to enable logging for the specific client library that you are using. You can refer to the guides Java, .Net, PHP, Python, Ruby or Perl to enable logging at your end. For REST interface requests, you can enable logging via the curl command by using the -i flag.

You can send the details via Reply privately to the author option, or direct private reply to this email.
 
This message is in relation to case "ref:!00D1U01174p.!5004Q02r3LRF:ref"

Thanks,
 
Google Logo Google Ads API Team


Reply all
Reply to author
Forward
0 new messages