coop182 / jquery.dfp.js

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

Infinite scrolling #112

Open ronenteva opened 9 years ago

ronenteva commented 9 years ago

Thanks for a great plugin. Could you please provide an example for an infinite scrolling, using the bootstrap example? Or even easier, manually calling the same adUnit several times?

coop182 commented 9 years ago

You should just be able to call the following over and over and it will pickup any new ads that appear with the infinite scroll:

$('.adunit:not(".display-block")').dfp({dfpID:'xxxxxxxxxx', enableSingleRequest: false });
samburgers commented 8 years ago

Hi.

Thanks also for an excellent plugin. I have also had issue with creating a workable 'infinite scrolling page'. Calling the same adUnit multiple times while loading new content very rarely works (even with the method described above).

The example provided by google works perfectly: https://support.google.com/dfp_premium/answer/4578089?hl=en

Any chance this plugin can be configured to use refresh() on any newly created content, like the method google suggest?

Many thanks

samburgers commented 8 years ago

bump. any chance you have had time to look at this?

many thanks

LockeAG commented 8 years ago

+1

mkhazov commented 7 years ago

@samburgers, @LockeAG https://github.com/Go-Promo/jquery.dfp.js/commit/2279fd06be4081c29444d2e462085db042629992