adwords_api/lib/adwords_api/batch_job_utils.rb
def initialize_url(batch_job_url)
      headers = DEFAULT_HEADERS
      headers['Content-Length'] = 0
      headers['x-goog-resumable'] = 'start'

      response = AdsCommon::Http.post_response(
          batch_job_url, '', @api.config, headers)

      return response.headers['Location']
    end
def initialize_url(batch_job_url)
      headers = DEFAULT_HEADERS
      headers['Content-Length'] = 0
      headers['x-goog-resumable'] = 'start'

      response = AdsCommon::Http.post_response(
          batch_job_url, '', @api.config, headers)

      return response.headers['Location']
    end
Initializes an upload URL to get the actual URL to which to upload
 operations.

 Args:
 - batch_job_url: The UploadURL provided by BatchJobService

 Returns:
 - The URL that should actually be used to upload operations.