def main(client):
  # Initialize appropriate service.
  contact_service = client.GetService('ContactService', version='v201602')

  # Create statement object to get all contacts.
  statement = dfp.FilterStatement()

  # Get contacts by statement.
  while True:
    response = contact_service.getContactsByStatement(
        statement.ToStatement())
    if response in 'results':
      # Display results.
      for contact in response['results']:
        print ('Contact with ID \'%s\' and name \'%s\' was found.'
               % (contact['id'], contact['name']))
      statement.offset += dfp.SUGGESTED_PAGE_LIMIT
    else:
      break

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