AdGroup.createKeyword() function

158 views
Skip to first unread message

d.araneda...@chal-tec.com

unread,
Aug 3, 2015, 5:57:24 AM8/3/15
to AdWords Scripts Forum

Hi Guys, 

is the AdGroup.createKeyword() function working?
i cannot create new keywords inside the Adgroup.

Someone with the same situation?

Tyler Sidell (AdWords Scripts Team)

unread,
Aug 3, 2015, 10:08:00 AM8/3/15
to AdWords Scripts Forum
Hi,

The AdGroup.createKeyword() function has been sunset and is no longer supported.  I would suggest looking at the Keyword Builder for this functionality.

Thanks,
Tyler Sidell
AdWords Scripts Team 

Filip Pacalaj

unread,
Aug 5, 2015, 7:57:53 PM8/5/15
to AdWords Scripts Forum
hello,
I just replaced a row, that I used:
 adGroup.createKeyword('[' + positiveKeywords[adGroup.getId()][i] + ']');
        
with this code:

 var keywordOperation = adGroup.newKeywordBuilder()
    .withText('[' + positiveKeywords[adGroup.getId()][i] + ']')
    .build();
 var keyword = keywordOperation.getResult();

i did not used parameters, that are allowed as well:
 .withCpc(1.5)
   
.withFinalUrl("http://www.example.com")


Contevo Clients

unread,
Aug 10, 2015, 12:15:27 AM8/10/15
to AdWords Scripts Forum
Would be great if you guys updated your solutions section so your own scripts weren't outdated. 

Tyler Sidell (AdWords Scripts Team)

unread,
Aug 10, 2015, 11:52:31 AM8/10/15
to AdWords Scripts Forum
Hi Contevo,

Thank you for your suggestion.  I will speak to the rest of the team about making these improvements.

Cheers,
Tyler Sidell
AdWords Scripts Team

d.araneda...@chal-tec.com

unread,
Aug 10, 2015, 11:55:01 AM8/10/15
to AdWords Scripts Forum
Thank you guys, i already solved the problem with my script! :-) 
it´s working fine again!
Reply all
Reply to author
Forward
0 new messages