Google::Adwords::Business - A Google Adwords Business object.


Google-Adwords documentation Contained in the Google-Adwords distribution.

Index


Code Index:

NAME

Top

Google::Adwords::Business - A Google Adwords Business object.

VERSION

Top

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

SYNOPSIS

Top

    use Google::Adwords::AdService;
    use Google::Adwords::Business;

    # create the AdService object
    my $service = Google::Adwords::AdService->new();

    # need to login to the Adwords service
    $service->email($email_address)
            ->password($password)
            ->developerToken($developer_token)
            ->applicationToken($app_token);

    # if you have a MCC
    $service->clientEmail($client_email);
    # or 
    $service->clientCustomerId($customerid);

    # find businesses
    my @businesses = $service->findBusinesses({
        name            => 'Google',
        address         => 'Street Address,
        countryCode     => 'US',
    });

    for (@businesses) {
        "Phone Number: " . $_->phoneNumber . "\n";
    }




DESCRIPTION

Top

This object should be used with the AdService API calls

METHODS

Top

Accessors

* address

* city

* countryCode

* key

* latitude

* longitude

* name

* phoneNumber

* postalCode

* region

* timestamp

SEE ALSO

Top

* Google::Adwords::AdService

AUTHOR

Top

Rohan Almeida <rohan@almeida.in>

LICENSE AND COPYRIGHT

Top


Google-Adwords documentation Contained in the Google-Adwords distribution.

package Google::Adwords::Business;
use strict;
use warnings;

use version; our $VERSION = qv('0.0.1');

use base 'Google::Adwords::Data';

my @fields = qw/
    address
    city
    countryCode
    key
    latitude
    longitude
    name
    phoneNumber
    postalCode
    region
    timestamp
    /;

__PACKAGE__->mk_accessors(@fields);

sub get_fields
{
    return @fields;
}

1;