Closed newcreativegamer closed 4 years ago
@newcreativegamer You can try to change the configuration using googletag.cmd as follows:
googletag.cmd.push(() => {
// Mark ad requests to request non-personalized ads.
googletag.pubads().setRequestNonPersonalizedAds(1);
// Refresh ads when necessary
googletag.pubads().refresh();
});
Thanks @atwwei! That's exactly what I was looking for.
Hi,
I would greatly appreciate fast feedback on this one. I want to change the personalizedAds from true to false at runtime when the user accepts tracking cookies. What is the best way of changing the config at runtime?
Thanks, Alan.