ad security functionality