Optimizing Revenue with Subscriptions and Ads