AdWordInfoServiceAdWords Lib Info Service Class
Use this class to work with Google AdWords Info Service. The Info Service allows customers to obtain some basic information about their API usage
Located in /services/AdWordInfoService.inc
AdWordService | --AdWordInfoService
array|false
getUnitCountForClients
(string $clientEmails, string $startDate, string $endDate, [string $clientEmail = ''])
int|false
getUnitCountForMethod
(string $service, string $method, string $startDate, string $endDate, [string $clientEmail = ''])
AdWordInfoService Constructor. It takes one parameter - name of a supported by AdWords Lib SOAP toolkit
Example:
- <?php
- ?>
Designed specifically for AdWords Commercial Developer Program participants.
Retrieves this month's free usage quota for the developer token being used to make this call. For those not enrolled in the AdWords Commercial Developer Program, this value will be identical to that returned for getUsageQuotaThisMonth.
Example:
- <?php
- if ($response === false) { // if an error appears
- echo $errr->toString(); //output error
- exit();
- }
- ?>
Retrieves the cost, in quota units per operation, of the given method on a specific date.
Methods default to a cost of 1.
Example:
- <?php
- $service = 'ReportService';
- $method = 'scheduleReportJob';
- $date = '2005-02-01T00:00:00Z';
- if ($response === false) { // if an error appears
- echo $errr->toString(); //output error
- exit();
- }
- ?>
Retrieves the number of operations recorded for the developer token being used to make this call over a given period
Example:
- <?php
- $start = '2005-01-01T00:00:00Z';
- $end = '2005-02-01T00:00:00Z';
- if ($response === false) { // if an error appears
- echo $errr->toString(); //output error
- exit();
- }
- //$response is the number of operations recorded for the developer token
- //being used to make this call over the given date range
- ?>
Retrieves this month's operations quota for the developer token being used to make this call
Example:
- <?php
- if ($response === false) { // if an error appears
- echo $errr->toString(); //output error
- exit();
- }
- //$response is this month's operations quota for the developer token
- //being used to make this call
- ?>
Retrieves the number of quota units recorded for the developer token being used to make this call over the given date range.
The time zone is implicitly assumed to be Pacific time (PST or PDT). The given dates are inclusive; to get the unit count for a single day, supply it as both the start and end date. An error occurs if the startDate falls after the endDate or if either date is in the future.
Example:
- <?php
- $start = '2005-01-01T00:00:00Z';
- $end = '2005-02-01T00:00:00Z';
- if ($response === false) { // if an error appears
- echo $errr->toString(); //output error
- exit();
- }
- //$response is the number of operations recorded for the developer token
- //being used to make this call over the given date range
- ?>
Retrieves the number of quota units recorded for a subset of clients over the given date range.
The time zone is implicitly assumed to be Pacific time (PST or PDT). The given dates are inclusive; to get the unit count for a single day, supply it as both the start and end date. An error occurs if the startDate falls after the endDate or if either date is in the future.
Example:
- <?php
- $clientEmails = array('john.doe@mail.com', 'jane.dean@mail.com');
- $start = '2006-01-01T00:00:00Z';
- $end = '2006-02-01T00:00:00Z';
- if ($response === false) { // if an error appears
- echo $errr->toString(); //output error
- exit();
- }
- ?>
Retrieves the number of quota units recorded for the developer token being used to make this call over the given date range for a specific method.
The time zone is implicitly assumed to be Pacific time (PST or PDT). The given dates are inclusive; to get the unit count for a single day, supply it as both the start and end date. An error occurs if the startDate falls after the endDate or if either date is in the future.
Example:
- <?php
- $service = 'ReportService';
- $method = 'scheduleReportJob';
- $startDate = '2005-02-01T00:00:00Z';
- $endDate = '2005-04-01T00:00:00Z';
- if ($response === false) { // if an error appears
- echo $errr->toString(); //output error
- exit();
- }
- ?>
Retrieves this month's total usage quota, including free quota usage, or the developer token being used to make this call.
Example:
- <?php
- if ($response === false) { // if an error appears
- echo $errr->toString(); //output error
- exit();
- }
- ?>
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:21 +0300 by phpDocumentor 1.3.2