Google Ads API batch job returns RESULTS_NOT_READY, regardless of the length of the timeout

30 views
Skip to first unread message

Alexander Trofimov

unread,
May 31, 2022, 11:57:06 AM5/31/22
to Google Ads API and AdWords API Forum
Hello Team!

We use Google Ads API to automate the process of campaign creation and periodically we encounter the RESULTS_NOT_READY issue. Here's the fresh example:

Batch job id: customers/6034707376/batchJobs/9281369305
Request id: D1WMleK2VqciLRZ9StLUng

Error log:

15:21:59 ERROR     [runtime_logger] {"module":"campaign","topic":"google_sync","error":"{\n    \"message\": \"Request contains an invalid argument.\",\n    \"code\": 3,\n    \"status\":

 \"INVALID_ARGUMENT\",\n    \"details\": [\n        {\n            \"@type\": \"type.googleapis.com\\\/google.ads.googleads.v9.errors.GoogleAdsFailure\",\n            \"errors\": [\n   

             {\n                    \"errorCode\": {\n                        \"batchJobError\": \"RESULTS_NOT_READY\"\n                    },\n                    \"message\": \"Result

s cannot be retrieved until batch job is finished.\"\n                }\n            ],\n            \"requestId\": \"D1WMleK2VqciLRZ9StLUng\"\n        }\n    ]\n}","context":[{"file":"

\/application\/vendor\/google\/gax\/src\/ApiException.php","line":192,"function":"create","class":"Google\\ApiCore\\ApiException","type":"::","args":["Request contains an invalid argume

nt.",3,[{"@type":"type.googleapis.com\/google.ads.googleads.v9.errors.GoogleAdsFailure","errors":[{"errorCode":{"batchJobError":"RESULTS_NOT_READY"},"message":"Results cannot be retriev

ed until batch job is finished."}],"requestId":"D1WMleK2VqciLRZ9StLUng"}],[{"@type":"type.googleapis.com\/google.ads.googleads.v9.errors.GoogleAdsFailure","errors":[{"errorCode":{"batch

JobError":"RESULTS_NOT_READY"},"message":"Results cannot be retrieved until batch job is finished."}],"requestId":"D1WMleK2VqciLRZ9StLUng"}],null]},{"file":"\/application\/vendor\/googl

e\/gax\/src\/ApiException.php","line":306,"function":"createFromRestApiResponse","class":"Google\\ApiCore\\ApiException","type":"::","args":["Request contains an invalid argument.",3,[{

"@type":"type.googleapis.com\/google.ads.googleads.v9.errors.GoogleAdsFailure","errors":[{"errorCode":{"batchJobError":"RESULTS_NOT_READY"},"message":"Results cannot be retrieved until 

batch job is finished."}],"requestId":"D1WMleK2VqciLRZ9StLUng"}]]},


Google Ads API Forum Advisor

unread,
May 31, 2022, 12:12:23 PM5/31/22
to alex...@adline.com, adwor...@googlegroups.com
Hi Alex,

Thank you for reaching out to the Google Ads API support team.

To investigate the issue further, could you please provide the complete request and responselogs, with the request-id? If you haven't yet, logging can be enabled by navigating to the Client libraries > Your client library (ex. Java) > Logging documentation, which you can access from this link.You can provide it via Reply privately to author option. If this option is not available, you may send the details directly to our googleadsa...@google.com alias instead. Let me know if you have any questions.

Thanks,
Google Logo
Nirmita
Google Ads API Team
 


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