adwords batchjob api + compression

18 views
Skip to first unread message

sho

unread,
Nov 6, 2016, 10:17:19 PM11/6/16
to AdWords API Forum
When using the batch job API for uploading 20K keywords, the generated soap XML exceeds 8MB, and uploading that to the google servers sometimes takes time.
When compressing the XML using gzip, the size is lowered to 75K.
I do manage to upload the gzipped xml, however I always get an error indicting the file is corrupt.
In the best practises document, you mention that all APIs support gzip:

Does that include the batchjob API? if not, it will be a welcome and most desired feature.

Thanks,
-S

Peter Oliquino

unread,
Nov 7, 2016, 1:07:50 AM11/7/16
to AdWords API Forum
Hi,

Could you confirm if you are using the AdWords API client library for your batch operations and if you have enabled GZIP compression in the client library? If not yet, then, depending on your client library, you will have to enable your GZIP compression for your SOAP request and response XML (kindly click here for the instructions for Java).

If the issue persists, could you provide the SOAP request and response or any logs when you encounter the error (please reply using Reply privately to author)? This will help me investigate the issue better.

Best regards,
Peter
AdWords API Team
Reply all
Reply to author
Forward
0 new messages