New features in AdWords scripts

196 views
Skip to first unread message

Kevin Winter (AdWords Scripts Team)

unread,
Jan 23, 2013, 8:37:47 AM1/23/13
to adwords...@googlegroups.com
We're happy to announce several new features in AdWords scripts.

Here's a sample script that copies an ad group:

 var campaign = AdWordsApp.campaigns().get().next();
 var toCopy = campaign.adGroups()
     .withCondition('Name="California"')
     .get().next();

  var adGroupBuilder = campaign.newAdGroupBuilder()
     .withName('New York')
     .withKeywordMaxCpc(toCopy.getKeywordMaxCpc())
     // start off paused - let's review before launching this ad group!
     .withStatus('PAUSED');
 var copy = adGroupBuilder.create();
 
 // copy keywords
 var keywords = toCopy.keywords().get();
 
 while(keywords.hasNext()) {
   var keyword = keywords.next();
   copy.createKeyword(keyword.getText(), keyword.getMaxCpc(), keyword.getDestinationUrl());
 }

  // copy ads
 var ads = toCopy.ads().get();
 
 while(ads.hasNext()) {
   var ad = ads.next();
   if(ad.getType() == 'TEXT_AD') {
     copy.createTextAd(ad.getHeadline(), ad.getDescription1(), ad.getDescription2(), ad.getDisplayUrl(), ad.getDestinationUrl());
   }
 }

- Kevin Winter
AdWords Scripts Team

Mathiseelan V

unread,
Jan 23, 2013, 8:51:38 AM1/23/13
to adwords...@googlegroups.com
hi could you please tell how to use this script in our website

Kevin Winter (AdWords Scripts Team)

unread,
Jan 23, 2013, 9:05:38 AM1/23/13
to adwords...@googlegroups.com
Hi,
  You might want to take a look at our Getting Started guide, which walks you through creating your first script.  Once you've created your first script, you can copy and paste the sample script into the main() function and hit preview to see what it will do.

- Kevin Winter
AdWords Scripts Team

Mathiseelan V

unread,
Jan 23, 2013, 9:12:12 AM1/23/13
to adwords...@googlegroups.com
Thanks for your valuable suggestion, please can you provide any video tutorials for this process.

By
Mathi

Mathiseelan V

unread,
Jan 23, 2013, 9:17:03 AM1/23/13
to adwords...@googlegroups.com
Please make me clear how to use this script code in my website page?

Kevin Winter (AdWords Scripts Team)

unread,
Jan 23, 2013, 9:25:05 AM1/23/13
to adwords...@googlegroups.com
Hi,
  This video walks through a tutorial: http://www.youtube.com/watch?v=Ie4H2Pb3OYc

Note that AdWords scripts are hosted on Google's servers and can be scheduled to run periodically, or you can log in to AdWords and explicitly run the script.

- Kevin Winter
AdWords Scripts Team

Mathiseelan V

unread,
Jan 23, 2013, 9:34:42 AM1/23/13
to adwords...@googlegroups.com
Thanks for your valuable suggestion, another doubt whether can we load the google advertisement images based on product names(like vortex), is it possible?

Kevin Winter (AdWords Scripts Team)

unread,
Jan 23, 2013, 9:54:58 AM1/23/13
to adwords...@googlegroups.com
Hi,
  I'm not sure what you mean.  Currently, only text ads can be manipulated via AdWords Scripts.

- Kevin Winter
AdWords Scripts Team

Mathiseelan V

unread,
Jan 23, 2013, 10:51:30 AM1/23/13
to adwords...@googlegroups.com
Thanks, can we change google text ads dynamically based on adword given through parameter. please review this link(http://demo.moogi.com/html5_ad). 

Kevin Winter (AdWords Scripts Team)

unread,
Jan 23, 2013, 11:43:24 AM1/23/13
to adwords...@googlegroups.com
Yes, please see this tutorial covering Ad Params.

- Kevin Winter
AdWords Scripts Team

Mathiseelan V

unread,
Jan 23, 2013, 11:46:55 AM1/23/13
to adwords...@googlegroups.com
Thanks Kevin

Martin Roettgerding

unread,
Feb 3, 2013, 9:48:37 AM2/3/13
to adwords...@googlegroups.com
Just wanted to say thanks for this. Labels and adgroup creation were the top two features I was waiting for (ID's are #3 ;) Glad to see that new features are still added.
Reply all
Reply to author
Forward
0 new messages