Google has agreed its largest ever purchase of renewable energy, buying up to 407MW of wind power from MidAmerican Energy Holdings.