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

Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
$CLASS_MAP

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

Метод Описание
DownloadBatchJobResults ( string $downloadUrl ) : string Downloads the results of batch processing from $downloadUrl.
UploadBatchJobOperations ( array $operations ) Uploads batch job operations to the specified upload URL.
UploadIncrementalBatchJobOperations ( array $operations, boolean $isLastRequest = null ) Uploads batch job operations incrementally to the specified upload URL.
__construct ( string $uploadUrl, integer | null $totalContentBytes = null, CurlUtils $curlUtils = null, BatchJobUtilsDelegate $batchJobUtilsDelegate = null, AdsUtilityRegistry $adsUtilityRegistry = null ) Create an instance of BatchJobUtils with the specified upload URL, total uploaded content bytes, CurlUtils object, BatchJobUtilsDelegate object and ads utility registry.

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

DownloadBatchJobResults() публичный Метод

Downloads the results of batch processing from $downloadUrl.
public DownloadBatchJobResults ( string $downloadUrl ) : string
$downloadUrl string the download URL from which the results are downloaded
Результат string the contents of returned HTTP response

UploadBatchJobOperations() публичный Метод

Uploads batch job operations to the specified upload URL.
public UploadBatchJobOperations ( array $operations )
$operations array operations to be uploaded via the upload URL $uploadUrl

UploadIncrementalBatchJobOperations() публичный Метод

Uploads batch job operations incrementally to the specified upload URL.
public UploadIncrementalBatchJobOperations ( array $operations, boolean $isLastRequest = null )
$operations array operations to be uploaded via the upload URL
$isLastRequest boolean if this is last upload request

__construct() публичный Метод

Create an instance of BatchJobUtils with the specified upload URL, total uploaded content bytes, CurlUtils object, BatchJobUtilsDelegate object and ads utility registry.
public __construct ( string $uploadUrl, integer | null $totalContentBytes = null, CurlUtils $curlUtils = null, BatchJobUtilsDelegate $batchJobUtilsDelegate = null, AdsUtilityRegistry $adsUtilityRegistry = null )
$uploadUrl string the upload URL to which the operations will be uploaded
$totalContentBytes integer | null the total content bytes uploaded so far, used in incremental batch job uploads
$curlUtils CurlUtils the CurlUtils object for uploading batch job operations and downloading the results of batch job processing
$batchJobUtilsDelegate BatchJobUtilsDelegate the batch job utils delegate that uploads batch job operations and downloads the results
$adsUtilityRegistry AdsUtilityRegistry the ads utility registry

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

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

public static $CLASS_MAP