How to remove BatchJobOperation

152 views
Skip to first unread message

粟野恭平

unread,
Jul 26, 2022, 12:20:33 AM7/26/22
to Google Ads API and AdWords API Forum
Hello, I am receiving errors from MutateBatchJob requests.

error message is following:

```
error_code {
  resource_count_limit_exceeded_error: RESOURCE_LIMIT
}
message: "This request would exceed a limit on the number of allowed resources. The details of which type of limit was exceeded will eventually be returned in ErrorDetails."
trigger {
  string_value: "MUTATE_JOBS_PER_CUSTOMER"
}
location {
  field_path_elements {
    field_name: "operation"
  }
}
details {
  resource_count_details {
    enclosing_id: "*****"
    limit: 100
    limit_type: BATCH_JOBS_PER_CUSTOMER
    existing_count: 100
    enclosing_resource: "customer"
  }
}
```

I think I need to remove BatchJobOperation with BatchJobOperation.remove, so I am trying to get resource name of BatchJobOperation,
then executed Operations.ListOperations request, but received following errors.

```
{
  "error": {
    "code": 501,
    "message": "Operation is not implemented, or supported, or enabled.",
    "status": "UNIMPLEMENTED"
  }
}
```

How can I remove BatchJobOperation?

Google Ads API Forum Advisor

unread,
Jul 26, 2022, 2:55:35 AM7/26/22
to mcc.e...@gmail.com, adwor...@googlegroups.com
Hi,

Thank you for posting your concern. Allow me to provide support.

I am afraid that it is not the correct way to get the batch jobs that your customer currently has. With this, you may use the batch_job report and include batch_job.status field to know the active jobs your account has and if it will reach the limit.

Regards,
Google Logo
Ernie John
Google Ads API Team
 


ref:_00D1U1174p._5004Q2d1QWg:ref

粟野恭平

unread,
Jul 26, 2022, 7:36:50 AM7/26/22
to Google Ads API and AdWords API Forum
Hello, thank you for your advice.

Following the manual above, I was able to list batch jobs and delete pending batch jobs.

2022年7月26日火曜日 15:55:35 UTC+9 adsapi:

Google Ads API Forum Advisor

unread,
Jul 26, 2022, 9:02:24 AM7/26/22
to mcc.e...@gmail.com, adwor...@googlegroups.com

Hi,

Thanks for updating us on the issue. We are glad to know that you are able to list batch jobs and delete pending batch jobs. Should you have any other clarifications with the APIs, feel free to open new post, and we'll be happy to assist you.

Regards,

Google Logo
Yasar
Google Ads API Team
 


ref:_00D1U1174p._5004Q2d1QWg:ref

Dom

unread,
Aug 10, 2022, 10:12:21 AM8/10/22
to Google Ads API and AdWords API Forum
Hi,
after running in to the same error I've taken care of finishing all pending jobs.
My total batch jobs are:

 ----------------- -------
  State             Count  
 ----------------- -------
  (0) UNSPECIFIED   0      
  (1) UNKNOWN       0      
  (2) PENDING       0      
  (3) RUNNING       0      
  (4) DONE          124    
 ----------------- ------- 

Sadly I am still running into the same issue. I've already waited 24hours because I've supposed google might take a while to update its limits!?

What should I do? I need to publish ads... Google is losing money

Google Ads API Forum Advisor

unread,
Aug 10, 2022, 10:46:50 AM8/10/22
to d.pa...@gmail.com, adwor...@googlegroups.com
Hi Dom,

Can you do a remove operation on your "DONE" batch jobs? If the above doesn't help, could you send us a 'DEBUG' log level request and response log of raw API communications showing the error?

The request and response appears similar to the JSON Mappings in our REST documentation with additional headers and information such as request Id. Here are logging instructions for our Java.NETPHPPythonRuby and Perl Ads API Client Libraries.

If you are using our REST interface then the full multi line curl command line is a request log and adding curl command line option '-i' will also generate a response log.

You may send the requested information via "Reply to author" or via googleadsa...@google.com with a link to this forum post added to the new thread.

Regards,

Google Logo
Aryeh
Google Ads API Team
 


ref:_00D1U1174p._5004Q2d1QWg:ref

Dom

unread,
Aug 10, 2022, 12:05:49 PM8/10/22
to Google Ads API and AdWords API Forum
Send you the debug messages in private.

Can't remove jobs with state "DONE" with error: The batch job cannot be removed because it has started running.

Can't create new jobs bc of error: 
This request would exceed a limit on the number of allowed resources. The details of which type of limit was exceeded will eventually be returned in ErrorDetails.","trigger":{"stringValue":"MUTATE_JOBS_PER_CUSTOMER"}


I don't know what to do....

Google Ads API Forum Advisor

unread,
Aug 10, 2022, 1:32:26 PM8/10/22
to d.pa...@gmail.com, adwor...@googlegroups.com
Hi Dom,

Thank you for sending the logs privately, I raised them with my team. We will get back to you as soon as possible.
Reply all
Reply to author
Forward
0 new messages