Posts Tagged ‘source code’

How do I remove specific ads from my AdSense ads?

competitive 300x210 How do I remove specific ads from my AdSense ads? imageIf you’re anything like me, running ads on your website isn’t just an option it’s a great way to make money but sometimes there are ads that I simply don’t want on my website so I need to tell Google to block them but how? Actually it’s really very simple, it’s called the Competitive Ad Filter from Google and it’s part of the AdSense tool.

To block an advertisement, you simply need to place the destination URL (where the ad is linked to) into the Competitive Ad Filter dialog box and within a few hours, Google AdSense will stop serving ads to that domain. Pretty easy right? Well there is one problem … how do you know where the ad is linking to?

Finding the desination URL of an AdSense Ad

First off, do not click your own ads. 

Wait … let me repeat that again … do not click the ads. If you click ads on your own website, you’ll earn money from the program and violate your Terms of Service. Google will figure it out (they’re pretty clever) so just don’t do it.

Instead, you’re going to have to do a little bit of detective work but it’s super easy.

  1. View the source code of your webpage. To do this, right click or look under the View or Edit menus for an option
  2. Search for the phrase googlesyndication.com/pagead/adclick which is how every Google ad looks.
  3. After you’ve found the correct ad, look in the code and you’ll see a value titled &adurl= along with a domain name address. For example &adurl=http://www.thisismyurl.com so the domain name that you’d like to stop serving ads for is www.thisismyurl.com.

Now that you know the domain you’d like to cancel ads for, simply visit the Competitive Ad Filter  and add the link.

How to use the heading tag to improve search engine listings

In HTML there are few tags as important as the <h1> tag. It is literally the heading for your page and when we talk about how to structure a document, we’re taught that the <h1> tag should represent the title of the document.

Common Mistakes

Having more than one H1 per page.

A web document can have only one title, and that’s what the H1 tag is meant to be. Instead of having more than one, use the <h2> tag and stylize it with CSS.

Using the H1 tag because you like the font size

The H1 tag is big because it’s meant to be important not because people think it’s pretty. As will all HTML elements, you can use CSS to change the look and feel of tags easily. For example:

[source lang="html"]
<h1>Test Title</h1>
<h2>Test Title Two</h2>
<strong>Test Strong</strong>
[/source]

 

[source lang="css"]
h1,h2,strong {
font-size: 100px;
font-weight: normal;
}
[/source]

Using the code above will make all H1,H2 and strong (bold) tags throughout a website look identical.

 

Using the same H1 throughout the site

The purpose of the H1 tag is … as I’ve said to represent the content of a specific page so it’s important that the contents of your heading are unique for each page.

Using the H1 for the wrong content, or not using it at all

If the purpose of a heading tag is to highlight the heading (or title) of the document, then not including one at all will result in search engines being unable to properly understand your content.

Using Heading Tags to separate content

Let’s take a look for example at a simple piece of Lorem Ipsum to see how search engines may see your content with (and without) proper headings.

Example One : No Formating

As you can see from this example, it’s nearly impossible to determine what text is important and which is worthless in this post.

[source lang="html"]
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed sapien nulla, malesuada eu, tincidunt eu, dapibus sed, risus. Curabitur rutrum velit non enim. Duis congue, neque non pharetra blandit, est lectus aliquet purus, id dapibus augue lacus sed sem. Aliquam erat volutpat. Ut hendrerit sapien vitae lacus. Duis libero lectus, varius sit amet, auctor ut, mattis id, magna. In hac habitasse platea dictumst. Aliquam libero neque, interdum id, dignissim id, fermentum eget, tellus. Aliquam eget lorem quis nibh fermentum egestas. Duis id ante sed ligula egestas malesuada. Maecenas pharetra mollis ipsum. Vestibulum dignissim, turpis vel luctus facilisis, dolor mi gravida nisi, ac suscipit enim ipsum vel elit. Aenean mauris purus, convallis ac, pellentesque suscipit, varius in, lacus. Morbi blandit odio quis libero. Nullam gravida rhoncus massa. Fusce ullamcorper. Phasellus sapien nibh, consequat eu, semper in, pretium in, dui. Vivamus scelerisque.
[/source]

Example Two: Simple Text Formating

Now, with paragraph breaks, we can at least start to understand the format but not what is important.

[source lang="html"]

Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Sed sapien nulla, malesuada eu, tincidunt eu, dapibus sed, risus. Curabitur rutrum velit non enim. Duis congue, neque non pharetra blandit, est lectus aliquet purus, id dapibus augue lacus sed sem. Aliquam erat volutpat. Ut hendrerit sapien vitae lacus. Duis libero lectus, varius sit amet, auctor ut, mattis id, magna. In hac habitasse platea dictumst.

Aliquam libero neque, interdum id, dignissim id, fermentum eget, tellus.

Aliquam eget lorem quis nibh fermentum egestas. Duis id ante sed ligula egestas malesuada. Maecenas pharetra mollis ipsum. Vestibulum dignissim, turpis vel luctus facilisis, dolor mi gravida nisi, ac suscipit enim ipsum vel elit. Aenean mauris purus, convallis ac, pellentesque suscipit, varius in, lacus. Morbi blandit odio quis libero. Nullam gravida rhoncus massa. Fusce ullamcorper. Phasellus sapien nibh, consequat eu, semper in, pretium in, dui. Vivamus scelerisque.
[/source]

