Hello,
Unfortunately, we do not have an existing code sample in the general
documentation. However, I would recommend reaching out to the PHP client
library owners here for further assistance on this.
Regards,
Matt
Google Ads API Team
Matt
Google Ads API Team
ref:_00D1U1174p._5004Q2CQXng:ref
Hello Everyone,
can I get a code sample on how to cancel a running batch job (in PHP)
because this
(https://developers.google.com/google-ads/api/docs/batch-processing/flow#canceljob)
guide is confusing to cancel a batch job.
On Wednesday, March 3, 2021 at 8:55:46 PM UTC+5 Google Ads API Foru
Hi Antoni,
Thank you for reaching out. Only the job that has been started could be
cancelled. Please follow this guide on how to cancel a batch job.
Thanks and regards,
Xiaoming, Google Ads API Team
Xiaoming
Google Ads API Team
ref:_00D1U1174p._5004Q2CQXng:ref
--
--
=~=~=~=~=~=~=~=~=~=~=~=~
Hm, I've tried calling CancelOperation agains BatchJob that haven't been
started yet and it did not work. Do you mean I can run CancelOperation
against operations inside my batch job?
poniedziałek, 1 marca 2021 o 18:27:59 UTC+1 adsapiforumadvisor napisał(a):
> Hi Antoni,
>
> Thank you for reach
Hi Antoni,
Thank you for reaching out. You could cancel the unwanted operations by using
the CancelOperation. The resource names could be obtained from the returned
value while creating the new batch job. If you don’t explicitly run the created
batch jobs, they will not be executed. The “pendin
Thanks for response! So the proper behavior to discard a job that I'm not
going to run (lets say it contains dangerous, faulty changes) is to simply
leave it as is so it would be cleared on API side at some point. This
"pending" jobs are still counted in quota, right?
poniedziałek, 15 lutego 2
Hi Antoni,
Thank you for raising this to us.
According to this Usage flow (under Canceling a batch job section), there
should be an existing/running batch job before actually cancelling it. Looking
on the CancelOperationRequest, it should have a name of the operation resource
to be cancelled.