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 LinkedCustomerId: 1460046398 (client Ads account)
When I use the ListAccessibleCustomers() method from Services.V8.CustomerService, the response indicates the API user has access to:
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:
HEADERS:
Authorization: "Bearer [redacted]"
developer-token: "[redacted]"
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?