refactory for update user id to adid