First incomplete version of ads manager