We are also getting this error since a few days ago. After a bit of digging, 
it appears to be related to using multiple exclamation points in the ad copy 
text. Of course this has always been invalid, but now the error handling on 
Google's end seems to be broken.

Here's the summary of our findings:

   - When creating an ad with multiple !!-s, instead of the usual error we 
   now get AxisFault with "No valid default value found for enum class"
   - Instead of being rejected, the ad is actually created in the account
   - Any other ad in the same batch is also created, even if it has other 
   problems (such as a POLICY_VIOLATION)
   - This occurs on v201008 as well as on v201101 (latest available)
   - This occurs with Java client library 8.2.1 and 8.3.1 (latest available)

Seems like a pretty serious error. It certainly wrecks havoc in our 
error-handling code, but it also seems to allow invalid ads to be published.

Here's XML from such a request:
= In message: 
<?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 
soapenv:actor="http://schemas.xmlsoap.org/soap/actor/next";
            soapenv:mustUnderstand="0"
            xmlns:ns1="https://adwords.google.com/api/adwords/cm/v201008";>
            <ns1:authToken>****
            </ns1:authToken>
            <ns1:clientEmail>****</ns1:clientEmail>
            <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/v201008";>
            <operations>
                <operator>ADD</operator>
                <operand>
                    <adGroupId>2380422424</adGroupId>
                    <ad xsi:type="ns2:TextAd" 
xmlns:ns2="https://adwords.google.com/api/adwords/cm/v201008";>
                        <url>http://www.desturl.com/favpage</url>
                        <displayUrl>displayurl.com</displayUrl>
                        <headline>bang!!</headline>
                        <description1>wow!!</description1>
                        <description2>amazing!!</description2>
                    </ad>
                    <status>ENABLED</status>
                </operand>
            </operations>
        </mutate>
    </soapenv:Body>
</soapenv:Envelope>
= Out message: 
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";>
    <soap:Header>
        <ResponseHeader 
xmlns="https://adwords.google.com/api/adwords/cm/v201008";>
            <requestId>3b533a742d4d60a77276231b1873698a</requestId>
            <operations>1</operations>
            <responseTime>217</responseTime>
            <units>40</units>
        </ResponseHeader>
    </soap:Header>
    <soap:Body>
        <soap:Fault>
            <faultcode>soap:Server</faultcode>
            <faultstring>No valid default value found for enum class
                
com.google.ads.api.services.campaignmgmt.ad.common.Ad$ApprovalStatus
                with version V201008 while invoking public abstract
                
com.google.ads.api.services.campaignmgmt.ad.adgroupad.AdGroupAdReturnValue
                
com.google.ads.api.services.campaignmgmt.ad.adgroupad.AdGroupAdService.mutate(java.util.List)
                throws com.google.ads.api.services.common.error.ApiException 
with
                params
                
[[com.google.ads.api.services.campaignmgmt.ad.adgroupad.v201008.jaxbgen.AdGroupAdOperation@103a993]].</faultstring>
        </soap:Fault>
    </soap:Body>
</soap:Envelope>

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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

Reply via email to