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 Ads API Team |
