OK, thank you. 

So this guide is about the REST API.

1) So I guess this means I will probably get the results back in JSON 
format, right?  
No option to get back XML or CSV (as in the old API), right? 

In the old API the format was being controlled by a field passed in with 
the report definition. 
<downloadFormat>CSV</downloadFormat>
<downloadFormat>XML</downloadFormat>
And that report definition was part of the body sent with the POST request. 


2) Are the 4 headers given in the example the only headers one could pass 
in? 

--header "Content-Type: application/json"  
--header "developer-token: ${DEVELOPER_TOKEN}"  
--header "login-customer-id: ${MANAGER_CUSTOMER_ID}"  
--header "Authorization: Bearer ${OAUTH2_ACCESS_TOKEN}"  

Are these any additional headers one could pass in? 


3) I am asking the previous question because the old API had headers like  

             skipReportHeader 
             skipReportSummary 
             clientCustomerId 

These are not there anymore, correct? 


4) Btw, I have troubles to call this HTTPs endpoint/URL 

https://googleads.googleapis.com/v${API_VERSION}/customers/${CUSTOMER_ID}/googleAds:searchStream
 

but I will keep investigating. The error is not very informative - just 
HTTP code 400. 
I am passing in the 4 headers mentioned above so I am not sure what I am 
doing wrong. 
Any ideas? 








On Thursday, April 29, 2021 at 3:24:53 PM UTC-4 adsapiforumadvisor wrote:

> Hi Peter,
>
> Thank you for reaching out. Using the client library is not required. You 
> could make API calls by utilizing cURL instead. Please refer to this guide 
> <https://developers.google.com/google-ads/api/rest/examples> on how to 
> send a request via cURL and how to construct the API request.
>
> Thanks and regards,
> Xiaoming, Google Ads API Team
>
>  
> [image: Google Logo] 
> Xiaoming 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2GIcDn: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/e25f6739-342c-4f29-97a7-090a60a25bben%40googlegroups.com.

Reply via email to