AdWordReportServiceAdWords Lib Report Service Class
Report Service provides operations for getting reports about your AdWords account
Located in /services/AdWordReportService.inc
AdWordService | --AdWordReportService
AdWordReportService Constructor. It takes one parameter - name of a supported by AdWords Lib SOAP toolkit
Example:
- <?php
- ?>
Deletes a report job along with the report it produced, if any.
Example:
- <?php
- $reportService->setAccount($myEmail, $myPass, $myUserAgent, $myDeveloperToken, $myApplicationToken);
- //$reportJobId - ID of the ReportJob
- if ($response === false) { // if an error appears
- echo $errr->toString(); //output error
- exit();
- }
- //$response == true
- ?>
Returns an array consisting of all jobs the user has scheduled
Example:
- <?php
- $reportService->setAccount($myEmail, $myPass, $myUserAgent, $myDeveloperToken, $myApplicationToken);
- if ($response === false) { // if an error appears
- echo $errr->toString(); //output error
- exit();
- }
- //$response is an array of objects of class AdWordReportJob
- ?>
Returns a URL from which the report with the given job ID can be downloaded (in Gzip format)
After invoking this method, the caller can do a regular HTTP GET on the returned URL to retrieve the report.
NOTE: To extract the gzip archive use: $xmlFile=gzinflate(substr($downloadedFile,10));
Example:
- <?php
- $reportService->setAccount($myEmail, $myPass, $myUserAgent, $myDeveloperToken, $myApplicationToken);
- //$reportJobId - ID of the ReportJob
- if ($response === false) { // if an error appears
- echo $errr->toString(); //output error
- exit();
- }
- //$response - A URL from which the compressed report can be downloaded.
- ?>
Returns a URL from which the report with the given job ID can be downloaded
After invoking this method, the caller can do a regular HTTP GET on the returned URL to retrieve the report.
Example:
- <?php
- $reportService->setAccount($myEmail, $myPass, $myUserAgent, $myDeveloperToken, $myApplicationToken);
- //$reportJobId - ID of the ReportJob
- if ($response === false) { // if an error appears
- echo $errr->toString(); //output error
- exit();
- }
- //$response - URL from which the report can be downloaded
- ?>
Returns the status of the report job with the given reportJobId
Example:
- <?php
- $reportService->setAccount($myEmail, $myPass, $myUserAgent, $myDeveloperToken, $myApplicationToken);
- //$reportJobId - ID of the ReportJob
- if ($response === false) { // if an error appears
- echo $errr->toString(); //output error
- exit();
- }
- //$response - The report job status
- ?>
Schedules a report job for execution
Example:
- <?php
- $reportService->setAccount($myEmail, $myPass, $myUserAgent, $myDeveloperToken, $myApplicationToken);
- //$reportJ is an object of class AdWordReportJob
- if ($response === false) { // if an error appears
- echo $errr->toString(); //output error
- exit();
- }
- //$response - a handle to the scheduled report job
- ?>
Inherited From AdWordService
AdWordService::AdWordService()
AdWordService::callService()
AdWordService::getAccount()
AdWordService::getClientCustomerId()
AdWordService::getClientEmail()
AdWordService::getLastError()
AdWordService::getResponseHeaders()
AdWordService::setAccount()
AdWordService::setClientCustomerId()
AdWordService::setClientEmail()
Documentation generated on Mon, 10 Sep 2007 15:07:25 +0300 by phpDocumentor 1.3.2