Google::Adwords::CampaignService - Interact with the Google Adwords CampaignService API calls
This documentation refers to Google::Adwords::CampaignService version 0.0.1
use Google::Adwords::Campaign; use Google::Adwords::CampaignService; # create a new campaign object my $campaign = Google::Adwords::Campaign; # set values for the campaign object $campaign->name('My Final Try'); $campaign->dailyBudget(10000000); # target a certain city in US $campaign->geoTargeting({ cities => [ 'Pelican, AK US' ], }); # create the campaign service object my $campaign_service = Google::Adwords::CampaignService->new(); # need to login to the Adwords service $campaign_service->email($email_address) ->password($password) ->token($developer_token); # now create the campaign my $campaign_response = $campaign_service->addCampaign({ campaign => $campaign, }); print "New campaign ID is :" . $campaign_response->id;
Create a new campaign.
my $campaign = $obj->addCampaign({ campaign => $campaign_obj });
Takes a hashref with following params:
1) campaign - A Google::Adwords::Campaign object
$campaign => The new campaign details as a Google::Adwords::Campaign object
Rohan Almeida <rohan@almeida.in>
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.