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.
My TestManager CustomerID: 2349150893
Developer token:__R0sxIaTEA-cd2bmu1kmA
*please have a look on my code below, also I attached the screenshot of my
errors.*
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);//Error
at this line
if (!ClientDetails.Manager.Value)
{
}
}
});
}
[image: 2019-02-13_17-12-10.png]
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
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/78b0d6e2-7bac-44d0-a921-1df36b74931e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.