Following Facebook’s lead, Twitter has begun selling ads, within its app, that encourage consumers to try out other mobile apps.