REQUESTED_METRICS_FOR_MANAGER error being received

64 views
Skip to first unread message

Mehul Prajapati

unread,
May 4, 2023, 2:46:38 AM5/4/23
to Google Ads API and AdWords API Forum
I am trying to make an application where Adwars user can authorise my google Project APP and My code can pull their campaign's performance report like clicks impression charged amount for that day on that campaign.

But as I execute below query, API returns a below error
"
SELECT campaign.id, "
                . "campaign.advertising_channel_type, "
                . "ad_group.id, "
                . "ad_group.status, "
                . "metrics.impressions, "
                . "metrics.hotel_average_lead_value_micros, "
                . "segments.hotel_check_in_day_of_week, "
                . "segments.hotel_length_of_stay "
            . "FROM hotel_performance_view "
            . "WHERE segments.date DURING LAST_7_DAYS "              
            . "ORDER BY metrics.impressions DESC "
            . "LIMIT 50"

I am using the inbuild google API PHP library to pull report
Please help me to resolve the error .

Thanks you so much 
Mehul

Google Ads API and AdWords API Forum

unread,
May 5, 2023, 6:17:15 AM5/5/23
to Google Ads API and AdWords API Forum
Re-posting the last inquiry (https://groups.google.com/g/adwords-api/c/iyNwpSWLOmQfrom the forum as it wasn't routed to our support queue.

Regards,
Google Ads API Team

Google Ads API and AdWords API Forum

unread,
May 5, 2023, 10:01:44 AM5/5/23
to Google Ads API and AdWords API Forum
Hi Mehul,

Thank you for raising this concern to the Google Ads API support team.

Regarding your concern, it appears that this is specifically about the REQUESTED_METRICS_FOR_MANAGER error. The said error means "Metrics cannot be requested for a manager account. To retrieve metrics, issue separate requests against each client account under the manager account” as said in this guide.

Also, take note that report types of the Google Ads API reporting, especially with metrics, can only be requested against client accounts, not MCC. With this, I would suggest generating a report using or specifying a client account which is under the MCC account.

Links included in this email :
guide - https://developers.google.com/google-ads/api/reference/rpc/v13/QueryErrorEnum.QueryError#requested_metrics_for_manager
report types - https://developers.google.com/google-ads/api/fields/v13/overview
reporting - https://developers.google.com/google-ads/api/docs/reporting/overview


Regards,
Google Ads API Team
On Thursday, May 4, 2023 at 2:46:38 PM UTC+8 mehul.p...@ecosmob.com wrote:
Reply all
Reply to author
Forward
0 new messages