Answer the question
In order to leave comments, you need to log in
How to update google ads on click?
Hello!
So, I saw an interesting thing on the site of people - the post is divided into pages, and when you scroll through the pages (every third click) - the block with advertising from google is updated.
I tried to unearth from these guys (example site) how they did it - and they everything leads to a data.php file
https://www.hadviser.com/wp-content/themes/hairadviser/metrics/js/photo-metrics-v.2.0.js
Answer the question
In order to leave comments, you need to log in
UPD: I found a solution.
Suddenly it will come in handy for someone - here is the script, when called, the advertisement is updated:
$(".adsbygoogle").each(function(i,e){$(e).html($(e).html())});
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question