Ads API Average Position

81 views
Skip to first unread message

cv

unread,
Jul 3, 2019, 9:01:45 AM7/3/19
to AdWords API and Google Ads API Forum
Hi,

According to v2 release of google ads api beta Average Position is removed and it is replaced with SearchAbsoluteTopImpressionShare or SearchTopImpressionShare 
But api is failing with invalid argument

"query":"SELECT segments.date, metrics.average_cpc, metrics.clicks, metrics.conversions, metrics.conversions_from_interactions_rate, \n                metrics.cost_micros, metrics.cost_per_conversion, metrics.ctr, metrics.impressions, \n                metrics.top_impression_percentage, metrics.view_through_conversions\n               FROM\n                   customer\n               WHERE\n                segments.date >= 20190624 AND segments.date <= 20190630","pageSize":500

Response
-------
Headers: {
    "request-id": "0nGHTiUa9fo-aUtOOxaJlQ",
    "date": "Wed, 03 Jul 2019 12:55:51 GMT",
    "alt-svc": "quic=\":443\"; ma=2592000; v=\"46,43,39\""
}

Fault
-------
Status code: 3
Details: Request contains an invalid argument.
Failure: {}  

How I can use those fields?

Thanks,


Google Ads API Forum Advisor Prod

unread,
Jul 4, 2019, 4:06:12 AM7/4/19
to adwor...@googlegroups.com
Hi,

Looking at your query, it does not appear that you have included the metrics.search_absolute_top_impression_share and metrics.search_top_impression_share fields. Upon checking as well, the Customer view currently does not support all three fields, including the metrics.top_impression_percentage field. This is the reason why you encountered the "invalid argument" error when generating the report.

That being said, allow me to notify the team to have the documentation updated to reflect more correct the availability of the metrics.top_impression_percentage field in resources.

Thanks and regards,
Peter
Google Ads API Team

ref:_00D1U1174p._5001UCaoUM:ref

cv

unread,
Jul 4, 2019, 5:41:29 AM7/4/19
to AdWords API and Google Ads API Forum
Thanks,
Reply all
Reply to author
Forward
0 new messages