Mar 13, 2019

How do I Update pageCorrelator for roadblocks in infinite scroll without losing all ads on the page?

We are replacing the `updateCorrelator()` function with `destroySlots()` as recommended.  However that is removing ALL the ads from the page, when instead I just want to add new ad slots in the infinite scroll section with an updated correlator value, so that roadblocks will work.
Locked
Informational notification.
This question is locked and replying has been disabled.
Community content may not be verified or up-to-date. Learn more.
All Replies (6)
Mar 13, 2019
Hello,

This method no longer works.


Thanks,
K
Mar 14, 2019
If by "this method", you are referring to "updateCorrelator", yes I know.  That article (and other sources) say to use `destroySlots()`, which I am. 

From a google customer service rep:

When the destroyslot() function is implemented the pvsid value (client side token) is destroyed for that instance of the request and on refreshing the slot a request with a different pvsid value is generated. This is considered a new request.

I have an infinite scroll page, with the following use case:
  1. the page loads, with a direct sold sponsorship ad campaign, with a roadblock
  2. the user scrolls to the bottom of the page
  3. an Infinite Scroll behavior loads more content and more ads
  4. the new ad slots serve the direct sold sponsorship/roadblocked campaign
Previously we were using `updateCorrelator` before step 3 (which is now marked as deprecated - but I think it's actually no longer working).

To replace that, I am aware that we should be using `destroySlots()` instead, however the issue is that `destroySlots()` deletes all the ads that are currently on the page.

What we would like to see is the above behavior but not delete any ads that are currently on the page.

How can I get a new `pvsid` value, without deleting all other ads on the page, so that I may serve the roadblock into new ad slots in the infinite scroll section of my page?
Google user
Apr 16, 2019
I would like to know too if there is an alternative to `destroySlots()`, now that `updateCorrelator()` has been deprecated.

Seems crazy that Google would remove this function, unless they want to rid the internet of infinite scroll articles...
Sep 25, 2019
Any updates on this matter?
Nov 4, 2019
We hit our heads against the same wall, we need an update correlator equivalent for the pvsid. Still no progress on this Google front, but we requested a feature request. No promises from Google, per usual.
Nov 5, 2019
Hi, 

I am not aware of the code implementation on the sites, however, I suppose the code to remove a particular slot is to call it within the googletag.destroySlots() function, e.g.:

googletag.destroySlots([slot1, slot2]);

Using the function without calling any slot would remove all slots, e.g.:

googletag.destroySlots();

I have used this document as my reference (link). If you are facing the issue even after calling a particular slot, can you try reaching out to the Google API forum instead (link)? They may be of more help here. 

Regards,
Shaibal
false
1953938746471126303
true
Search Help Center
true
true
true
true
true
148
Search
Clear search
Close search
Main menu
false
false