5) Also the Linux manual of curl says that when we specify *--data* 
the content type that curl will send to the server will be 
*x-www-form- urlencoded*
But your example explicitly specifies *application/json*
I don't quite get this. 

Again... many thanks in advance. 




On Friday, April 30, 2021 at 5:58:44 AM UTC-4 Peter Petrov wrote:

> 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/425937d9-6376-49c8-b6d9-fe25db8af2ben%40googlegroups.com.

Reply via email to