ad implementation