ad placement update

update for ad placement code to keep in sync with template changes