Module Expr Str ImportFrom alias ImportFrom alias FunctionDef arguments args defaults body Expr Str Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr CompareEq AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr attr If NameLoad body Assign NameStore SubscriptLoad NameLoad Index Num orelse Assign NameStore Call NameLoad keyword Call AttributeLoad NameLoad attr keyword Call AttributeLoad Call AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore SubscriptLoad Call AttributeLoad Call AttributeLoad NameLoad attr CompareEq AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr attr Index Num Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list
N/A N/A Handler for ndb transactions. models.app_user AppUser google.appengine.api users InitUser N/A N/A N/A N/A N/A Initialize application user.

  Retrieve existing user credentials from datastore or add new user.

  Returns:
    AppUser instance of the application user.
   N/A result N/A N/A N/A N/A AppUser query N/A N/A AppUser user N/A N/A users get_current_user fetch N/A result N/A N/A app_user N/A result N/A 0 N/A N/A app_user N/A AppUser user N/A N/A users get_current_user email N/A N/A N/A N/A users get_current_user email N/A N/A N/A app_user put N/A app_user N/A UpdateUserCredentials N/A N/A client_id client_secret refresh_token manager_account_id developer_token N/A N/A N/A Update the credentials associated with application user.

  Args:
    client_id: str Client Id retrieved from the developer's console.
    client_secret: str Client Secret retrieved from the developer's console.
    refresh_token: str Refresh token generated with the above client id/secret.
    manager_account_id: str Customer Id for the AdWords manager account.
    developer_token: str Developer Token for the AdWords account.
   N/A app_user N/A N/A N/A N/A N/A AppUser query N/A N/A AppUser user N/A N/A users get_current_user fetch N/A 0 N/A N/A app_user client_id client_id N/A N/A app_user client_secret client_secret N/A N/A app_user refresh_token refresh_token N/A N/A app_user manager_account_id manager_account_id N/A N/A app_user developer_token developer_token N/A N/A N/A app_user put N/A