I'm having trouble getting the GoogleAds API c# library to work but the 
REST endpoints are working just fine.

I have one MMC account which has access to one client account.

  o  LoginCustomerId: 2165426251 (MMC Account)
  o  LinkedCustomerId: 1460046398 (client Ads account)

When I use the ListAccessibleCustomers() method from 
Services.V8.CustomerService, the response indicates the API user has access 
to:

  "customers/1460046398, customers/2165426251"

Any library method I've tried using Services.V8.GoogleAdsService, however, 
fails with the following message:

Status(StatusCode="PermissionDenied", Detail="The caller does not have 
permission", DebugException="Grpc.Core.Internal.CoreErrorDetailException: 
{"created":"@1628100271.325000000","description":"Error received from peer 
ipv4:172.217.8.138:443","file":"..\..\..\src\core\lib\surface\call.cc","file_line":1068,"grpc_message":"The
 
caller does not have permission","grpc_status":7}")

A recent request id is:
   Request ID: mIixcjIUMVtxWOm_Ccntxw 

I am able to run search queries against this account using the SAME Oauth 
credentials and the REST endpoint as follows:

REQUEST URL: 
https://googleads.googleapis.com/v8/customers/1460046398/googleAds:searchStream

HEADERS: 
         Authorization: "Bearer [redacted]"
 developer-token: "[redacted]"
 login-customer-id: "2165426251"

QUERY: SELECT ad_group.ad_rotation_mode, ad_group.id, ad_group.name, 
ad_group.status, ad_group.type, campaign.id, campaign.name, 
metrics.impressions, metrics.clicks, metrics.cost_micros, 
metrics.conversions , segments.ad_network_type, segments.device, 
metrics.top_impression_percentage, 
metrics.absolute_top_impression_percentage FROM ad_group WHERE 
ad_group.status != 'REMOVED' AND segments.date >= '2021-08-03' AND 
segments.date < '2021-08-04' 

What magic am I missing that's required to make the grpc GoogleAdsService 
library methods work?

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/d5afb59e-21e4-4461-b3d8-c04058ffce37n%40googlegroups.com.

Reply via email to