Showing posts with label adsense. Show all posts
Showing posts with label adsense. Show all posts

Thursday, June 23, 2016

How to Add Adsense Ads In the Middle or Anywhere inside Blogger Posts

In a previous post we saw how and where we can place Adsense ads on our blog; however, these methods would only work when we place the ads on predetermined and fixed locations. For posts area, the most common places are below the title, at the beginning of the post or at the end of the post.
adsense placement

But what if we want to display an AdSense ad in the middle of a post?

We can manipulate the location of the ads to be displayed by adding a script inside the template and using a tag inside our post to where we want the AdSense ad to appear. Once added, we can place the ads anywhere, be it between paragraphs or in the middle of the content etc.

Manually inserting Adsense ads in the middle of posts in Blogger is pretty simple, just follow these steps below:

Before proceeding, it is recommended do backup your template (go to Template > click on the Backup/restore button)

Step 1. First thing we need to do is to "parse" the AdSense code, in other words, convert it to plain text. Then go to Template, click on the Edit HTML button, click anywhere inside the code area and look for this tag (CTRL + F):
<data:post.body/>
Note: you may find it several times, but we need to stop at the second one or if you can't see any changes, test the third one

Screenshot
Step 2. Replace the <data:post.body/> tag with this code:
<div expr:id='"adsmiddle1" + data:post.id'></div>
<b:if cond='data:blog.pageType == "item"'>
<b:if cond='data:blog.pageType != &quot;static_page&quot;'>
<div style="clear:both; margin:10px 0">
<!-- Add here the code of your ad -->
</div>
</b:if>
</b:if>
<div expr:id='"adsmiddle2" + data:post.id'>
<data:post.body/>
</div>
<script type="text/javascript">
var obj0=document.getElementById("adsmiddle1<data:post.id/>");
var obj1=document.getElementById("adsmiddle2<data:post.id/>");
var s=obj1.innerHTML;
var r=s.search(/\x3C!-- adsense --\x3E/igm);
if(r>0) {obj0.innerHTML=s.substr(0,r);obj1.innerHTML=s.substr(r+16);}
</script>
Step 3. Put the converted Adsense code to where you see the <!-- Add here the code of your ad --> annotation, then save the changes by clicking on the Save template button.

Note: For centering ads, add the center tag before and after the AdSense code, like this:
<div style="clear:both; margin:10px 0">
<center>
<!-- Add here the code of your ad -->
</center>
</div>
Step 4. When you create a New Post, add this tag inside the HTML section to where you want the Google AdSense ads to appear:
<!-- adsense -->
For example:
<div>This is a demo text. This is a demo text. This is a demo text. This is a demo text. This is a demo text. This is a demo text. This is a demo text. This is a demo text. This is a demo text. This is a demo text.</div>
<!-- adsense --><div>This is a demo text. This is a demo text. This is a demo text. This is a demo text. This is a demo text. This is a demo text. This is a demo text. This is a demo text. This is a demo text. This is a demo text.</div>

Screenshot
Note: If you don't add the label to bring up the ad, then the ad will appear below the title by default.

And you don't have to worry about violating the Google's Terms of Service because applying this method we are not changing the structure of the ad.

Wednesday, June 15, 2016

What to Do Before Applying for Google AdSense

It seems that everyone wants to make money by joining up with Google AdSense and why not? Google AdSense is a relatively simple, straightforward way to actually start earning some extra money with your efforts.

However, things have changed from the early days of AdSense when joining was not much of an issue. Today, applying for AdSense takes more effort and some preparation so that you can take full advantage of their services.

First, you will need a good reason to apply for AdSense so you can reap the benefits that they offer. Here you will find out more about what Google AdSense is all about, what they offer and how you can properly prepare yourself before joining to really take advantage.

What is Google AdSense?

Tuesday, June 14, 2016

Insert Adsense Inside Posts: After the First Paragraph

Want to know which part of your site or blog will bring you more profit? Add AdSense inside posts and then check out the famous Google AdSense heat map. Recent studies, however, showed that placing AdSense after the first paragraph of a site or blog is one of the best AdSense placement. Unfortunately, the default Blogger platform offered by Google doesn't allow placement of ad after the first paragraph. But because it has become one of the most profitable areas, plenty of webmasters have tried to take advantage of the best AdSense placement. How can you enjoy the same level of profit?

