Add the ad download logic