Hi there, Thanks for reaching out to the Google Ads API Forum.
I can see that you are trying to use service account authentication to access Google Ads API and encountered an NOT_ADS_USER error. The NOT_ADS_USER error is encountered when the service account has not been correctly linked to the Google Ads account via the OAuth2 assertion flow. Please take note that the email address you may have used to generate the credentials should have access or be associated with Google Ads accounts. In order to connect to Google Ads API using a Google service account, you will need a Google Workspace domain since it is a prerequisite for using service accounts. Also, you may double check if you already followed all the mentioned requirements: The service account that you created needs to be granted domain wide delegation access by a super administrator for the domain. Using a Google Ads user with permissions on the Google Ads account you want to access. Make sure that you have your own domain registered with Google Workspace. Service account will have the ability to impersonate any user in the domain You may refer to this API documentation that discusses how to access the Google Ads API with service accounts. However, kindly note that, we strongly recommend using OAuth2 installed app or web flows instead of service accounts unless you need domain-specific features (for example, impersonation). OAuth2 installed application and web flows require user interaction only once, when access to the account is granted. You need to implement the code set up on your end to make calls using service accounts. In addition, you can refer to this guide for generating a refresh token using the client library. And the OAuth 2.0 Playground to generate refresh token and access token using REST. This Youtube video is very useful in understanding the process. For more information, you may refer to this page. Regards, Yasar Google Ads API Team ref:_00D1U1174p._5004Q2iUcQg:ref -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog: https://googleadsdeveloper.blogspot.com/ =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords API and Google Ads API Forum" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en --- You received this message because you are subscribed to the Google Groups "Google Ads API and AdWords API Forum" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/Y1TON000000000000000000000000000000000000000000000RPFAEO006_5eceROT8WWsBIeV5Am_A%40sfdc.net.
