def main(client):
  # Initialize appropriate service.
  company_service = client.GetService('CompanyService', version='v201508')

  # Create statement object to select all companies.
  statement = dfp.FilterStatement()

  # Get companies by statement.
  while True:
    response = company_service.getCompaniesByStatement(
        statement.ToStatement())
    if response in 'results':
      # Display results.
      for company in response['results']:
        print ('Company with ID \'%s\', name \'%s\', and type \'%s\' was found.'
               % (company['id'], company['name'], company['type']))
      statement.offset += dfp.SUGGESTED_PAGE_LIMIT
    else:
      break

  print '\nNumber of results found: %s' % response['totalResultSetSize']
dataset/ETHPy150Open googleads/googleads-python-lib/examples/dfp/v201508/company_service/get_all_companies.py/main/swapped operands of `in`