fixes to ads.

fixes to ads.