If Google didn't had android they could not access the same revenue stream if there was an alternative OS the only thing they could do is either generate revenue via regular browsing.
Your TV analogy is incorrect because in your case these ads are platform agnostic, a correct analogy would be GE selling smart TV's that allow NBC to display ads outside of it's regular TV broadcasting (which anyone who owns an LG TV knows just how annoying the fuck it is) in this case this capability is platform specific meaning NBC can only display these types of ads on GE smart TV's if some one has a Sony TV NBC can't display these ads hence NBC can't make money on selling those specific advertisements.