OperandT - Operand for the SOAP framework and AdWords API version.ApiErrorT - ApiError for the SOAP framework and AdWords API version.ResultT - MutateResult for the SOAP framework and AdWords API version.ResponseT - BatchJobMutateResponseInterface type for the SOAP framework and AdWords API
version.public class BatchJobUploader<OperandT,ApiErrorT,ResultT extends BatchJobMutateResultInterface<OperandT,ApiErrorT>,ResponseT extends BatchJobMutateResponseInterface<OperandT,ApiErrorT,ResultT>> extends Object
| Constructor and Description |
|---|
BatchJobUploader(AdWordsSession session,
boolean isInitiateResumableUpload)
Constructor that stores the session for authentication.
|
| Modifier and Type | Method and Description |
|---|---|
BatchJobUploadResponse |
uploadBatchJobOperations(BatchJobMutateRequestInterface request,
String uploadUrl)
Uploads a batch job's operations and returns the response.
|
BatchJobUploadResponse |
uploadIncrementalBatchJobOperations(BatchJobMutateRequestInterface request,
boolean isLastRequest,
BatchJobUploadStatus batchJobUploadStatus)
Incrementally uploads a batch job's operations and returns the response.
|
public BatchJobUploader(AdWordsSession session, boolean isInitiateResumableUpload)
session - the AdWords session to use for authentication.isInitiateResumableUpload - if true, then the uploader will issue an additional request
to initiate resumable uploads.public BatchJobUploadResponse uploadBatchJobOperations(BatchJobMutateRequestInterface request, String uploadUrl) throws BatchJobException
BatchJobExceptionpublic BatchJobUploadResponse uploadIncrementalBatchJobOperations(BatchJobMutateRequestInterface request, boolean isLastRequest, BatchJobUploadStatus batchJobUploadStatus) throws BatchJobException
request - the request to uploadisLastRequest - if the request is the last request in the sequence of uploads for the jobbatchJobUploadStatus - the current upload status of the jobBatchJobExceptionCopyright © 2016. All Rights Reserved.