ADEN-7 Rewrite AdDriver PHP

backported from dev