I am Getting below error while getting campaign data .
Error Description Google.Ads.GoogleAds.V16.Errors.GoogleAdsException: 'Status(StatusCode="PermissionDenied", Detail="The caller does not have permission", DebugException="Grpc.Core.Internal.CoreErrorDetailException: {"created":"@1714284860.409000000","description":"Error received from peer ipv4:
172.217.27.202:443","file":"..\..\..\src\core\lib\surface\call.cc","file_line":953,"grpc_message":"The caller does not have permission","grpc_status":7}")'
GoogleAdsServiceClient googleAdsService = googleAdsClient.GetService(
Services.V16.GoogleAdsService);
string query = "SELECT
campaign.id,
campaign.name, campaign.status FROM campaign " +
"ORDER BY
campaign.id limit 100";
List<string> campaigns = new List<string>();
try
{
// Issue a search request.
googleAdsService.SearchStream("{
CUSTOMER ID}", query,
delegate (SearchGoogleAdsStreamResponse resp)
{
foreach (GoogleAdsRow googleAdsRow in resp.Results)
{
// Note: We don't use the default JSON converter, to enable
// better JSON rendering of enum values.
//campaigns.Add(JsonFormatter.Default.Format(googleAdsRow.Campaign));
}
}
);
// return Content($"[{string.Join(",\n", campaigns)}]");
}
catch (Exception)
{
//return Problem(e.Message);
}
Note: I have same email address for Ad Manager and Customer ID I have checked Access level as well not sure what is missing here can you please help on that.