Hi I'm having problem using the ListInvoices-method. Other methods are working fine. I'm maybe using/providing wrong data, but I'm lost. I'm getting PermissionDenied-error on my request.
I'm not providing my credentials here, but my LoginCustomerId is 7294448259 (manager account). I'm trying to get invoice for customer 4890915856. Here is my simplified C#-code: var client = new GoogleAdsClient(); var googleAdsService = client.GetService(Services.V5.GoogleAdsService); // Define a GAQL query to retrieve all billing setup information. string searchQuery = @"SELECT billing_setup.id, billing_setup.status, billing_setup.payments_account, billing_setup.payments_account_info.payments_account_id, billing_setup.payments_account_info.payments_account_name, billing_setup.payments_account_info.payments_profile_id, billing_setup.payments_account_info.payments_profile_name, billing_setup.payments_account_info.secondary_payments_profile_id FROM billing_setup"; // Creates a request that will retrieve all billing setups using pages of the specified // page size. SearchGoogleAdsRequest request = new SearchGoogleAdsRequest() { Query = searchQuery, CustomerId = "4890915856", }; PagedEnumerable<SearchGoogleAdsResponse, GoogleAdsRow> searchPagedResponse = googleAdsService.Search(request); foreach (var item in searchPagedResponse) { item.ToString(); } //I receive 1 element with this info: //BillingSetupId: 298986887 (using this in the next request) //PaymentaccountInfo: "2408-9112-7120" //Faktureringsoppsettid: 0847768239300645 - Navn: Hovedfaktura" //Get the GoogleAdsService. var invoiceService = client.GetService(Google.Ads.GoogleAds.Services.V5.InvoiceService); var req = new ListInvoicesRequest() { BillingSetup = ResourceNames.BillingSetup(4890915856, 298986887), CustomerId = "4890915856", IssueMonth = Google.Ads.GoogleAds.V5.Enums.MonthOfYearEnum.Types.MonthOfYear.April, IssueYear = "2021" }; var res = invoiceService.ListInvoices(req); This last method fails in "Permission Denied". Why?? Thanks for help. -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/f3f87cd3-03fe-4900-b452-b132caf0e528n%40googlegroups.com.