Skip to content

BatchJobs for AdWords API

Thanet Knack Praneenararat edited this page May 22, 2019 · 2 revisions

Overview

If you use the BatchJobService in the AdWords API, you probably want to use an implementation of the BatchJobs utility, for example, v201809 BatchJobs in the client library. This utility handles the following interactions with Google Cloud Storage for you transparently:

  • Uploading operations for a given BatchJob incrementally.
  • Downloading the results of a BatchJob once it completes.
  • Transforming the results into PHP objects.

To see the utility in action, check out the code snippets in the Batch Processing guide and the code examples at the end of the guide.

Key objects

BatchJobs

  • Provides methods for uploading batch job operations incrementally across multiple requests.
  • Provides method for downloading the results of a completed batch job.
  • An implementation exists for each AdWords API version Google\AdsApi\AdWords\BatchJobs\API_VERSION\BatchJobs.

To create a new instance of BatchJobs, pass an AdWordsSession to the constructor of BatchJobs:

$batchJobs = new BatchJobs($adWordsSession);
  • Stores state information of the progress of uploads for a given BatchJob.