Rest API - Batch job - list results

95 views
Skip to first unread message

SR

unread,
Apr 21, 2022, 4:24:02 AM4/21/22
to Google Ads API and AdWords API Forum
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:
<p>The requested URL <code>/v10/customers/***/batchJobs/***:listResults</code> was not found on this server.  <ins>That’s all we know.</ins>
 
Reference:

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

SR

unread,
Apr 21, 2022, 5:11:14 AM4/21/22
to Google Ads API and AdWords API Forum
I got the answer. It's a HTTP GET request. I wrongly tried with requests.post()

Google Ads API Forum Advisor

unread,
Apr 21, 2022, 10:25:07 PM4/21/22
to sar...@crigloo.com, adwor...@googlegroups.com
Hi SR,

Thank you for your reply.

We're glad that you were able to find the information related to your concern. If you have additional questions regarding the topic being discussed in this thread, feel free to send those over to our team and we would be happy to assist you further.

Best regards,
Google Logo
Heidi
Google Ads API Team
 


ref:_00D1U1174p._5004Q2a5Odm:ref
Reply all
Reply to author
Forward
0 new messages