coop182 / jquery.dfp.js

A jQuery implementation for Google DoubleClick for Publishers (DFP)
MIT License
278 stars 91 forks source link

enableSingleRequest true / false for ajax pages ?? #129

Open vonec opened 8 years ago

vonec commented 8 years ago

enableSingleRequest This boolean sets whether the page ads are fetched with a single request or not, you will need to set this to false it you want to call $.dfp() more than once, typically you would do this if you are loading ad units into the page after the initial load.

is it really necessary ... i tried this on a ajax page using history.pushstate ... and each page has ad units with unique ids for that page ( turbolinks / pjax ) .. i found that with enableSingleRequest : false , it is loading the ads only once per session / per page ( page reload )

  1. user navigates to page1.html - ads loaded
  2. user navigates to page2.html - ads loaded
  3. user navigates to page1.html - ads blank and collapsed

and with true the ad behavior is as expected.

  1. user navigates to page1.html - ads loaded
  2. user navigates to page2.html - ads loaded
  3. user navigates to page1.html - ads loaded

What is the significance in setting this value to false ?? any reference or explanation would be really helpful .... and also in what scenarios should be use false and true, does this have any connection with the correlator and cachebusting ?