name limitations

1,815 views
Skip to first unread message

Tomasz Pajor

unread,
Jan 28, 2012, 5:46:49 AM1/28/12
to AdWords API Forum
Hello,

The name limits on this page are not clear (http://code.google.com/
apis/adwords/docs/appendix/limits.html)

Campaign Name length - 128
Ad group Name length - 255
Criterion Keyword length - 80

I assume that this values are character limit, so the bytes limit
would be

Campaign Name length - 512
Ad group Name length - 1020
Criterion Keyword length - 320

Is this correct?

Danial Klimkin

unread,
Jan 30, 2012, 11:01:49 AM1/30/12
to adwor...@googlegroups.com
Hello Tomasz,


These limits are in characters. The number of bytes depends on the language the string is in as the utf-8 charset can have characters of different size.

All SOAP requests should be sent in utf-8.


-Danial, AdWords API Team.

Dmitriy

unread,
Mar 17, 2012, 6:46:37 AM3/17/12
to adwor...@googlegroups.com
Hello Danial.

Please, could you explain why request

<ns1:operator>ADD</ns1:operator>
        <ns1:operand>
          <ns1:name>ym - Электроника - Мобильная электроника - Автомобильные видеорегистраторы</ns1:name>
          <ns1:budget>
            <ns1:period>DAILY</ns1:period>
            <ns1:amount>
              <ns1:microAmount>1000000000</ns1:microAmount>
            </ns1:amount>
            <ns1:deliveryMethod>STANDARD</ns1:deliveryMethod>
          </ns1:budget>
          <ns1:biddingStrategy xsi:type="ns1:ManualCPC"/>
          <ns1:networkSetting>
            <ns1:targetGoogleSearch>true</ns1:targetGoogleSearch>
            <ns1:targetSearchNetwork>true</ns1:targetSearchNetwork>
            <ns1:targetContentNetwork>false</ns1:targetContentNetwork>
            <ns1:targetContentContextual>false</ns1:targetContentContextual>
            <ns1:targetPartnerSearchNetwork>false</ns1:targetPartnerSearchNetwork>
          </ns1:networkSetting>
        </ns1:operand>

get fault

<faultcode>soap:Server</faultcode>
      <faultstring>[CampaignError.INVALID_CAMPAIGN_NAME @ operations[0].operand.name]</faultstring>
      <detail>
        <ApiExceptionFault xmlns="https://adwords.google.com/api/adwords/cm/v201109">
          <message>[CampaignError.INVALID_CAMPAIGN_NAME @ operations[0].operand.name]</message>
          <ApplicationException.Type>ApiException</ApplicationException.Type>
          <errors xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="CampaignError">
            <fieldPath>operations[0].operand.name</fieldPath>
            <trigger/>
            <errorString>CampaignError.INVALID_CAMPAIGN_NAME</errorString>
            <ApiError.Type>CampaignError</ApiError.Type>
            <reason>INVALID_CAMPAIGN_NAME</reason>
          </errors>
        </ApiExceptionFault>
      </detail>

Thanks, Dmitriy.

Anash P. Oommen

unread,
Mar 19, 2012, 6:03:41 AM3/19/12
to adwor...@googlegroups.com
Hi  Dmitriy,

I think the limits are in number of bytes, I'll check with the team and update this thread.

Cheers,
Anash P. Oommen,
AdWords API Advisor.

AdWordsAPIAdvisor

unread,
Mar 23, 2012, 6:59:25 AM3/23/12
to adwor...@googlegroups.com, Dmitriy
Hello Dmitriy,


Russian characters are represented as two bytes in the UTF-8 encoding. So the total length of the name is more than 128 bytes.


-Danial, AdWords API Team.

Tomasz Pajor

unread,
Apr 27, 2012, 3:10:32 AM4/27/12
to adwor...@googlegroups.com
Any update on this limits?
Reply all
Reply to author
Forward
0 new messages