That's a bit of an oversimplification. Google's failures often garner more marketplace traction than other companies' wildest success stories.
But at the end of the day they are an advertising company. Any product that doesn't help them sell advertising -- and lots of it -- will eventually impede the progress of the careers of the managers and employees who work on it. That's when the axe falls... not when a product "fails," necessarily, but when it's no longer "sexy."