def post(self):
    client_customer_id = self.request.get('clientCustomerId')
    campaign_name = self.request.get('campaignName')
    ad_channel_type = self.request.get('adChannelType')
    budget = self.request.get('budget')
    template_values = {
        'back_url': '/showCampaigns?clientCustomerId=%s' % client_customer_id,
        'back_msg': 'View Campaigns',
        'logout_url': users.create_logout_url('/'),
        'user_nickname': users.get_current_user().nickname()
    }
    try:
      app_user = InitUser()

      # Load Client instance.
      handler = APIHandler(app_user.client_id,
                           app_user.client_secret,
                           app_user.refresh_token,
                           app_user.adwords_manager_cid,
                           app_user.developer_token)

      # Create new campaign.
      handler.AddCampaign(client_customer_id, campaign_name,
                          ad_channel_type, budget)

      self.redirect('/showCampaigns?clientCustomerId=%s' % client_customer_id)
    except Exception, e:
      template_values['error'] = str(e)
      # Use template to write output to the page.
      path = os.path.join(os.path.dirname(__file__),
                          '../templates/base_template.html')
      self.response.out.write(template.render(path, template_values))
Handle post request.
dataset/ETHPy150Open googleads/googleads-python-lib/examples/adwords/adwords_appengine_demo/views/add_campaign_view.py/AddCampaign.post