NAME

Google::Adwords::Service - Base class for the Service modules

VERSION

This documentation refers to Google::Adwords::Service version 0.13

DESCRIPTION

This module is not supposed to be used directly. Use the child Service modules. See the Google::Adwords documentation for the list of available child Service modules.

METHODS

These accessors/methods are available across all the child Service modules

new()

Description

    Creates a new Google::Adwords::*Service object

Usage

    my $service = Google::Adwords::CampaignService->new();

Parameters

    NONE

Returns

    A Google::Adwords::*Service object

email()

    Set your Google Adwords account name (your email address). This 
    value should be set before calling any other API methods

password()

    Set your Google Adwords account password. This 
    value should be set before calling any other API methods

developerToken()

    Set your Google Adwords developer token. This 
    value should be set before calling any other API methods

applicationToken()

    Set your Google Adwords application token. This 
    value should be set before calling any other API methods

clientEmail()

    Use this if you have a MCC (My Client Center) account. Set the actual
    client email which will be used for the API calls.

clientCustomerId()

    Use this if you have a MCC (My Client Center) account. Set the actual
    client customerid which will be used for the API calls.
    One of clientEmail and clientCustomerId must be set but NOT both.

useragent()

    Set this to an arbitrary string that identifies the customer sending the
    request. Default value is "Google::Adwords $VERSION"

api_version()

    The Adwords API version you want to use. In format 'v*'. So, to use 
    version 7 of the API, set this to a value of 'v7'. Default value is 'v9'.

use_sandbox()

    If you do $obj->use_sandbox(1), then this module will use the 
    sandbox for all API calls. 

timeout()

    Set the SOAP timeout value in seconds. Default value is 35 seconds.

debug()

    Use $obj->debug(1) if you want to trace the request/response XML

api_version()

    Returns version information for the Adwords API

The following accessors are available after an API call is done. These give information about the response

requestId()

    Get the unique ID that identifies this request.

operations()

    number of operations in the request

units()

    number of quota units the request used

responseTime()

    elapsed time between the web service receiving the request and sending the response

DEPENDENCIES

  • SOAP::Lite

  • Class::Accessor::Chained

AUTHOR

Rohan Almeida <rohan@almeida.in>

LICENSE 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.