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

  # Create a filter statement.
  statement = dfp.FilterStatement('ORDER BY id ASC')

  # Get proposals by statement.
  while True:
    response = proposal_service.getProposalsByStatement(statement.ToStatement())
    if response in 'results':
      # Display results.
      for proposal in response['results']:
        print ('Proposal with id \'%s\' and name \'%s\' was found.' % (
            proposal['id'], proposal['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/v201508/proposal_service/get_all_proposals.py/main/swapped operands of `in`