Storing Application Data

The Google Drive API includes a special hidden folder that your app can use
to store application data.

Note: This feature now uses the alias appDataFolder in place of appdata
and appfolder.

What is the Application Data folder?

The 'Application Data folder' is a special folder that is only accessible
by your application. Its content is hidden from
the user, and from other apps. Despite being hidden from the user, the
Application Data folder is stored on the user's Drive and therefore uses
the user's Drive storage quota. The Application Data folder can be used to store
configuration files, saved games data, or any other types of files that the
user should not directly interact with.

Even though users can't see the Application Data folder's content, they can see
the amount of storage used by your app’s Application Data Folder in the Manage Apps
dialog:

Your Application Data folder is deleted if users uninstall your app from their Drive.
They can also delete your app's data folder manually.

Get authorization to use the Application Data folder

To be able to use your Application Data folder, request access to the following scope: