BatchJobProcessingError.FILE_FORMAT_ERROR when using php client library

57 views
Skip to first unread message

orzorc

unread,
Nov 15, 2017, 1:20:41 AM11/15/17
to AdWords API Forum
Hi,
I am using php client library for copy keywords between ad groups.
I read all keywords and make a batch job request.
Most operations are accepted except that some keywords are labeled and I need make new labels first.
So I add label operations before criterion operations but which leads to a BatchJobProcessingError.FILE_FORMAT_ERROR.

I swear I only add more operations without editing any code relate to upload batch job.
It becomes more confusing when I dump the serialized content to an xml file which can be parsed by chrome without any error. So I supposed that the file format is valid.
I try to only add label operations and dump the serialized content to file(see attachment) but same error.
What should I do to solve the issue?
test1.xml

orzorc

unread,
Nov 15, 2017, 1:23:24 AM11/15/17
to AdWords API Forum
Hi,
Sorry , I can not find previous post so I have to repost it.

I'm using php client library to copy keywords between ad groups.
I read all keywords in one group and clean id in each keyword before adding to criterion operations.
It works fine except for some labeled keywords.
So I added some label operations before criterion operations to make those label entities exist and without editing any code relate to upload batch job.
but I received the BatchJobProcessingError.FILE_FORMAT_ERROR error.

I try to dump the serialized content to an xml file. It can be parsed by chrome with no error. So, I supposed that the content is valid xml.
Then I try to upload only label operations and the same error.
So I dump the content to file(check the attachment I upload).
Please help to solve the issue.
test1.xml

Vincent Racaza (AdWords API Team)

unread,
Nov 15, 2017, 2:22:52 AM11/15/17
to AdWords API Forum
Hi,

Based in your SOAP logs, the error was generated because you included the LabelOperation which is not supported for batch processing. Please see this guide for the list of supported operations in the BatchJobService.

If you are creating new labels, you need to create these separately via LabelService.mutate(), and the operation should not be included in the BatchJobService. However, please be guided that we have issues currently in getting the newly created labels. Kindly see this forum post for more information. We are working to fix this issue.

Let me know if you have further clarifications.

Thanks,
Vincent
AdWords API Team

orzorc

unread,
Nov 15, 2017, 9:13:13 PM11/15/17
to AdWords API Forum
Thank you very much.
I forgot that not all operations could done by batch job.
In this case, could you please consider to return a more specific error to tell us that the operation is not supported by batch job?
And really really appreciate your help

Vincent Racaza (AdWords API Team)

unread,
Nov 16, 2017, 12:41:03 AM11/16/17
to AdWords API Forum
Hi,

Thanks for your feedback. I have already passed this to the team. However, this is not a guarantee that the request will be available in the future versions of the API. Please continue to follow our blog to receive any future updates like new releases.
Reply all
Reply to author
Forward
0 new messages