Perhaps this would help?

https://groups.google.com/d/topic/adwords-api/SQYYG1SxLj8/discussion


On Wednesday, July 10, 2019 at 3:47:50 PM UTC+1, adsapiforumadvisor wrote:
>
> Hello Ken,
>
> Using client library it is not possible to get the output in JSON format. 
> Alternaltively you an use the CURL operation to get the output in JSON 
> format. Example JSON query is give below.  Please give it a try and let me 
> know if you have any further questions.
>
> CURL example:
> curl -H "Authorization: Bearer *ACCESS_TOKEN_HERE*" 
>        -H "developer-token: *DEVELOPER_TOKEN_HERE*" 
>        -H "login-customer-id: *LOG_IN_CUSTOMER_ID*" 
>        -H "Content-Type: application/json" 
> https://googleads.googleapis.com/v1/customers/*CLIENT_CUSTOMER_ID_HERE*/googleAds:search
>  
> --data '{query: "SELECT campaign.id 
> <http://www.google.com/url?q=http%3A%2F%2Fcampaign.id&sa=D&sntz=1&usg=AFQjCNHdlC8ZlqnOhLVkl6u4B7uVWHqsqg>
> , campaign.name 
> <http://www.google.com/url?q=http%3A%2F%2Fcampaign.name&sa=D&sntz=1&usg=AFQjCNFBYA7gzkBLLcxv2FWclg57hNZrwQ>,
>  
> metrics.clicks, metrics.impressions, metrics.conversions, 
> metrics.cost_micros FROM campaign WHERE segments.date DURING LAST_30_DAYS 
> ORDER BY campaign.id 
> <http://www.google.com/url?q=http%3A%2F%2Fcampaign.id&sa=D&sntz=1&usg=AFQjCNHdlC8ZlqnOhLVkl6u4B7uVWHqsqg>
> "}'
>
> Regards,
> Sai Teja, Google Ads API Team
>
> ref:_00D1U1174p._5001UCZwK3:ref

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 
"AdWords API and Google Ads 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/4e12ffc2-c145-462e-aafd-622d6a133676%40googlegroups.com.

Reply via email to