Connecting AdWords Scripts & The Advanced Calendar API

By Russell Savage

events-calendar-schedule-ss-1920

AdWords scripts just got a lot more useful thanks to the recent rollout of Advanced APIs.

These additional APIs allow AdWords scripts to access other Google services like Google Analytics and Google Calendar. Anyone familiar with other Google Scripts will recognize these objects as the same ones available there.

Today we are going to focus on the Calendar API and build an integration that allows you to monitor campaign start and end dates via your Google calendar.

Many times, for meetings or reporting, it helps to see things laid out in a week or month view so that overlapping items stand out. This script will create entries on a separate calendar representing the duration of your campaigns.

The first thing I recommend doing is creating a new calendar in your Google account to hold the campaign start and end dates. This way, you can easily share the calendar with other team members or hide it to reduce clutter. I named mine “AdWords,” but you can name it whatever you like.

Create A New Google Calendar

Now that you have a place to put all your events, let’s start writing some code. When you open a new scripting window, you will notice a new button next to the Preview button titled “Advanced APIs.” This is where you will need to enable the use of the Calendar API before you continue.

You will also need to enable the API in the Developers Console. Just click the link at the bottom of the dialog box and follow the prompts.

Once everything is enabled, go back to your AdWords script window and complete the authorization process as normal. You will now have access to a new Calendar class in your scripts. You will need to follow this initial set up process for …read more

Source:: SearchEngineLand

      

Better Results Start Here Call Now 231-680-0624
 Organic SEO
Rated 4.8/5 based on 38 reviews
Web Design Traverse City
Rated 4.8/5 based on 19 reviews
SEO
Rated 4.7/5 based on 36 reviews
SEO Companies
Rated 4.8/5 based on 29 reviews
Social Media
Rated 5.0/5 based on 12 reviews
Reputation Management
Rated 5.0/5 based on 16 reviews
Google Penalty Recovery
Rated 5.0/5 based on 9 reviews
Web Design
Rated 4.7/5 based on 47 reviews