Any new change about <BR> ?

13 views
Skip to first unread message

Yaniv Lev-Ari

unread,
Jul 7, 2016, 4:58:20 AM7/7/16
to AdWords Scripts Forum
Hi,

In my scripts - I used the <BR> to break the line,
in the emails the script send me, 

like this example:

MailApp.sendEmail(EMAIL_SENDER,
                       EMAIL_REPLY,
                        ACCOUNT_NAME + "Bids have changed ",
                       " Yesterday the average position was " + AVPOS + " and the average cpc was " + AVCPC
                       + " <BR> and the script raised bid to :  " + UP_BID  
                       + " <BR> and the script lowered bid to   " + LOW_BID  
                      );


but since yesterday it print the <BR> instead of breaking the line

Why is that?

Sam Kool

unread,
Jul 7, 2016, 5:54:11 AM7/7/16
to AdWords Scripts Forum
Hey Yaniv,

I don't know what changed, but if you use \n instead of <BR> the linebreaks should work just fine. (Tested on Gmail)


MailApp.sendEmail(EMAIL_SENDER,
                       EMAIL_REPLY,
                        ACCOUNT_NAME + "Bids have changed ",
                       " Yesterday the average position was " + AVPOS + " and the average cpc was " + AVCPC
                       + " \n and the script raised bid to :  " + UP_BID  
                       + " \n and the script lowered bid to   " + LOW_BID  
                      );

Regards,
Sam

Op donderdag 7 juli 2016 10:58:20 UTC+2 schreef Yaniv Lev-Ari:

יניב לב ארי - מנהל מחלקת PPC @ נקסט סייט

unread,
Jul 7, 2016, 7:20:38 AM7/7/16
to Sam Kool via AdWords Scripts Forum
Yeah,

I've tested that and the \n worked
but since I have so many scripts 

I wished to find an easier solution rather than change each one ;)

בברכה,

יניב לב-ארי
מנהל מחלקת קידום ממומן ו PPC
נקסט-סייט 
שגרירים של גוגל מעלים אותך לרשת
בקרו אותנו בפייסבוק:

--
-- You received this message because you are subscribed to the Google Groups AdWords Scripts Forum group. Please do not reply to this email. To post to this group or unsubscribe please visit https://developers.google.com/adwords/scripts/community.
---
You received this message because you are subscribed to a topic in the Google Groups "AdWords Scripts Forum" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/adwords-scripts/oUsbB52R_Z8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to adwords-scrip...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-scripts/31a58bd7-ff30-499c-9f98-c059286e5deb%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Tyler Sidell (AdWords Scripts Team)

unread,
Jul 7, 2016, 10:44:15 AM7/7/16
to AdWords Scripts Forum
Hi Yaniv,

There is no change to <br> or the formatting of HTML in emails that we are aware of.  As Sam stated, you could either use \n or you can use the htmlBody option in the MailApp but this would involve a modification on your end. 

Thanks,
Tyler Sidell
AdWords Scripts Team

On Thursday, July 7, 2016 at 7:20:38 AM UTC-4, יניב לב ארי - מנהל מחלקת PPC @ נקסט סייט wrote:
Yeah,

I've tested that and the \n worked
but since I have so many scripts 

I wished to find an easier solution rather than change each one ;)

בברכה,

יניב לב-ארי
מנהל מחלקת קידום ממומן ו PPC
נקסט-סייט 
שגרירים של גוגל מעלים אותך לרשת
בקרו אותנו בפייסבוק:
Reply all
Reply to author
Forward
0 new messages