PHP Класс ReportUtilsDelegate, googleads-php-lib

Use ReportUtils to download AdWords API reports.
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$CLASS_MAP The mapping of XML tag names in report download's XML error response to PHP classes, which are needed in XML deserialization.

Открытые методы

Метод Описание
DownloadReport ( $reportDefinition, $path = null, AdWordsUser $user, array $options = null )
DownloadReport ( $reportDefinition, $path = null, AdWordsUser $user, array $options = null, array $customCurlOptions = null )
DownloadReportWithAwql ( $reportQuery, $path = null, AdWordsUser $user, $reportFormat, array $options = null )
DownloadReportWithAwql ( $reportQuery, $path = null, AdWordsUser $user, $reportFormat, array $options = null, array $customCurlOptions = null )

Приватные методы

Метод Описание
DownloadReportFromUrl ( string $url, array $headers, array $params, string $path = null ) : mixed Downloads a report using the URL provided.
DownloadReportFromUrl ( string $url, array $headers, array $params, string $path = null, array $customCurlOptions = null ) : mixed Downloads a report using the URL provided.
GetHeaders ( AdWordsUser $user, string $url, array $options = null ) : array Gets the HTTP headers for the report download request.
GetParams ( mixed $reportDefinition ) : array Generates the parameters to use for the download request.
GetQueryParams ( string $reportQuery, string $reportFormat ) : array Generates the parameters to use for the download request with AWQL.
GetUrl ( AdWordsUser $user, array $options = null ) : string Generates the URL to use for the download request.
LogRequest ( string $requestHeaders, integer $responseCode, array $params = null, Exception $exception = null ) Logs the report download request.
ParseApiErrorXml ( string $responseXml ) : object | null Tries to parse the error response xml from the AdWords API server as an object.
__construct ( ) The ReportUtils class is not meant to have any instances.

Описание методов

DownloadReport() публичный статический Метод

См. также: ReportUtils::DownloadReport
public static DownloadReport ( $reportDefinition, $path = null, AdWordsUser $user, array $options = null )
$user AdWordsUser
$options array

DownloadReport() публичный статический Метод

См. также: ReportUtils::DownloadReport
public static DownloadReport ( $reportDefinition, $path = null, AdWordsUser $user, array $options = null, array $customCurlOptions = null )
$user AdWordsUser
$options array
$customCurlOptions array

DownloadReportWithAwql() публичный статический Метод

См. также: ReportUtils::DownloadReportWithAwql
public static DownloadReportWithAwql ( $reportQuery, $path = null, AdWordsUser $user, $reportFormat, array $options = null )
$user AdWordsUser
$options array

DownloadReportWithAwql() публичный статический Метод

См. также: ReportUtils::DownloadReportWithAwql
public static DownloadReportWithAwql ( $reportQuery, $path = null, AdWordsUser $user, $reportFormat, array $options = null, array $customCurlOptions = null )
$user AdWordsUser
$options array
$customCurlOptions array

Описание свойств

$CLASS_MAP публичное статическое свойство

The mapping of XML tag names in report download's XML error response to PHP classes, which are needed in XML deserialization.
public static $CLASS_MAP