[ads] update code