sets up an ad widget