Perl module Google::Adwords v1.2.2 released
April 15th, 2007 by RohanI released v1.2.2 of the Google::Adwords Perl module.
What is Google::Adwords ?
This is a collection of Perl modules that provide an easy to use object oriented interface to the Google Adwords SOAP API. You don’t need to understand SOAP or web services to use this module.
This is an example which shows how you can retrieve this month’s total usage quota:
use Google::Adwords::InfoService;
# Create a new InfoService object
my $ginfo = Google::Adwords::InfoService->new();# Your Adwords API login details
$ginfo->email(’email@domain.com’)
->password(’password’)
–>developerToken(’developer_token’)
–>applicationToken(’application_token’);# If you use a MCC
$ginfo->clientEmail(’clientemail@domain.com’);# Call the getUsageQuotaThisMonth() method
my $quota = $ginfo->getUsageQuotaThisMonth;
print “Usage quota this month is $quota units\n”;
Changes since v1.2:
- bug fix in AdService::findBusinesses() to encode html entities
- only encode ‘<>&’ characters in the request XML. Thanks to Steven Sattin for suggesting this.
- Kwalitee related changes:
- LICENCE renamed to LICENSE (hope this works)
- Added t/pod.t to test for POD correctness using Test::Pod
- All modules now have use strict
- All code formatted through perltidy
Many thanks to the Adwords API team for including a link to my CPAN page on the Perl sample code page!
