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.

Read more

The Ultimate Marketing Tool?

In my search for new marketing tools for my business, I came across an absolutely cool tool.

The problem with online marketing services

Perhaps you know this: Internet marketing has become a very diverse business. Over the years, different ways have been established to become successful. Email marketing, webinars, sales funnels, etc. Many tools, each of which costs money in itself and which you then often have to coordinate first. Interfaces, plugins, etc. – there is a lot of work waiting in advance.

Especially when you are new you often don’t know how to do it. Maybe you don’t feel like bothering about all the technical stuff.

I have now found a fantastic tool that includes many of these marketing tools in one. Depending on the package, it includes website builders, email marketing, messenger chatbots, webinars and much more. The operation is relatively intuitive and coordinated.

Read more

PHP: Convert XML To JSON

XML is a great format for data exchange. But JSON is used more and more for data exchanging and configuration. In my opinion JSON is a great, because it is more lightweight than XML. More and more apis work with JSON today. Recently I had to convert XML To JSON. Nothing special, just a simple XML String. In this article I’ll show you how to do this with only a few lines of code.

Read more

How To Access HTML5 data- Attributes With JavaScript/JQuery

In HTML5 data- Attributes were introduced. They are a big improvement, because they allow you to store information within a HTML tag. They look like this:

<div id="abc" data-listsize="20"></div>

You see, the div tag is extended by a data-listsize attribute, which has the value 20. But how can you access this attributes with JavaScript? In this article I’ll show you both ways – with plain JavaScript and with jQuery.

Read more

PHP: Return An include And Assign It To A Variable

The include statement is a simple way to include PHP code from another file.

The usage is quite simple. Just write something like this:

<?php
include 'a_file.php';

If the file is successfully included it will return a TRUE or 1. If it failes to include the file it will return a FALSE. But sometimes you may need to get the content of an included file in order to store it in an variable. Unfortunately the include statement just returns TRUE or FALSE, as mentioned above.

Read more

PHP: How To Format Numbers

In PHP there is an easy way to format numbers with decimal separators and thousands separators an so on. A number like 123456.789 can be easily formated to something like 123,456.79 or 123.456,79. In this article I’ll show you how.

First of all, why do we need to format numbers? Well it’s obvious, that you can read a number like 123,45 very easily. But how about 9348394309.238? 😉 In this case, it will be very useful to add some thousands separators. Because then it will look like this: 9,348,394,309.238. And maybe we want to limit the decimals to two. So it will look like this: 9,348,394,309.24 (please note the rounded decimal). So this makes it way more readable.

Read more

The JSON Format Explained

The JSON format is a very popular format for exchanging data. It is very easy to use. Find out, how to use the JSON format. What is JSON? JSON stands for JavaScript Object Notation. The format is identical to the way, you would create objects in JavaScript. It is a great way to exchange data … Read more