BatchJobService: disk quota is not restored to 1Gb

40 views
Skip to first unread message

Павел Расчетнов

unread,
Dec 14, 2018, 5:52:31 AM12/14/18
to AdWords API and Google Ads API Forum
Hi! I use this code to get available disk space:

def get_free_space(client):
    batch_job_service = client.GetService('BatchJobService', version='v201809')
    
    batch_job_operations = [{
        'operand': {},
        'operator': 'ADD'
    }]
    return batch_job_service.mutate(batch_job_operations)['value'][0]['diskUsageQuotaBalance']

It returns 392447 (=392Mb), but I cant see any jobs in ACTIVE or AWAITING_FILE status. How is it possible? Do DONE or CANCELED jobs take space?

Also, it seems like AWAITING_FILE jobs are spawned from time to time and they cant be always canceled by setting their status to CANCELING.
For example, I haven't created jobs (at least recently) with these ids: 933377935,933614454, but they are running now.

Any advice would be great.

Bharani Cherukuri (AdWords API Team)

unread,
Dec 14, 2018, 11:31:37 AM12/14/18
to AdWords API and Google Ads API Forum
Hello, 

The diskUsageQuotaBalance includes the Active and Awaiting_file status in the balance. At any given time, a Google Ads account can have up to 1 GB of uploaded operations across all of its batch jobs that have not yet completed. Could you share us the client customer Id and the complete API SOAP request and response logs for the BatchJobService.get() operation, so I can take a look? You can reply back via Reply privately to author option.

Thanks,
Bharani, AdWords API Team

Павел Расчетнов

unread,
Dec 19, 2018, 9:26:24 AM12/19/18
to AdWords API and Google Ads API Forum
I've been exploring this issue for a couple of days and became confident in the following facts:
As of 2018-12-19T13-55 UTC I have 69996 CANCELED jobs and 11102 DONE jobs. I have no unfinished jobs running but diskUsageQuotaBalance is still 392447 (=392Mb). I've been getting the same exact value for several weeks already. I Also I've encountered negative values of diskUsageQuotaBalance on another account. There is a thread about this issue https://groups.google.com/forum/#!msg/adwords-api/rRVg7dMRq0A/Lx5eCpCWBAAJ, the discussion hasn't been finished, so apparently the issue is still not resolved.

* I was wrong about randomly spawning jobs, I think they are created every time after making free space checks.
Reply all
Reply to author
Forward
0 new messages