Hello Javeed, Hopefully, you've had a chance to check out the Batch Processing guide <https://developers.google.com/adwords/api/docs/guides/batch-jobs> while putting this together. I would highly recommend just taking the code you need from the Java library because there are a few gotchas. If you are not going to use the client library, then please at least check out the code here <https://github.com/googleads/googleads-java-lib/blob/ea10a4d5f51ecd7d9e020151bbb690079a0ed70f/modules/ads_lib/src/main/java/com/google/api/ads/adwords/lib/utils/BatchJobUploader.java> to help structure your own code. You'll see that one of the things you need is that each upload needs to be an increment of 256K. Little things like that can result in error such as the FILE_FORMAT_ERROR.
Best, Nadine, AdWords API Team On Tuesday, January 26, 2016 at 9:35:08 AM UTC-5, Javeed Syed wrote: > > > Hi Yin, > > I understand Java client library is having a good way for doing it with > its XML parsing. But we have all the code set for SOAP requests and it was > working normally. > But when am trying to migrated to Batchjobservice it has some issue with > uplaoding xml body. I have changed the tag and provided separate tag for > campaign. But it is still the same issue, nothing changed. > > Is there any thing you can find more from the above.. > > /Javeed > > > On Wednesday, 20 January 2016 22:02:06 UTC+1, Yin Niu wrote: >> >> Hi Javeed, >> >> I would recommend you use the Java library because it has encapsulated >> the XML parsing for you. For the XML request you have, the only place that >> I found could be an issue is the <opertions> tag. Please take a look at >> BatchJobOps.xsd >> <https://adwords.google.com/api/adwords/cm/xsd/v201509/BatchJobOps.xsd> >> file. >> You might want to make campaignOperation in a separate tag. >> >> Thanks, >> Yin, AdWords API Team. >> > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and Google+: https://googleadsdeveloper.blogspot.com/ https://plus.google.com/+GoogleAdsDevelopers/posts =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords API Forum" group. To post to this group, send email to adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en --- You received this message because you are subscribed to the Google Groups "AdWords API Forum" group. To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscr...@googlegroups.com. Visit this group at https://groups.google.com/group/adwords-api. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/2ca3e7aa-ec2b-4b26-8c3b-c926d3614562%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.