{
  "query": "SELECT metrics.clicks, metrics.impressions, metrics.ctr, 
metrics.average_cpc, metrics.cost_micros FROM campaign WHERE campaign.id = 
21655974... AND segments.date DURING LAST_30_DAYS AND campaign.status != 
REMOVED"
}

i used this query to fetch campaign metrics, but i got error as shown below 
:

{ "error": { "code": 400, "message": "Request contains an invalid 
argument.", "status": "INVALID_ARGUMENT", "details": [ { "@type": 
"type.googleapis.com/google.ads.googleads.v16.errors.GoogleAdsFailure", 
"errors": [ { "errorCode": { "queryError": "BAD_VALUE" }, "message": "Error 
in WHERE clause: invalid value campaign.start_date." } ], "requestId": 
"DZfjFJdi3OFeVRzum3v7gw" } ] } }

i want to fetch the metrics from the start of the campaign to the end of 
campaign. please tell me how can i achieve the desired response. please 
provide me the correct query.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/97823186-6eb6-4751-8c72-4f8a31853310n%40googlegroups.com.
  • fe... Dushyant
    • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum

Reply via email to