Our automated system creates "National" campaigns which target up to
20 large metros.

Apparently, in the case of the campaign below Google API rejects the
combination of metros.
These metros were manually selected through the adwords website and
there was no error.

POST /api/adwords/v13/reseller/CampaignService HTTP/1.0
Content-Type: text/xml; charset=utf-8
Accept: application/soap+xml, application/dime, multipart/related,
text/*
User-Agent: Axis/1.4
Host: adwords.google.com
Cache-Control: no-cache
Pragma: no-cache
SOAPAction: ""
Content-Length: 2527

<?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:email
soapenv:actor="http://schemas.xmlsoap.org/soap/actor/next";
soapenv:mustUnderstand="0" xmlns:ns1="https://adwords.google.com/api/
adwords/v13/reseller">XXXXXXXX</ns1:email><ns2:password
soapenv:actor="http://schemas.xmlsoap.org/soap/actor/next";
soapenv:mustUnderstand="0" xmlns:ns2="https://adwords.google.com/api/
adwords/v13/reseller">ZZZZZZ</ns2:password><ns3:useragent
soapenv:actor="http://schemas.xmlsoap.org/soap/actor/next";
soapenv:mustUnderstand="0" xmlns:ns3="https://adwords.google.com/api/
adwords/v13/reseller">XXXXXX</ns3:useragent><ns4:developerToken
soapenv:actor="http://schemas.xmlsoap.org/soap/actor/next";
soapenv:mustUnderstand="0" xmlns:ns4="https://adwords.google.com/api/
adwords/v13/reseller">XXXXXX</ns4:developerToken><ns5:applicationToken
soapenv:actor="http://schemas.xmlsoap.org/soap/actor/next";
soapenv:mustUnderstand="0" xmlns:ns5="https://adwords.google.com/api/
adwords/v13/reseller">XXXXXX</ns5:applicationToken><ns6:clientEmail
soapenv:actor="http://schemas.xmlsoap.org/soap/actor/next";
soapenv:mustUnderstand="0" xmlns:ns6="https://adwords.google.com/api/
adwords/v13/reseller">XXXXX</ns6:clientEmail></
soapenv:Header><soapenv:Body><updateCampaign xmlns="https://
adwords.google.com/api/adwords/v13/
reseller"><campaign><budgetAmount>1000000000</
budgetAmount><budgetOptimizerSettings xsi:nil="true"/
><budgetPeriod>Daily</budgetPeriod><contentTargeting xsi:nil="true"/
><geoTargeting><metroTargets><metros>571</metros><metros>624</
metros><metros>656</metros><metros>584</metros><metros>686</
metros><metros>602</metros><metros>534</metros><metros>725</
metros><metros>740</metros><metros>652</metros><metros>545</
metros><metros>613</metros><metros>722</metros><metros>765</
metros><metros>764</metros><metros>604</metros><metros>531</
metros><metros>839</metros><metros>509</metros><metros>567</metros></
metroTargets><targetAll>false</targetAll></geoTargeting><id>999999999</
id><languageTargeting><languages>en</languages></
languageTargeting><name>National</
name><networkTargeting><networkTypes>ContentNetwork</
networkTypes><networkTypes>SearchNetwork</networkTypes></
networkTargeting><schedule xsi:nil="true"/><status>Active</status></
campaign></updateCampaign></soapenv:Body></soapenv:Envelope>

The error is:

<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><responseTime soapenv:actor="http://
schemas.xmlsoap.org/soap/actor/next" soapenv:mustUnderstand="0"
xmlns="https://adwords.google.com/api/adwords/v13/reseller";>97</
responseTime><operations soapenv:actor="http://schemas.xmlsoap.org/
soap/actor/next" soapenv:mustUnderstand="0" xmlns="https://
adwords.google.com/api/adwords/v13/reseller">1</operations><units
soapenv:actor="http://schemas.xmlsoap.org/soap/actor/next";
soapenv:mustUnderstand="0" xmlns="https://adwords.google.com/api/
adwords/v13/reseller">1</units><requestId soapenv:actor="http://
schemas.xmlsoap.org/soap/actor/next" soapenv:mustUnderstand="0"
xmlns="https://adwords.google.com/api/adwords/v13/
reseller">XXXXXXXXXXXXXXXXXX</requestId></
soapenv:Header><soapenv:Body><soapenv:Fault>
     <faultcode>soapenv:Server.userException</faultcode>

     <faultstring>One or more input elements failed validation.</
faultstring>

     <detail>
      <ns1:fault xmlns:ns1="https://adwords.google.com/api/adwords/v13/
reseller">
       <ns1:code>122</ns1:code>

       <ns1:message>One or more input elements failed validation.</
ns1:message>

       <ns1:errors>
        <ns1:index>0</ns1:index>

        <ns1:field>geoTargeting</ns1:field>

        <ns1:trigger>725</ns1:trigger>

        <ns1:code>29</ns1:code>

        <ns1:isExemptable>false</ns1:isExemptable>

        <ns1:detail>Cannot target a location already enclosed by
another location target.</ns1:detail>

     </ns1:errors>

    </ns1:fault>

   </detail>

  </soapenv:Fault></soapenv:Body></soapenv:Envelope>


What is the recommended way to handle this error? Remove offending
metro? Break it down into cities? Use states? Anything else?

Thanks,
Maxim
--~--~---------~--~----~------------~-------~--~----~
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