How limited is the Developer Token in Test access-level?

60 views
Skip to first unread message

Dexter

unread,
Feb 9, 2024, 2:46:44 PM2/9/24
to Google Ads API and AdWords API Forum
Hi,

i am able to pull my Google Ads Account Manager Account Number through CustomerServiceClient's ListAccessibleCustomers method.

Now I was trying the GetAccountHierarchy Example from here but at line 171 the API returns an exception
- Google.Ads.GoogleAds.V15.Errors.GoogleAdsException: 'Status(StatusCode="PermissionDenied", Detail="The caller does not have permission")'

It tries to execute the below query through the Search Method available from the Google.Ads.GoogleAds.V15.Services.GoogleAdsService.GoogleAdsServiceClient

       const string query = @"SELECT
                                    customer_client.client_customer,
                                    customer_client.level,
                                    customer_client.manager,
                                    customer_client.descriptive_name,
                                    customer_client.currency_code,
                                    customer_client.time_zone,
                                    customer_client.id
                                FROM customer_client
                                WHERE
                                    customer_client.level <= 1";

Is my Test access-level allowed to run Search queries?

Google Ads API Forum Advisor

unread,
Feb 9, 2024, 5:55:43 PM2/9/24
to adclick...@gmail.com, adwor...@googlegroups.com

Hi,

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

After reviewing your concern, I understand that you are getting a USER_PERMISSION_DENIED error when running the ListAccessibleCustomers method. This means the user doesn't have permission to access the customer. According to the documentation, if you're accessing the customer, please specify the login-customer-id as the manager account ID without hyphens (-). Client libraries have built-in support for this.

Is my Test access-level allowed to run Search queries?

  • Yes, if you are hitting the above query on the test account. Kindly note that the test access level developer token will not work on the production account. You have to obtain a developer token with basic access or standard access to work on a production account based on the number of operations per day.

I hope the above guidance will help you resolve your issue. If the issue remains the same even after referring to the above guidance, please get back to us with complete API logs (request and response with request-id and request header) generated at your end.

Kindly note that you have to enable logging if you are using a client library. 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 a direct private reply to this email. 

This message is in relation to case "ref:!00D1U01174p.!5004Q02rz007:ref"

Thanks,
 
Google Logo Google Ads API Team


Reply all
Reply to author
Forward
0 new messages