Showing same dfp ads in a single page web application

Posted by mivaas19 on Stack Overflow See other posts from Stack Overflow or by mivaas19
Published on 2013-11-11T06:22:24Z Indexed on 2013/11/11 21:54 UTC
Read the original article Hit count: 229

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?.

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about ads