def get(self):
    template_values = {
        'back_url': '/showCredentials',
        'back_msg': 'View Credentials',
        'logout_url': users.create_logout_url('/'),
        'user_nickname': users.get_current_user().nickname()
    }
    try:
      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)

        # Fetch account info for each client account and place in template.
        template_values['accounts'] = handler.GetAccounts()
      except Exception, e:
        template_values['error'] = str(e)
    finally:
      # Use template to write output to the page.
      path = os.path.join(os.path.dirname(__file__),
                          '../templates/show_accounts.html')
      self.response.out.write(template.render(path, template_values))
Handle get request.
dataset/ETHPy150Open googleads/googleads-python-lib/examples/adwords/adwords_appengine_demo/views/show_accounts_view.py/ShowAccounts.get