add ad function

Signed-off-by: zhuzuojun <zhuzuojun@gmail.com>