Thank you Nadine, we confused the operation that we are doing in bulk with 
the operation of adding a job. Thanks for the clarification!

On Monday, November 16, 2015 at 11:19:42 PM UTC+1, Nadine Sundquist 
(AdWords API Team) wrote:
>
> Hello,
>
> Thanks for the detailed output. It looks like you were trying to do a SET 
> without providing a batch job to update. That's why the error occurred. For 
> most cases, you'll do an ADD where you create the job to and let it run. 
> We're looking into passing back a more descriptive error in the future. In 
> the meantime, here's an example in Java 
> <https://github.com/googleads/googleads-java-lib/blob/master/examples/adwords_axis/src/main/java/adwords/axis/v201509/campaignmanagement/AddCompleteCampaignsUsingBatchJob.java>
>  
> for creating a full campaign using a batch job. You'll see that we only 
> need to call ADD once in order to create the batch job. From there, we just 
> keep adding operations to that batch job.
>
> Best,
> Nadine, AdWords API Team
>
> On Monday, November 16, 2015 at 6:15:47 AM UTC-5, GD wrote:
>>
>> When we try to create a job (see attached XML), we get 
>> "[InternalApiError.UNEXPECTED_INTERNAL_API_ERROR @ 
>> com.google.ads.api.services.common.error.InternalApiError.&lt;init&gt;(InternalApiErro]".
>>  
>> If we change the operation to ADD instead of SET, it seems to work fine.
>>
>> <?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>XXXXXXXXXX</ns1:clientCustomerId>
>>             <ns1:developerToken>YYYYYYYYYYYYYYYY</ns1:developerToken>
>>             <ns1:userAgent>ZZZZZ (AwApi-Java, AdWords-Axis/2.7.0, 
>> Common-Java/2.7.0, Axis/1.4, Java/1.8.0_60, maven)</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>SET</operator>
>>                 <operand/>
>>             </operations>
>>         </mutate>
>>     </soapenv:Body>
>> </soapenv:Envelope>
>>
>> <?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>000524a41b9826d00a81339089049d5a</requestId>
>>             <serviceName>BatchJobService</serviceName>
>>             <methodName>mutate</methodName>
>>             <operations>1</operations>
>>             <responseTime>280</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.&lt;init&gt;(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.&lt;init&gt;(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 http://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/177b851c-f43b-4329-8e95-1daf8a97d605%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to