The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Google::Adwords::CampaignService - Interact with the Google Adwords CampaignService API calls

VERSION

This documentation refers to Google::Adwords::CampaignService version 0.0.1

SYNOPSIS

    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;
 
  
  

METHODS

addCampaign()

Description

    Create a new campaign.

Usage

        my $campaign = $obj->addCampaign({
            campaign => $campaign_obj
        });

Parameters

Takes a hashref with following params:

    1) campaign - A Google::Adwords::Campaign object

Returns

    $campaign => The new campaign details as a Google::Adwords::Campaign object

AUTHOR

Rohan Almeida <rohan@almeida.in>

LICENCE AND COPYRIGHT

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.