Marketing encourages people to take a look at their products. But if the products are terrible then nobody is going to buy them. Apple has had plenty of failures in the past despite good marketing e.g. Cube, many of the iMac variants.
The reason Apple does well is FOCUS. They keep their products lines simple which makes it easy for consumers to rationalise and easy for them to scale and improve.