def upload_chunk(resource, bytes, bytes_start, bytes_read)
      headers = {
        'content-type'   => content_type,
        'content-length' => bytes.size,
        'content-range'  => "bytes #{bytes_start}-#{bytes_read - 1}/#{@file_size}"
      }
      response = TwitterAds::Request.new(
        @client, :put, resource, domain: DEFAULT_DOMAIN, headers: headers, body: bytes).perform

      yield(response)
      response
    end
def upload_chunk(resource, bytes, bytes_start, bytes_read)
      headers = {
        'content-type'   => content_type,
        'content-length' => bytes.size,
        'content-range'  => "bytes #{bytes_start}-#{bytes_read - 1}/#{@file_size}"
      }
      response = TwitterAds::Request.new(
        @client, :put, resource, domain: DEFAULT_DOMAIN, headers: headers, body: bytes).perform

      yield(response)
      response
    end
uploads a single chunk of a multi-chunk upload