Re: Rest API - Batch job - list results

2022-04-21 Thread SR
I got the answer. It's a HTTP GET request. I wrongly tried with 
requests.post()

On Thursday, April 21, 2022 at 1:54:02 PM UTC+5:30 SR wrote:

> Using rest api when I try to get the results of a batch job using the 
> below URL, I get the following error. Please help in resolving this issue.
>
> Code:
> url = "
> https://googleads.googleapis.com/v10/customers/***/batchJobs/***:listResults
> "
> header = {'Content-Type': 'application/json', 'developer-token': '***', 
> 'login-customer-id': ***, 'Authorization': 'Bearer ***'}
> response = requests.post(url, headers = header)
>
> Error:
> The requested URL 
> /v10/customers/***/batchJobs/***:listResults was not found on 
> this server.  That’s all we know.
>  
> Reference:
>
> https://developers.google.com/google-ads/api/rest/reference/rest/v10/customers.batchJobs/listResults
>
> How to provide the query parameters like pageSize, responseContentType? Is 
> it by using ? in the URL. Please share a sample code for better 
> understanding. 
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/d72d7d43-f446-4725-8640-eb698f60b4b0n%40googlegroups.com.


Rest API - Batch job - list results

2022-04-21 Thread SR
Using rest api when I try to get the results of a batch job using the below 
URL, I get the following error. Please help in resolving this issue.

Code:
url = 
"https://googleads.googleapis.com/v10/customers/***/batchJobs/***:listResults";
header = {'Content-Type': 'application/json', 'developer-token': '***', 
'login-customer-id': ***, 'Authorization': 'Bearer ***'}
response = requests.post(url, headers = header)

Error:
The requested URL 
/v10/customers/***/batchJobs/***:listResults was not found on 
this server.  That’s all we know.
 
Reference:
https://developers.google.com/google-ads/api/rest/reference/rest/v10/customers.batchJobs/listResults

How to provide the query parameters like pageSize, responseContentType? Is 
it by using ? in the URL. Please share a sample code for better 
understanding. 

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/8c9d011e-4d85-4c9e-b3d6-6a5ba8955f90n%40googlegroups.com.