update ad rule