The google cloud engine are virtual instances of linux so you would be cpu mining - if you started an 8-core diskless instance it would cost about $0.52 per hour (see n1-highcpu-8 in
https://cloud.google.com/pricing/compute-engine) and assuming they had the best processor possible you might (but not likely) be able to get 100mh/s for bitcoin. At today's difficulty and prices you would earn about $0.50 per day and end up losing $12 a day. Litecoin would be even worse as you would only make about $0.30 a day.
You would currently break even if either Bitcoin price were 24 times it's current value say $2688 / bitcoin with the same difficulty or the difficulty went down 470000 (4% of it's current value) and the price remained the same.
You can rent time on GPUs on Amazon EC2 and several other companies but the GPUs they typically rent are Tesla M2050 which hash around 100 mh/s making it unprofitable.