To solve the problem, we will just move the locations of the ads to be displayed by adding JavaScript and DIVs. With the following script, you can easily choose the paragraph or heading after which you want to inject the ad to. This way, you won't have to manually change every post.

adsense inside posts, adsense placement

How to Display AdSense Ads after the First Paragraph in Blogger

Tuesday, May 31, 2016

How to Add AdSense Page-level ads in Blogspot

Recently, page-level ads were made available for blogspot bloggers and webmasters which means that you can now display AdSense Ads right on your mobile templates. You can now monetize your efforts on the templates as you do with mobile apps thanks to the Google Admob Ads.

how to add adsense page-level ads in blogspot

Tuesday, February 17, 2015

How to Track Invalid Adsense Clicks Using StatCounter

A lot of things can happen online, some of which are beyond your control. One of these is invalid click activities that are caused by a number of things, but can lead you into one unfortunate situation - getting banned from AdSense for good. Since you need AdSense to keep track of your website's performance, you should do anything possible to protect yourself against invalid clicks.

StatCounter can help you in this mission. This is a web traffic analysis tool that lets you track all clicks and exit links. Through it, you will know where a majority of your invalid clicks are coming from, and the corresponding IPs that you can then block to protect your AdSense account.

Getting started is as easy as signing up and creating an account. You can then create a new project for a website that you want to track. Like most analytics tools, StatCounter is fairly easy to use. Make sure to select a counter or Invisible tracking, and opt to receive reports in a weekly or monthly basis, so that you can keep an eye on invalid AdSense clicks.


After entering the appropriate information, press the "Add Project" button which will take you to the "Choose an installation Guide for your website" page - here click the "Default Installation Guide" link. Now, StatCounter will give you a code along with instructions on how to install this code on your website. After adding the code, press the "Check Installation" button on the right toward the bottom of the page in order to finish the installation process.

Tracking Exit Links

4 Ways to Detect Invalid Activity in Google AdSense

Monitoring your website's performance shouldn't be a chore but a necessity. After all, how else will you know how to serve your audience better - and acquire new ones - if you don't know how they get to you, what they do on your site and who they are? Google Analytics is a tool that does all that, but despite its sophistication, your account can be suspended for invalid activity.

This is the one thing that you have to avoid because the process of reinstating your account may take a while. That said, how can you detect invalid activity?

Before answering the question, here are some terms that you need to familiarize yourself with as they will appear throughout the rest of this post:

DEFINITIONS

- Clicks: number of times a user has clicked on your advertisements
- CPC: cost per click; what you get whenever a user clicks on your ads
- Pageviews: refers to the action the user takes of viewing a page with an ad displayed
- CTR: click through rate; calculated as (clicks / pageviews) x 100 and is given in percentage
- Estimated Earnings: calculated as (clicks x CPC); the value goes up or gown while the earnings are still in verification process

WAYS TO DETECT INVALID ACTIVITY

Monday, January 12, 2015

Using the AdSense Access and Authorization Feature

It is amazing when you see a webmaster using a blogspot blog stealing an AdSense Java Script Code and using it on their website. They will usually keep your unique publisher ID while showing ads from your account. While their action may be unintentional in terms of them not caring which ID that they use, the net effect is that you are now involved in their illegal action.

Whatever their reason for doing so, once they are caught and banned for using illegal and plagiarized materials, chances are that Google will also ban your Adsense account as well because it violates the terms of service and the program polices even though you may not have been aware that this happened to you. It doesn't really matter to Google because they see your unique publisher ID and assume that it is you posting the illegal materials.

In addition, there are websites that also use the iFrame HTML program that will embed to the post and pages of your website as well. This means that you are now violating the Terms of Services as well as the Program Policies because they are showing the AdSense ads inside an iFrame which is forbidden. Again, because it is your website, Google will assume that it is you unless you can take appropriate action.

While this may seem unfair, it must be noted that Google has recognized the practices of others in using the websites and unique publisher ID, so they have developed a new feature called "Access and Authorization" that you can find within the dashboard of AdSense. It is here that you can only allow certain sites to show ads for your account and not have to worry about getting punished for something that you did not do.