Google::Adwords::AdGroup - A Google Adwords AdGroup Object
This documentation refers to Google::Adwords::AdGroup version 0.0.2
use Google::Adwords::AdGroup; use Google::Adwords::AdGroupService; # create a new adgroup object my $adgroup = Google::Adwords::AdGroup->new; # in campaign having ID 4567 my $campaign_id = 4567; # set values for the adgroup object $adgroup->name('My Final Try'); $adgroup->maxCpc(2000000); # create the adgroup service object my $adgroup_service = Google::Adwords::AdGroupService->new(); # need to login to the Adwords service $adgroup_service->email($email_address) ->password($password) ->developerToken($developer_token) ->applicationToken($application_token); # if you use a MCC #$adgroup_service->clientEmail($client_email); # now create the adgroup my $adgroup_response = $adgroup_service->addAdGroup($campaign_id, $adgroup); print "New adgroup ID is :" . $adgroup_response->id;
This object should be used with the AdGroupService API calls
Mutators (read/write)
* name
* campaignId
* maxCpm
* maxCpc
* maxContentCpc
* status
Accessors (read only)
* id
Google::Adwords::AdGroupService
Rohan Almeida <rohan@almeida.in>
Mathieu Jondet <mathieu@eulerian.com>
Copyright (c) 2006 Rohan Almeida <rohan@almeida.in>. All rights reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
To install Google::Adwords, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Google::Adwords
CPAN shell
perl -MCPAN -e shell install Google::Adwords
For more information on module installation, please visit the detailed CPAN module installation guide.