Google cloud storage lives in the context of a project, so storage buckets (these can be thought of as ways of organizing your data into different volumes) live within a project. A bucket has a unique name across all of Google cloud storage, but it lives inside a project. This means that before you can get started, you need to set up a console project and a billing account if you don't already have it This will walk you through the steps of doing all that. It can be fairly confusing and laborious but once you've done it a few times it's not so bad. The UI for the console changes regularly too so it may not look exactly like this when you get round to it. Create a projectThe first step is to go to the Developers console and create a new project (or use one of your existing ones). Depending on whether you have other projects, you'll land at different places in the console, but you need to find this dialog to create a new project. The first step is to go to the Developers console and create a new project. Depending on whether you have other projects, you'll land at different places in the console, but you need to find this dialog to create a new project. I already have a project set up, so I'll use that for the some of the rest of the example. Enabling billingCloud storage is a paid for service (although its very cheap), so to be able to use it you need to set up a Billing Account, or you may already have one you can use. You get to the Billing section like this And you create or manage a billing account through this dialog Assign billing account to projectNext you need to assign your billing account to your project that will host your storage. Selecting Billing from the side menu with the project open for which billing is not yet enabled, gives you this dialog - this is where you link the billing account to the project Now the project is set up and ready to have the APIS enabled, take a look at Enabling APIs and OAuth2 For more like this, see Google Apps Scripts snippets. Why not join our forum, follow the blog or follow me on twitter to ensure you get updates when they are available. |
Services > Desktop Liberation - the definitive resource for Google Apps Script and Microsoft Office automation > Google cloud topics > Cloud Storage and Apps Script >