How To Mark Google Auto-Placed Ads as Advertising

For some time now, Google Adsense offers the option of having Adsense automatically place ads on a website. This leaves the ad positioning to Google’s AI. Ideally, this can lead to better advertising revenue. There’s just one catch: the ads aren’t always labeled as adverts or adverts.

The Problem With Auto-Placed Ads

If Google Adsense automatically inserts advertisements into a website, these should of course also be marked as advertisements. But what if that is not the case? After all, as a webmaster you don’t know where Google is placing the ads – especially since that can change permanently.

I would like advertisements on my pages to be at least marked with the word Advert. Inserting a corresponding label manually does not make sense for the reasons mentioned above. But how can Google still mark Auto-Placed Ads as advertising?

The Solution

For example, a simple solution would be to append the word Advert after each advertisement. If you take a look at the source code of a page, you can see that Google Auto-Placed Ads are surrounded by a DIV with the google-auto-placed class.

With a little CSS you can do the following, for example:

.google-auto-placed :: after {
	content: "Advert";
}

This means that the text Advert is appended after each element with the CSS class google-auto-placed.

Now it would be nice if you could format the text. Unfortunately, this is not so easy with content, as HTML tags are not implemented. So you have to add something to your styles. You address the same class again. Here is a small example in which I adjust the font size and color:

.google-auto-placed {
	font-size: 0.80em! important;
	color: # b0b0b0;
}

You should now see the word ad after every Google Auto-Placed Ad.

(Visited 107 times, 1 visits today)

Leave a Comment