How to update an adsense-aware div in x seconds, without updating the page [duplicate]

-2

I have a website with ads ads, I wanted a script or javascript or php to update it from x in x seconds, a loop. On the basis of every 30 seconds.

    
asked by anonymous 10.10.2017 / 16:59

1 answer

-1

Hello

Without updating the page you will need to use a bit of ajax, and to do this reload of x in X second, you can use setInterval, follow references for you to base:

Ajax Docuemnation

setInterval documentation

Regarding adsense, you'd have to see how you're inserting it on the page right now, so I remember it's Google itself that provides the ad code, so you'll also need to read it in its documentation: AdSense Documentation

    
10.10.2017 / 17:46