{
"error": {
"code": 401,
"message": "Request is missing required authentication credential. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.",
"status": "UNAUTHENTICATED"
}
}I am waiting for earliest reply.
Regards & Thanks,
Amit
Hi Amit,
Thank you for reaching out to Google Ads API support.
> Request is missing required authentication credential. Expected OAuth 2 access token, login cookie or other valid authentication credential.
You seem to have an authentication issue with your OAuth 2 access token. Please follow the instructions here to ensure that you can correctly make your API call with the correct authentication: https://developers.google.com/adwords/api/docs/guides/first-api-call#php_1
Hope that this helps your issue, thank you.
$query = 'SELECT campaign.name, campaign.status, segments.device, metrics.impressions, metrics.clicks, metrics.ctr, metrics.average_cpc, metrics.cost_micros FROM campaign WHERE segments.date DURING LAST_30_DAYS';