ad script framework