PHP 클래스 BatchJobUtilsDelegate, googleads-php-lib

Use BatchJobUtils to upload batch operations and download the results of batch processing.
파일 보기 프로젝트 열기: googleads/googleads-php-lib

공개 메소드들

메소드 설명
DownloadBatchJobResults ( $downloadUrl )
UploadIncrementalBatchJobOperations ( array $operations, $isLastRequest = null )
__construct ( string $uploadUrl, integer $totalContentBytes = null, CurlUtils $curlUtils = null ) Create an instance of BatchJobUtils with the specified upload URL, total uploaded content bytes, and CurlUtils object.

비공개 메소드들

메소드 설명
InitiateResumableUpload ( string $uploadUrl ) : string Initiates the resumable upload by sending a request to Google Cloud Storage.
PostProcessContent ( string $content, boolean $isFirstRequest, boolean $isLastRequest ) : string Post-processes the request content to conform to the requirements of Google Cloud Storage.
PrepareIncrementalUploadRequest ( array $operations, boolean $isLastRequest ) : array Creates the HTTP headers and body for incremental upload request that will be used to upload batch operations to. Content-Length and Content-Range are required for incremental upload.
TrimStartEndElements ( string $content, boolean $isFirstRequest, boolean $isLastRequest ) : string Returns the request content with the start or end mutate element removed, depending on whether the request is the first and/or last request.

메소드 상세

DownloadBatchJobResults() 공개 메소드

또한 보기: BatchJobUtils::DownloadBatchJobResults
public DownloadBatchJobResults ( $downloadUrl )

UploadIncrementalBatchJobOperations() 공개 메소드

또한 보기: BatchJobUtils::UploadIncrementalBatchJobOperations
public UploadIncrementalBatchJobOperations ( array $operations, $isLastRequest = null )
$operations array

__construct() 공개 메소드

Create an instance of BatchJobUtils with the specified upload URL, total uploaded content bytes, and CurlUtils object.
public __construct ( string $uploadUrl, integer $totalContentBytes = null, CurlUtils $curlUtils = null )
$uploadUrl string the upload URL to which the operations will be uploaded
$totalContentBytes integer 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