I have a strange problems using verticals in sandbox account.

1.) Retrieve list of verticals from
http://code.google.com/apis/adwords/docs/appendix/verticals.csv
Currently there are  1789 vertical categories there


2.) Create verticals using AdGroupService in sandbox for all retrieved
verticals.

This fails for 13 verticals, all containing comma in name of the
category:


          '[Arts & Entertainment, Movies, Thriller, Crime & Mystery
Films]' => 'INVALID_VERTICAL_PATH',
          "[World Localities, Latin America, Caribbean, Aruba, Bonaire
& Cura\x{e7}ao]" => 'INVALID_VERTICAL_PATH',
          '[Autos & Vehicles, Vehicle Shopping, Vehicle Specs, Reviews
& Comparisons]' => 'INVALID_VERTICAL_PATH',
          '[Computers & Electronics, Computer Hardware, Computer
Peripherals, Printers, Copiers & Fax, Fax Machines]' =>
'INVALID_VERTICAL_PATH',
          '[Computers & Electronics, Computer Hardware, Computer
Peripherals, Printers, Copiers & Fax, Ink & Toner]' =>
'INVALID_VERTICAL_PATH',
          '[Computers & Electronics, Computer Hardware, Computer
Peripherals, Printers, Copiers & Fax, Printers]' =>
'INVALID_VERTICAL_PATH',
          '[Computers & Electronics, Consumer Electronics, Camera &
Photo Equipment, Binoculars, Telescopes & Optical Devices]' =>
'INVALID_VERTICAL_PATH',
          '[Computers & Electronics, Computer Hardware, Computer
Peripherals, Printers, Copiers & Fax, Scanners]' =>
'INVALID_VERTICAL_PATH',
          '[Hobbies & Leisure, Contests, Awards & Prizes]' =>
'INVALID_VERTICAL_PATH',
          '[Computers & Electronics, Computer Hardware, Computer
Peripherals, Printers, Copiers & Fax, Copiers]' =>
'INVALID_VERTICAL_PATH',
          '[Computers & Electronics, Computer Hardware, Computer
Peripherals, Printers, Copiers & Fax]' => 'INVALID_VERTICAL_PATH',
          '[Reference, General Reference, How-To, DIY & Expert
Content]' => 'INVALID_VERTICAL_PATH',
          '[Computers & Electronics, Consumer Electronics, Gadgets &
Portable Electronics, MP3 & Portable Media Players]' =>
'INVALID_VERTICAL_PATH'

3.) SOAP request is correct, with comma properly passed as in
vertical. Sample:

    <mutate xmlns="https://adwords.google.com/api/adwords/cm/v201101";>
      <operations>
        <operator>ADD</operator>
        <operand xmlns:ns2="https://adwords.google.com/api/adwords/cm/
v201101" xsi:type="ns2:BiddableAdGroupCriterion">
          <ns2:adGroupId>3060635959</ns2:adGroupId>
          <ns2:criterion xsi:type="ns2:Vertical">
            <ns2:Criterion.Type>Vertical</ns2:Criterion.Type>
            <ns2:path>Computers &amp; Electronics</ns2:path>
            <ns2:path>Consumer Electronics</ns2:path>
            <ns2:path>Camera &amp; Photo Equipment</ns2:path>
            <ns2:path>Binoculars, Telescopes &amp; Optical Devices</
ns2:path>
          </ns2:criterion>
          <ns2:AdGroupCriterion.Type>BiddableAdGroupCriterion</
ns2:AdGroupCriterion.Type>
        </operand>
      </operations>

4.) Response shows that there is problem with  comma:


HTTP/1.0 500 Internal Server Error
Content-Type text/xml; charset=UTF-8
Date Mon, 23 May 2011 12:08:36 GMT
[... cut headers ...]

<?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/
v201101">
      <requestId>0749e0256ba7df21837f9491c43c4739</requestId>
      <operations>1</operations>
      <responseTime>171</responseTime>
      <units>15</units>
    </ResponseHeader>
  </soap:Header>
  <soap:Body>
    <soap:Fault>
      <faultcode>soap:Server</faultcode>
      <faultstring>[CriterionError.INVALID_VERTICAL_PATH @
operations[0].operand.criterion.path; trigger:'[Computers &amp;
Electronics, Consumer Electronics, Camera &amp; Photo Equipment,
Binoculars, Telescopes &amp; Optical Devices]']</faultstring>
      <detail>
        <ApiExceptionFault xmlns="https://adwords.google.com/api/
adwords/cm/v201101">
          <message>[CriterionError.INVALID_VERTICAL_PATH @
operations[0].operand.criterion.path; trigger:'[Computers &amp;
Electronics, Consumer Electronics, Camera &amp; Photo Equipment,
Binoculars, Telescopes &amp; Optical Devices]']</message>
          <ApplicationException.Type>ApiException</
ApplicationException.Type>
          <errors xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance" xsi:type="CriterionError">
            <fieldPath>operations[0].operand.criterion.path</
fieldPath>
            <trigger>[Computers &amp; Electronics, Consumer
Electronics, Camera &amp; Photo Equipment, Binoculars, Telescopes
&amp; Optical Devices]</trigger>
            <errorString>CriterionError.INVALID_VERTICAL_PATH</
errorString>
            <ApiError.Type>CriterionError</ApiError.Type>
            <reason>INVALID_VERTICAL_PATH</reason>
          </errors>
        </ApiExceptionFault>
      </detail>
    </soap:Fault>
  </soap:Body>
</soap:Envelope>

It looks like request is incorrectly parsed upon receiving in the
AdGroupService, as resulting XML has mixed up commas in *trigger *
tag.


-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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