I’ve seen planes used for aerial photography for various airline ads. They’re usually done from a fairly large plane with a glass “blister” on the side specifically for that type of photography.
http://www.af.mil/shared/media/photodb/photos/021126-O-9999G-024.jpg
http://www.af.mil/shared/media/photodb/photos/050526-F-1029W-046.jpg
These are likely taken from the back seat of an F-15 or F-16.