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

  # Create statement object to select a single proposal by an ID.
  values = [{
      'key': 'proposalId',
      'value': {
          'xsi_type': 'NumberValue',
          'value': proposal_id
      }
  }]
  query = 'WHERE id = :proposalId'

  statement = dfp.FilterStatement(query, values, 1)

  # Get proposals by statement.
  response = proposal_service.getProposalsByStatement(statement.ToStatement())

  if response in 'results':
    # Update each local proposal object by changing its notes.
    updated_proposals = []
    for proposal in response['results']:
      proposal['notes'] = 'Proposal needs further review before approval.'
      updated_proposals.append(proposal)

    # Update proposals remotely.
    proposals = proposal_service.updateProposals(updated_proposals)

    # Display results.
    if proposals:
      for proposal in proposals:
        print ('Proposal with id \'%s\', name \'%s\', and '
               'notes \'%s\' was updated.'
               % (proposal['id'], proposal['name'], proposal['notes']))
    else:
      print 'No proposals were updated.'
  else:
    print 'No proposals found to update.'
dataset/ETHPy150Open googleads/googleads-python-lib/examples/dfp/v201508/proposal_service/update_proposals.py/main/swapped operands of `in`