hi , i am reading "Google Ads API" configuration from Web.config file not from app.config. even though i have added that line in my web.config already.but no luck. this error persists only when i pass the "Client Customerid" into "GetCustomer()". if i pass my manager account id(LoginCustomerid) and its working fine.
On Tuesday, 26 February 2019 23:28:59 UTC+5:30, rentca...@gmail.com wrote: > > I solved the issue by adding <add key="LoginCustomerId" > value="INSERT_LOGIN_CUSTOMER_ID_HERE" /> to my app.config file. > > On Tuesday, February 26, 2019 at 8:59:56 AM UTC-8, rentca...@gmail.com > wrote: >> >> I'm having the same issue >> >> Message: Status(StatusCode=PermissionDenied, Detail="The caller does not >> have permission") >> Failure: { "errors": [ { "errorCode": { "authorizationError": >> "USER_PERMISSION_DENIED" }, "message": "User doesn't have permission to >> access customer." } ] } >> Request ID: f9DUeMOoCpc2vCZMc4jjAQ >> Press [Enter] to continue. >> >> >> >> On Wednesday, February 13, 2019 at 3:47:25 AM UTC-8, Ananth Sakthivel >> wrote: >>> >>> 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:XXXXXXXXXXXXXX >>> *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 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/ea103e4a-bf75-4e21-bc4d-793d280ce2e7%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.