Recently we are testing on canceling a batch job, but encountered an issue. We are not sure whether we could cancel a batch job using BatchJobService.
*Here is our testing code(scala code): * // Create a new Batch job val session = GoogleCredentials.buildSession(accessToken, "########") val batchJobService = new AdWordsServices().get(session, classOf[BatchJobServiceInterface]) val jobOperation = new BatchJobOperation() jobOperation.setOperator(Operator.ADD) jobOperation.setOperand(new BatchJob()) val batchJobReturnValue = batchJobService.mutate(Array[BatchJobOperation](jobOperation)).getValue(0) Thread.sleep(2000) // Remove the above batch job val removeOperation = new BatchJobOperation() removeOperation.setOperator(Operator.REMOVE) val batchJob = new BatchJob() batchJob.setId(batchJobReturnValue.getId) removeOperation.setOperand(batchJob) val batchOpResult = batchJobService.mutate(Array[BatchJobOperation](removeOperation)).getValue(0) println(batchOpResult.getStatus) *Here is the exception we got with the above code:* <?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <soapenv:Header> <ns1:RequestHeader xmlns:ns1="https://adwords.google.com/api/adwords/cm/v201509" soapenv:mustUnderstand="0"> <ns1:clientCustomerId>#######</ns1:clientCustomerId> <ns1:developerToken>##########</ns1:developerToken> <ns1:userAgent>#######</ns1:userAgent> <ns1:validateOnly>false</ns1:validateOnly> <ns1:partialFailure>false</ns1:partialFailure> </ns1:RequestHeader> </soapenv:Header> <soapenv:Body> <mutate xmlns="https://adwords.google.com/api/adwords/cm/v201509"> <operations> <operator>REMOVE</operator> <operand> <id>1235132</id> </operand> </operations> </mutate> </soapenv:Body> </soapenv:Envelope> 16:53:59.816 [testremovebatch-akka.actor.default-dispatcher-4] WARN c.g.a.a.a.l.c.A.soapXmlLogger - SOAP Response: <?xml version="1.0" encoding="UTF-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Header> <ResponseHeader xmlns="https://adwords.google.com/api/adwords/cm/v201509"> <requestId>00052bf3640c99e00abf36819d0be28f</requestId> <serviceName>BatchJobService</serviceName> <methodName>mutate</methodName> <operations>1</operations> <responseTime>206</responseTime> </ResponseHeader> </soap:Header> <soap:Body> <soap:Fault> <faultcode>soap:Server</faultcode> <faultstring>[InternalApiError.UNEXPECTED_INTERNAL_API_ERROR @ com.google.ads.api.services.common.error.InternalApiError.<init>(InternalApiErro]</faultstring> <detail> <ApiExceptionFault xmlns="https://adwords.google.com/api/adwords/cm/v201509"> <message>[InternalApiError.UNEXPECTED_INTERNAL_API_ERROR @ com.google.ads.api.services.common.error.InternalApiError.<init>(InternalApiErro]</message> <ApplicationException.Type>ApiException</ApplicationException.Type> <errors xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="InternalApiError"> <fieldPath/> <trigger/> <errorString>InternalApiError.UNEXPECTED_INTERNAL_API_ERROR</errorString> <ApiError.Type>InternalApiError</ApiError.Type> <reason>UNEXPECTED_INTERNAL_API_ERROR</reason> </errors> </ApiExceptionFault> </detail> </soap:Fault> </soap:Body> </soap:Envelope> -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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/abe960aa-878d-4e24-a0c3-a33449e4c884%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.