Nick Wellnhofer > Net-Google-Analytics > Net::Google::Analytics::Request

Download:
Net-Google-Analytics-3.02.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Module Version: 3.02   Source  

NAME ^

Net::Google::Analytics::Request - Google Analytics API request

VERSION ^

version 3.02

SYNOPSIS ^

    my $req = $analytics->new_request(
        ids         => "ga:$profile_id",
        dimensions  => "ga:medium,ga:source",
        metrics     => "ga:bounces,ga:visits",
        filters     => "ga:medium==referral",
        sort        => "-ga:visits",
        start_date  => "2011-10-01",
        end_date    => "2011-10-31",
        max_results => 5,
    );

    my $res = $analytics->retrieve($req);

DESCRIPTION ^

Request class for Net::Google::Analytics web service.

CONSTRUCTOR ^

new

    my $req = Net::Google::Analytics::Request->new(param => $value, ...);
    my $req = $analytics->new_request(param => $value, ...);

Creates a new request object with the given parameters. You can also use the shorthand "new_request" in Net::Google::Analytics.

ACCESSORS ^

    $req->ids('ga:...');
    $req->dimensions('ga:...');

See the API reference for a description of the request parameters. The provided parameter values must not be URL encoded.

ids

Required

start_date

Required

end_date

Required

metrics

Required

dimensions

sort

filters

segment

start_index

max_results

fields

pretty_print

user_ip

quota_user

AUTHOR ^

Nick Wellnhofer <wellnhofer@aevum.de>

COPYRIGHT AND LICENSE ^

This software is copyright (c) 2014 by Nick Wellnhofer.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

syntax highlighting: