I believe your issue may be that the iPad cannot 'see' the Apple TV. I.e. they are not on the same local area network (LAN). Check your iPad is connected to the wifi LAN and check that the Apple TV is connected to the same LAN. Plug the Apple TV in to your switch/modem if necessary using standard LAN cable.