Hello,

We are trying to query metrics.search_rank_lost_impression_share and 
metrics.search_budget_lost_impression_share from ad_group. 
Rank seems to work but budget gives us this error: 

{'errors': [{'errorCode': {'queryError': 
'PROHIBITED_METRIC_IN_SELECT_OR_WHERE_CLAUSE'}, 'message': "Cannot select 
or filter on the following metrics: 
'search_budget_lost_impression_share'(could not support requested 
resources: 'AD_GROUP'), since metric is incompatible with the resource in 
the FROM clause or other selected segmenting resources."}], 'requestId': 
'Pu2agghT15VMXn3Hanro7A'}

When we are using the Google Ads query builder, we get this message:

'metrics.search_budget_lost_impression_share' is not a valid field in the 
SELECT clause when 'ad_group' is the resource in the FROM clause. Fields in 
the SELECT must be 'Selectable'.

In the documentation 
<https://developers.google.com/google-ads/api/fields/v11/ad_group#metrics.search_budget_lost_impression_share>
 it 
says that it is selectable. Below you can see our query:

SELECT customer.descriptive_name, customer.time_zone, 
campaign.advertising_channel_type, campaign.advertising_channel_sub_type, 
campaign.id, campaign.name, campaign.tracking_url_template, 
campaign.url_custom_parameters, campaign.final_url_suffix, ad_group.name, 
ad_group.id, ad_group.type, ad_group.tracking_url_template, 
ad_group.final_url_suffix, segments.date, metrics.active_view_impressions, 
metrics.active_view_measurable_cost_micros, 
metrics.active_view_measurable_impressions, metrics.clicks, 
metrics.cost_micros, metrics.engagements, metrics.gmail_forwards, 
metrics.gmail_saves, metrics.gmail_secondary_clicks, metrics.impressions, 
metrics.impressions, metrics.interactions, metrics.phone_calls, 
metrics.phone_impressions, metrics.video_views, 
metrics.top_impression_percentage, 
metrics.absolute_top_impression_percentage, 
metrics.search_impression_share, metrics.search_rank_lost_impression_share, 
metrics.search_budget_lost_impression_share, customer.currency_code FROM 
ad_group WHERE segments.date BETWEEN '2022-07-13' AND '2022-07-13'

What is the expected behaviour?

Best regards
Melker Holmgren
Developer @ Funnel 


-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/2aeaffa0-9b48-42f5-bad3-a914fbb75fcfn%40googlegroups.com.
  • Bu... Melker Holmgren
    • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum

Reply via email to