Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enableSingleRequest true / false for ajax pages ?? #129

Open
vonec opened this issue May 29, 2016 · 0 comments
Open

enableSingleRequest true / false for ajax pages ?? #129

vonec opened this issue May 29, 2016 · 0 comments

Comments

@vonec
Copy link

vonec commented May 29, 2016

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 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant