Expanded text Ad builder "Enter fewer characters" error

1,135 views
Skip to first unread message

Toms Sīmanis

unread,
Sep 28, 2016, 3:04:04 AM9/28/16
to AdWords Scripts Forum
Hello!

I am creating an script that automatically creates text ads, but there is error "Enter fewer characters".

Headline Part 1 text I am trying to create - "Šonakt ārā būs {=weather.Temp}" , and it is precisely 30 characters long.

Here is code I am trying to make happen:




var SHEETNAMES = ['Weather','Weather Ad Builder'];

function main(){

  var spreadsheet = SpreadsheetApp.openByUrl(SPREADSHEET_URL);
  
  var sheet = spreadsheet.getSheetByName(SHEETNAMES[1]);
  
  var mrows = sheet.getMaxRows();
  
  for (var i = 2; i<=mrows; i++){
    
    var headlinePart1 = sheet.getRange(i, 1).getValue();
    
    var headlinePart2 = sheet.getRange(i, 2).getValue();
    
    var Addescription = sheet.getRange(i, 3).getValue();
    
    var path1 = sheet.getRange(i, 4).getValue();
    
    var path2 = sheet.getRange(i, 5).getValue();
    
    var FinalUrl = sheet.getRange(i, 6).getValue();
    
    var ACCID = sheet.getRange(i, 7).getValue();
    
    var CAMPID = sheet.getRange(i, 8).getValue();
    
    var ADGID = sheet.getRange(i, 9).getValue();
  
  var accountIterator = MccApp.accounts().withIds(["'"+ACCID+"'"]).get();
  
  var mccAccount= AdWordsApp.currentAccount();
  
  while (accountIterator.hasNext()) {
    
    var account = accountIterator.next(),
        
        accountId = account.getCustomerId(),
        
        accountName = account.getName();
    
    MccApp.select(account);
    
    var CampIter = AdWordsApp.campaigns().withIds(["'"+CAMPID+"'"]).get();
    
    while (CampIter.hasNext()){
      
      var Camp = CampIter.next();
      
      var AdGroupIter = Camp.adGroups().withIds(["'"+ADGID+"'"]).get();
      
      while (AdGroupIter.hasNext()){
        
        var AdGroup = AdGroupIter.next();
        
        AdGroup.newAd()
        
        .expandedTextAdBuilder()
        
        .withHeadlinePart1(headlinePart1)
        
        .withHeadlinePart2(headlinePart2)
        
        .withDescription(Addescription)
        
        .withPath1(path1)
        
        .withPath2(path2)
        
        .withFinalUrl(FinalUrl)
        
        .withCustomParameters('Status = PAUSED')
        
        .build()
        
      }
        
      }
      
    }
    
  }




Thanks in advance!

Tyler Sidell (AdWords Scripts Team)

unread,
Sep 28, 2016, 10:24:01 AM9/28/16
to AdWords Scripts Forum
Hi Toms,

Have you tried to remove a few characters and run the script again to see if it works?  I have not been able to reproduce the issue on my end as I don't have access to your spreadsheet setup.  I requested access and if you want you can also provide us with your CID (reply privately to the author) for us to take a look.

Thanks,
Tyler Sidell
AdWords Scripts Team

Toms Sīmanis

unread,
Sep 29, 2016, 2:19:25 AM9/29/16
to AdWords Scripts Forum
Yes, I tried to remove few characters and made it half shorter, but it still didn't work.

Tyler Sidell (AdWords Scripts Team)

unread,
Sep 29, 2016, 10:33:40 AM9/29/16
to AdWords Scripts Forum
Hi Toms,

I've having some trouble duplicating this issue on my test account.  I've created the new expanded ads but did not receive any errors about character limits.  Would you be able to provide your CID (reply privately to the author) so that I can try to run the script from your account to see if there's something else going on here?

Thanks,
Tyler Sidell
AdWords Scripts Team

Doug Silkstone

unread,
Nov 23, 2016, 9:13:41 AM11/23/16
to AdWords Scripts Forum
Morning guys

Any luck on this? Also grabbing the 'Enter fewer characters' error, despite cutting #characters.
Can I get someone to take a look privately?

Denis Rebenok

unread,
Aug 9, 2017, 4:44:45 PM8/9/17
to AdWords Scripts Forum
Hello
Any news? It still doesn't work properly :(

Anthony Madrigal

unread,
Aug 10, 2017, 10:43:40 AM8/10/17
to AdWords Scripts Forum
Hi Denis,

Since this is an old thread, could you please create a new one and provide details on the issues you are facing?

Thanks,
Anthony
AdWords Scripts Team

supert...@gmail.com

unread,
Aug 31, 2017, 4:04:54 PM8/31/17
to AdWords Scripts Forum
i  m trying to upload my video on youtube for ads but when i fill description it aways shows "enter fewer characters". what why how pls some one explain tired all possible ways, i m nt a coder.

Anthony Madrigal

unread,
Aug 31, 2017, 4:08:06 PM8/31/17
to AdWords Scripts Forum
Hi,

Please create a new thread with details on your issue since this is an old thread. It will be easier for us to keep track of.

Regards,
Anthony
AdWords Scripts Team
Reply all
Reply to author
Forward
0 new messages