Hi,

I need to get a list of all campaigns and show campaign_budget and 
campaign_criterion (location) data from them but query is returning an 
error.

This is the query:

'SELECT campaign.id, campaign.name, campaign.status, metrics.impressions, 
metrics.clicks, metrics.ctr, metrics.cost_micros, 
campaign_budget.amount_micros, 
campaign_criterion.location.geo_target_constant FROM campaign WHERE 
campaign.status != "REMOVED" ORDER BY campaign.id'

This is the output:
{"code":400,"message":"Request contains an invalid 
argument.","status":"INVALID_ARGUMENT","details":[{"@type":"type.googleapis.com/google.ads.googleads.v6.errors.GoogleAdsFailure","errors":[{"errorCode":{"queryError":"PROHIBITED_RESOURCE_TYPE_IN_SELECT_CLAUSE"},"message":"Cannot
 
select fields from the following resource: 'CAMPAIGN_CRITERION', since the 
resource is incompatible with the resource in FROM clause."}]}]}

I tried with campaign, campaign_criterion and campaign_budget in clausule 
FROM but it doesnt work.

Any idea?

Thanks in advance

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
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 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/6e1c7ea7-7694-4ad5-acd6-acf5befae66dn%40googlegroups.com.

Reply via email to