HeadlinePart1 line too wide error

187 views
Skip to first unread message

Carmine Pagliaro

unread,
Aug 30, 2017, 1:20:48 AM8/30/17
to AdWords API Forum
Hi all,
How can I reproduce the headline part 1 backup text (e.i {keyword: backuptext}) via api?

I have the headline1 field like {keyword: my personal backup ads} that if I load it via adword panel it's ok.

If I load it via API:

ExpandedTextAd expandedTextAd = new ExpandedTextAd();
            expandedTextAd
.setHeadlinePart1("{keyword: my personal backup ads}");

I get the LINE_TOO_WIDE adError.

How can I solve this problem?

Vincent Racaza (AdWords API Team)

unread,
Aug 30, 2017, 1:55:55 AM8/30/17
to AdWords API Forum
Hi Carmine,

The LINE_TOO_WIDE error means that the number of characters in your line, specifically in headlinePart1, is longer than the maximum allowed length. For headlinePart1, the maximum length is 30 characters as described here.

Since you said that in the UI, your ad loaded successfully with your headlinePart1, could you confirm if the number of characters is more than 30 characters? If so, could you provide a UI screenshot via Reply privately to author?

Thanks,
Vincent
AdWords API Team

Carmine Pagliaro

unread,
Aug 30, 2017, 4:08:11 AM8/30/17
to AdWords API Forum
Hi Vincent,
thanks for your answer.

The text length {keyword: my personal backup ads} is 33 or 23 (because google don't consider the {keyword: } characters ) ?
For me in the UI is 23, but in the Api Java call is 33.

Which is the correct?

Vincent Racaza (AdWords API Team)

unread,
Aug 30, 2017, 5:24:46 AM8/30/17
to AdWords API Forum
Hi Carmine,

Apologies as I have not realized this at first. It should not have considered the {keyword: } in counting the length of characters. In my test account, I was able to add successfully an expanded text ad with headlinePart1 same as yours. Below is the sample SOAP response which shows a successful creation:

<value>
   
<adGroupId>XXXXXXXXXXXX</adGroupId>
   
<ad xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ExpandedTextAd">
       
<id>XXXXXXXXXXXX</id>
       
<finalUrls>http://www.example.com/0</finalUrls>
       
<type>EXPANDED_TEXT_AD</type>
       
<Ad.Type>ExpandedTextAd</Ad.Type>
       
<headlinePart1>{keyword: my personal backup ads}</headlinePart1>
       
<headlinePart2>Best Space Cruise Line</headlinePart2>
       
<description>Buy your tickets now!</description>
   
</ad>
   
<status>PAUSED</status>
   
<approvalStatus>UNCHECKED</approvalStatus>
</value>

It is weird that you are having this error on your end. Could you provide your SOAP request and response logs via Reply privately to author so I can further investigate? If you haven't enabled the SOAP logs yet, you can enable it by following the "How do I enable logging section?" of this document.

Carmine Pagliaro

unread,
Sep 1, 2017, 9:56:28 AM9/1/17
to AdWords API Forum
Problem SOLVED.

Problem related to the text length


On Wednesday, August 30, 2017 at 7:20:48 AM UTC+2, Carmine Pagliaro wrote:
Reply all
Reply to author
Forward
0 new messages