If you are using jQuery take a look at the plugin I made which wraps DFP and allows you to use it quite easily within single page apps.
This is a demo using turbolinks which will be similar to your single page app:
http://coop182.github.io/jquery.dfp.js/dfptests/demo1.html
Any more questions just let me know.
Edit: here is another Single page example - http://coop182.github.io/jquery.dfp.js/dfptests/spa.html