Hi,
I'm testing the batch job service and I followed the googleads python
libraries example, yet I keep getting this response from the
ListBatchJobResultsRequest service:
Request made: ClientCustomerId: *redacted*, Host: googleads.googleapis.com,
Method:
/google.ads.googleads.v10.services.BatchJobService/ListBatchJobResults,
RequestId: **, IsFault: True, FaultMessage: Results cannot be retrieved
until batch job is finished.
I simplified the request to be a simple campaign status change, this is the
operations array I pass:
[campaign_operation {
update {
resource_name: "customers/*redacted*/campaigns/*redacted*”
status: PAUSED
}
}
]
I also removed the asyncio sections and made the methods sync rather than
async as the async version was taking a long time to poll and I didn't want
to hit any quotas.
This is also the full exception object:
GoogleAdsException(<_InactiveRpcError of RPC that terminated with:
status = StatusCode.INVALID_ARGUMENT
details = "Request contains an invalid argument."
debug_error_string =
"{"created":"@1648813055.545324000","description":"Error received from peer
ipv4:*redacted*","file":"src/core/lib/surface/call.cc","file_line":904,"grpc_message":"Request
contains an invalid argument.","grpc_status":3}"
>, <_InactiveRpcError of RPC that terminated with:
status = StatusCode.INVALID_ARGUMENT
details = "Request contains an invalid argument."
debug_error_string =
"{"created":"@1648813055.545324000","description":"Error received from peer
ipv4:*redacted*,”file":"src/core/lib/surface/call.cc","file_line":904,"grpc_message":"Request
contains an invalid argument.","grpc_status":3}"
>, errors {
error_code {
batch_job_error: RESULTS_NOT_READY
}
message: "Results cannot be retrieved until batch job is finished."
}
request_id: "*redacted*"
, '*redacted*')
This makes me think the Results cannot be retrieved until the batch job is
finished isn't the reason, could this be a package issue?
I have passed resource names of batch jobs I sent the previous day and they
still return the same issue. Am I missing something, if there were an error
would it return that exceptions reason rather than this response?
Lastly the class that builds the mutation operations works fine when I send
a non batch mutation request. It's just limited to the batch job.
Cheers,
Dan
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/421804e2-a2fe-4ebb-a114-e13005000cb8n%40googlegroups.com.