update ads logic