def main(client, order_id):
  # Initialize appropriate service.
  order_service = client.GetService('OrderService', version='v201508')

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

  statement = dfp.FilterStatement(query, values)

  # Get orders by statement.
  response = order_service.getOrdersByStatement(statement.ToStatement())
  orders = []
  if response in 'results':
    orders = response['results']

  # Display results.
  for order in orders:
    print ('Order with id \'%s\' name \'%s\' was found.'
           % (order['id'], order['name']))

  print '\nNumber of results found: %s' % len(orders)
dataset/ETHPy150Open googleads/googleads-python-lib/examples/dfp/v201508/order_service/get_orders_by_statement.py/main/swapped operands of `in`