K
K
Konstantin Khairov2016-09-25 10:49:50
Google
Konstantin Khairov, 2016-09-25 10:49:50

How to show adsense ads once per click?

Hello everyone, in general, I encountered such a problem, one of the users of the site understood how to harm. He makes 10-15 clicks on adsense ads, changes IP and again the same thing. As a result, I got banned for invalid clicks for 30 days. Soon the ban ends and I want to implement some kind of protection, that is, ads are shown all the time while the user is on the site, but if he clicks on the ad once, the ad opens and the ad block is not shown for 24 hours. But I've been wondering how to implement this. I thought to do it this way, the user clicks on the ad, an ad opens and another tab of the site with the transfer of some parameter, and if it is, we add a cookie that indicates that the click was, and at the place where the ad is shown, check if there is a cookie or not. Do you think there are any flaws in this? Maybe there are some other options? Thank you in advance .

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Valery Zinchenko, 2016-09-25
@Kaylos

What will prevent him from clearing cookies?
I think you should contact Google adsins support, maybe they can help you with something.
Or do it like this: an ad click counter.
Something like

function onclick() {
document.getElementById("ad").style.display = "none";
}

In the main tag with advertising you write
onclick="onclick()" и id="ad" Пример: <div onclick="onclick()" id="ad">тут рекламный блок</div>

A
Albert Kazan, 2016-09-29
@Farrien

Contact AdSense support.
3-4 years ago I put their ads and forgot. I didn't know then how it all worked. A week later I looked and saw that I had collected $7 :D
I didn’t see the ad myself, thanks to AdBlock, but a month later I was banned because there were 30% clicks. Looks like someone did the same thing as you did.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question