Ios ad refactor