May 082012
 

(leer este artículo en español)

In this post we will explain how to use in Perl the v201109 version of the Google Adwords API. We make the assumption that the reader is already using a Google Adwords account, and that there are already in the account some adwords campaigns created, with some adgroups in them.

We start by downloading the library from Google’s website:
http://code.google.com/p/google-api-adwords-perl/downloads/list

When we access the above url in a browser, we find that the last available release of the library is in a file named awapi_perl_lib_2_5_6.tar.gz.

Once downloaded and uncompressed, we can try the sample perl script to retrieve the campaign identifiers:

In line three we write the location where we have put the library. In following lines, we include the library modules we are going to use.

Next comes the definition of the ‘get_campaigns()’ function, that we’ll review later, and finally the main program where we establish a connection to AdWords and call ‘get_campaigns()’.

 Posted by at 6:44 pm

  2 Responses to “How to work with the Google AdWords API in Perl”

  1. […] a previous post we explained how to develop perl script for the automated management of Google AdWords campaings, making use of a perl library that implements the API to access […]

 Leave a Reply

(required)

(required)