Google::Ads::Common::ReportDownloadHandler
Represents a report response from the AdWords API.
The following properties may be accessed using get_PROPERTY methods:
client
A reference to a Google::Ads::AdWords::Client.
__user_agent (Private)
A reference to an LWP::UserAgent.
__http_request (Private)
A reference to an HTTP::Request.
download_format
The download format of the request.
Constructor. The following data structure may be passed to new():
{ # Google::Ads::Common::ReportDownloadHandler client => $response, # A ref to a Google::Ads::AdWords::Client object __user_agent => $user_agent, # A ref to an LWP::UserAgent __http_request => $request, # A ref to an HTTP::Request object download_format => $download_format, # The download format for the request },
Issues the report request to the AdWords API and returns the report contents as a string.
The report contents as a string if the request is successful. Otherwise, returns a Google::Ads::Common::ReportDownloadError. Check for failures by evaluating the return value in a boolean context, where a Google::Ads::Common::ReportDownloadError will always evaluate to false.
Returns a Google::Ads::Common::ReportDownloadError if the report request fails.
Issues the report request to the AdWords API and saves the report contents to a file.
The destination file for the report contents.
Issues the report request to the AdWords API and invokes a callback for each chunk of content received. Use this method to process the report contents as a stream.
A content_callback that will be invoked for each chunk of data returned by the report request. Each invocation will be passed two arguments:
The chunk of data
The HTTP::Response
An HTTP::Response if the request is successful. Otherwise, returns a Google::Ads::Common::ReportDownloadError. Check for failures by evaluating the return value in a boolean context, where a Google::Ads::Common::ReportDownloadError will always evaluate to false.
To install Google::Ads::AdWords::Client, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Google::Ads::AdWords::Client
CPAN shell
perl -MCPAN -e shell install Google::Ads::AdWords::Client
For more information on module installation, please visit the detailed CPAN module installation guide.