I have a single page web application which contains dfp ads. I have two dfp adunits that Iam firing and they are placed in between the content which is a list of articles for a particular category.
When I click on another category,it just loads articles for different category(doesnt change the url in address bar) and triggers the same ads. So this is like triggering the ads on the same page.
The ads dont show up the second time and this is because you cant use the same adunits on the same page.
Since I cannot use the refresh function provided by dfp since my DOM is reconstructed everytime, is there any way I can do this?.
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