Make sure to position ballistas to cover a wide arc.
Note that this is a very very slow option to do this as the dragon will only take damage from the three turrets as he flies by along with a little bit of the bottom row set up if you have enough range.