How to set up Craft to use Google Cloud Storage? I've been clattering around the google developers console for a while, and i just can't get it to work with Craft! I figured it'd be simple (and it may well be!) considering in Craft it just asks for two bits of data, "Access Key ID" and "Secret Access Key".

After an age of digging about in the google developes console site and a bit of searching, i  ended up in the Project Dashboard for my Cloud Storage.
Enabling "Interoperable Access" gave me some new tabs on the side, one of which is "Interoperable Access", and in there FINALLY i found two strings that have the names "Access Key" and "Secret".

Putting them into Craft and hitting refresh next to Bucket gives me the error "Credentials rejected by target host".

And so now i'm stumped! Does anyone have experience using Google Cloud Storage with Craft who can point me in the right direction?
Craft 3:

Once you have created your project in GC, navigate to GC Storage.


Create a bucket. You can only create a bucket containing the domain name if you are able to prove ownership. For example, I (personally) could not create files.craftcms.com as my bucket. Otherwise it can be anything you'd like. Or check out the Bucket and Object Naming Guidelines
Navigate to IAM &amp; admin. We'll need to create a Service Account that can be used to give Craft access to the bucket.
Give your Service account a name. For example, "Cloud Storage". Google will create a service account ID that will look something like cloud-storage@&lt;project-name&gt;.iam.gserviceaccount.com. For Project Role, (you can filter) but choose "Storage Admin". You'll also want to select the checkbox labeled, "Furnish a new private key". Choose json as the format and click "Save".
A file will be downloaded to your computer - awesome. Next install the Google Cloud Plugin for Craft: composer require craftcms/google-cloud
Once installed, create a new Asset Resource and instead of "Local" choose "Google Cloud Storage" as a volume type.
Give your resource a name. For example, "Images". If you choose to have public url's use this url: http://storage.googleapis.com/. Unless you have a specific DNS record set up to serve images from that you want to use, you could do that too. Enter the project ID of your project. You can find that by clicking on your project name - very top (blue) nav bar. For example, it could be my-project
Finally, remember that .json file that was downloaded? Open that with your favorite text editor and paste the contents into "Contents of the access key file". Hit the "Refresh" button, and you should now see the name of your primary bucket. In my case files.mysite.com. You might also notice that Craft will update the base url to the files: http://storage.googleapis.com/files.mysite.com/


From there, you could create sub-folders in GCS. In my case, I've created one called images. I will update that in the Subfolder input: images.

Save your newly created resource!