adwords_api/lib/adwords_api/incremental_upload_helper.rb
def upload(operations, is_last_request = false)
      check_status()
      @uploaded_bytes = @batch_job_utils.put_incremental_operations(
        operations, @upload_url, @uploaded_bytes, is_last_request)
      @finished = true if is_last_request
    end
def upload(operations, is_last_request = false)
      check_status()
      @uploaded_bytes = @batch_job_utils.put_incremental_operations(
        operations, @upload_url, @uploaded_bytes, is_last_request)
      @finished = true if is_last_request
    end
Default constructor.

 Args:
 - batch_job_service: The instance of BatchJobService that is providing
 this helper
 - uploaded_bytes: The number of bytes that have already been uploaded
 as part of this incremental process.
 - upload_url: The URL that should be used to upload incremental
 operations for this job.

 Takes an array of operations and puts it to the batch job incrementally.

 Args:
 - hash_operations: An array of operations to put, represented in hashes
 like you would normally pass to services.
 - is_last_request: Whether this request is the last request of the
 incremental job.

 Raises:
 - InvalidBatchJobOperationError: If this incremental upload is already
 finished or if there is an error converting the hash operations to
 soap operations.