Google Adwords scripting for Tomorrow

Adwords comes with a scripting language. You can use it to control your ads, to set bids, to respond to events and to generate reports.

Hello World

Your scripts all start with a main function. Google will run this function for you.

We get access to a logger object from which we can output strings and objects.

function main() {
Logger.log('Hey there adwords!')

Exercise - Hello World

Let's create the simples possible script now.

  1. Create a script that just outputs "Hello Adwords".
  2. Write a script that calculates the number of weeks in 80 years.


We can of course split out script out into functions and variables, just like regular JavaScript.

function main() {
function sayHello() {
var greeting = 'Hey there adwords!';

Do you like Email? Do You Like JavaScript?

Sign up for occasional emails covering modern Web Development topics such as Angular 2 and React. You can unsubscribe at any time.

We totally respect your email privacy

comments powered by Disqus