update ads code