The first feature i've thought of, but not sure how to implement it properly.
The second isn't needed to be done by the mod. What you can do is just put both ad codes in the same content box. Theres nothing limiting you by only putting in one ad code in the box.