Update ads logic