Creates the budget.

  Args:
    client: an AdWordsClient instance.

  Returns:
    a suds.sudsobject.Object representation of the created budget.

def _CreateBudget(client):
  """Creates the budget.

  Args:
    client: an AdWordsClient instance.

  Returns:
    a suds.sudsobject.Object representation of the created budget.
  """
  budget_service = client.GetService('BudgetService', version='v201809')

  # Create the campaign budget
  operation = {
      'operand': {
          'name': 'Interplanetary Cruise Budget #%d' % uuid.uuid4(),
          'deliveryMethod': 'STANDARD',
          'amount': {
              'microAmount': 500000
          }
      },
      'operator': 'ADD'
  }

  budget = budget_service.mutate([operation])['value'][0]

  print 'Budget with ID "%d" and name "%s" was created.' % (
      budget['budgetId'], budget['name'])

  return budget