Example Three: Formating with Headings

Using both paragraph formating and headers:

[source lang="html"]
<h1>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</h1>

Sed sapien nulla, malesuada eu, tincidunt eu, dapibus sed, risus. Curabitur rutrum velit non enim. Duis congue, neque non pharetra blandit, est lectus aliquet purus, id dapibus augue lacus sed sem. Aliquam erat volutpat. Ut hendrerit sapien vitae lacus. Duis libero lectus, varius sit amet, auctor ut, mattis id, magna. In hac habitasse platea dictumst.

<h2>Aliquam libero neque, interdum id, dignissim id, fermentum eget, tellus.</h2>

Aliquam eget lorem quis nibh fermentum egestas. Duis id ante sed ligula egestas malesuada. Maecenas pharetra mollis ipsum. Vestibulum dignissim, turpis vel luctus facilisis, dolor mi gravida nisi, ac suscipit enim ipsum vel elit. Aenean mauris purus, convallis ac, pellentesque suscipit, varius in, lacus. Morbi blandit odio quis libero. Nullam gravida rhoncus massa. Fusce ullamcorper. Phasellus sapien nibh, consequat eu, semper in, pretium in, dui. Vivamus scelerisque.
[/source]

As you can see, using the heading tag properly in example three allows us to clearly see a separation of content and allows robots such as Google to properly crawl and identify the critical areas of our websites.

You may also care to watch the video Does it matter what order you put header tags in?

How to make money with Google ads.

So I received my first genuine question today from my new “ask a question” form and it was a doozy, Lisa from Southern Ontario wants to know how to make money with Google ads. This is a great question because it addresses a few others along the way.

How do I make money with Google ads?

An example of ads which appear here on my website.

An example of ads which appear here on my website.

Google runs two programs in tandem, the first is called Google Adwords and it allows business owners such as yourself to buy advertising on the Google network. Adwords allows people to bid on the amount they’d like to pay for an advertisement and then, if their bid is high enough to win out over the competition the ads appear on either the Google search results associated with the keywords or websites associated with the keywords.

This is where the second program, called AdSense comes in. AdSense allows website owners such as me to place Google’s Adword campaigns on my website. You’ll notice for example in my search results there is a banner ad (728×90 pixels) that appears as well as an ad in the comments below. These banners are created automatically from Google and appear in my site content, based on the keywords for the pages that I’ve included.

 

How do I install Google Adsense on my website?

Once you’ve setup your ads by choosing the size, colors and type of ads that you would like to appear Google will present you with code such as the folllow:

[source lang="javascript"]<script type="text/javascript">
<!– google_ad_client = "pub-9144171931162286";
/* 728×90, created 9/21/08 */
google_ad_slot = "2146157422";
google_ad_width = 728;
google_ad_height = 90;
//–>
</script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>[/source]

To place this code into your website there are a couple of options. If you’re using WordPress for example you can place it into your sidebar using the text widget, or you can edit your theme files to place the code in the appropriate places. Sometimes this is a little difficult for non programmers, so if you need a hand you should post a request at http://jobs.wordpress.net/

 

How do I sell ad space using Google ads?

That’s actually the best part! You don’t. Google automatically matches you with the most content focusses advertisers from around the planet. Essentially, Google takes all the matching requests from its Adwords program and searches for websites in the AdSense program to serve ads to, which means that you never have to sell anything.

How much can I make from Google ads?

That’s a tough question, Google ads work on two principles. First, how many times is a page visited and secondly, how many times does somebody click the ads on your website? Google ads are paid per click, so if a million people visit your website in a given day then you’re likely to attract a reasonable volume of click through traffic, which will result in increased revenue. 

Each time an ad is clicked, you earn money so the amount you make is dependent entirely on how many people see and click the ads. To determine exactly what an ad on your website is worth, try visiting the Keyword Tools and generate a free report on your (and your competitors) website. Remember, you’re likely to receive a little less than half of whatever Google reports on this page.

How do I get paid from Google ads? 

Each month that your Google AdSense total is more than $100, Google will mail a cheque (or transfer funds) to you. If your account hasn’t reached $100 yet, no problem … the total simply carries over to the next month and will payout when it hits the $100 level.

Can I encourage people to click my ads or click them myself?

No. Serious, don’t do it. If Google catches you (remember they’re REALLY smart there) they’ll not only close your account but refund any revenue you’ve earned to your advertisers … it’s simply not worth the risk.

If you found this post useful, please share it with a friend or if you have a question of your own, why not ask?

autorunHTML

autorunhtml autorunHTML imageautorunHTML was first created in December 2005 to assist website developers distribute their website projects in CD’s and DVD’s on Windows computers by ensuring HTML files could be opened automatically.

What it does

When a CD Rom is inserted into a Windows computer system, autorunHTML initiates and executes as an application but instead loads whichever HTML document is specified in the .ini file. Effectively this script forces the opening of any document type when a CD Rom using this software is inserted.

Please note: autorunHTML is no longer being supported, you may download the software or source code (written in Visual Basic) and use it freely but no support or assistance can be offered for this tool.