Fixed Ad Manager logic error!!!!

Closes #170.