since yesterday my code was working fine and it's fetching the AdsAccount 
Details through the Service of "GetCustomer()". but today onwards its stop 
working and throwing the Below error,

*Google.Ads.GoogleAds.Lib.GoogleAdsException*
*  HResult=0x80131500*
*  Message=Status(StatusCode=PermissionDenied, Detail="The caller does not 
have permission")*
*  Source=Google.Api.Gax.Grpc*

I have already added the "LoginCustomerId" in my config file. but still, 
it's not sorted out.

please have a look on my code,

 try
            {
                Client = new GoogleAdsClient();
                CustomerService = 
Client.GetService(Services.V0.CustomerService);               
                GoogleAdsServiceClient googleAdsService = 
Client.GetService(Services.V0.GoogleAdsService);
                    SearchGoogleAdsRequest request = new 
SearchGoogleAdsRequest()
                    {
                        Query = @"SELECT customer_client.client_customer 
FROM customer_client",
                        CustomerId = Client.Config.LoginCustomerId
                    };
                    PagedEnumerable<SearchGoogleAdsResponse, GoogleAdsRow> 
searchPagedResponse = googleAdsService.Search(request);
                    object sync = new Object();
                       
                Parallel.ForEach(searchPagedResponse, response =>
                {
                     lock (sync)
                     {
                         var ClientDetails = 
CustomerService.GetCustomer(response.CustomerClient.ClientCustomer);
                         if (!ClientDetails.Manager.Value)
                         {
                            
                         }
                     }

                });
            }

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/8d3cf87e-68f1-4f43-a73a-53102a0cd37e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to