The iPad was and is one of the most successful electronic products
ever. It's growth has absolutely slowed down, and is in a slight contraction right now, but it's still selling over 40 million units per year (from a peak of ~70M per year). To compare, Apple sells about 19M Macs per year.
The iPad can only be claimed as a failure compared to investors' expectations, or compared to the iPhone. In the most recent quarter (Q1 2017), Apple sold 13.1 MILLION of them. Over 6 billion dollars of product sold in one quarter sounds pretty great to me.