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  
<https://github.com/googleads/google-ads-dotnet/blob/59e2dc8d96e046f64f6b8ec99b5d783bdeae71cd/Google.Ads.GoogleAds/examples/AccountManagement/GetAccountHierarchy.cs>but
 
at line 171 
<https://github.com/googleads/google-ads-dotnet/blob/59e2dc8d96e046f64f6b8ec99b5d783bdeae71cd/Google.Ads.GoogleAds/examples/AccountManagement/GetAccountHierarchy.cs#L171>
 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?

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/7c903bc4-3d01-4b7b-9720-2ba54009aea4n%40googlegroups.com.

Reply via email to