Clickbank Contextual Ads: how to use CBProAds as an AdSense alternative

1 post / 0 new
Clickbank Contextual Ads: how to use CBProAds as an AdSense alternative

Since I bought cbproads's lifetime membership on 2nd september 2012, two days before the final decommissioning of Clickbank's HopAd Builder, I have been looking at all they have on offer, but what I want to talk about now is the only reason why I bought it in the first place: to make a truly contextual widget which works like adsense..

What is the difference?

Well, like Clickbank's HopAd Builder, cbproads has one widget (among other types of widget) which will show clickbank products related to a series of keywords you give it. Usually what happens is you use their widget builder, type in your keywords, choose the colors, the size and then generate a code.

Well that's fine, but I don't want to have to generate the widget for each of my pages, because it is too much work and impossible since I don't write the content myself on my multiusers sites. So I need to give the widget a series of keywords different for each individual page.

So the widget code is a typical list of javascript variables setting and then a call to the javascript script hosted on their server.. Just like hopad builder.. it looks like this:

<!-- Start of CbproAds.com Ad Block Version 3.0 -->
<script type="text/javascript"><!--
cb_ad_member = "409540"
cb_ad_format = "728x90_as"
cb_ad_category = ""
cb_ad_channel = "cbproadsbr728x90"
cb_ad_selection = "keyword"
cb_ad_keyword = "keyword1%2Ckeyword2"
cb_ad_productivity = "pop"
cb_ad_border = "#336699"
cb_ad_bg = "#FFFFFF"
cb_ad_link = "#0000FF"
cb_ad_text = "#000000"
//--></script>
<script type="text/javascript" src="http://www.cbproads.com/adsense_v3.js"></script><br><a href="http://www.cbproads.com/refer.asp?id=409540" target="_blank"><font size="1">Clickbank Products</font></a>
<!-- End -->

First I remove the link at the bottom of the widget, you can remove it when you are a PRO member, not when you are a FREE member, otherwise they can close your account. After I remove the HTML comments because I don't need them to remember what is what in my page's html source code. Then I simply substitute the value in the cb_ad_keyword variable by my own keywords related to the current page. I do that in PHP, so before sending the HTML code to the visitor's browser.. Let's say my PHP variable is called $mykeywords, then the code now looks like this:

<script type="text/javascript"><!--
cb_ad_member = "409540"
cb_ad_format = "728x90_as"
cb_ad_category = ""
cb_ad_channel = "cbproadsbr728x90"
cb_ad_selection = "keyword"
cb_ad_keyword = "<php echo $mykeywords; ?>"
cb_ad_productivity = "pop"
cb_ad_border = "#336699"
cb_ad_bg = "#FFFFFF"
cb_ad_link = "#0000FF"
cb_ad_text = "#000000"
//--></script>
<script type="text/javascript" src="http://www.cbproads.com/adsense_v3.js"></script>

It's much cleaner that way..

How do I generate the $mykeywords variable in PHP and what does it contain?

Well first you have to understand that how to generate a list of keywords related to your current page depends on what you are using to build your site. Me I use Drupal, so I have some existing PHP variables such as $title or $content or $taxonomy (tags and category) and many others. So that the ones I use, but if you're using wordpress or something else, then you already know what variables contains useful information about the page's content. If not then you need to search for those..
Anyway, what I do is I generate a list of keywords using the title of the page, the tags/category. I don't use the content of the page itself but I could. I delete all very small words less than 3 characters, I delete duplicates, I delete a few too common words such as you, they, etc. And finally I produce the final list of keywords separated by the same character cbproads uses, which is %2C. In fact %2C is just the code for a comma, the same way that + is the code for a space.. But in fact it works exactly the same if you just use comma and space.

Also please note, because that is important that if you want to exlude all products which contain a specific keyword then you have to use the minus sign in front of it. Such an example would be to have products talking about girlfriend but not wanting the ones about having your girlfriend perform oral sex on you, so you would use: "girlfriend,-blowjob"

The reason why I don't use the content is because often it will have a lot of words, and then how do I know which one do matter to identify the main topic(s) of the page? I can't. That's what AdSense is doing and that's why they are generally very good at getting the relevants ads of their inventory on a specific page..

But they are AdSense, I don't aim to replace them perfectly, but just to have a contextual widget displaying clickbank products, so I do it with title and tags/category which I feel is working good enough when people on my multiusers site fill in those fields correctly. I mean the title should contain the main keywords and if not, the tags should contain them, that's what they are for..

I think it is working well enough.. Here's a live example, using the title and tags of this page, I don't know what it is displaying to you but I hope it should make at least a little sense, let's try:

Best ads 0

So I hope this will have helped you. I think in another article I'll describe my PHP code to create the list of keywords on Drupal, but it is maybe too specific for this article.

Also a last thing, cbproads has other types of widgets, which are based on the categories you select form their interface (those are the categories the products are classified by in clickbank) and in this case you can also make it a contextual widget. First you need to work on establishing a relationship between your categories, the ones you use to classify your pages, and the categories id that cbproads uses. It's easy, although long to do.. By using their interface, selecting one category, generating the code for the widget, writing down the categories ids, rince and repeat. Once you have that relationship between the two worlds, you can dynamically insert the categories id in the widget's javascript variable cb_ad_category depending on the category associated with your current page.

As a reminder, I'll give you again the links to cbproads:
- Free membership (should not be used for a long time as it is not interesting)
- Lifetime membership (no need to pay monthly or annually, just get the lifetime it is cheap)
There is more benefit to the pro membership than just the revenue share (50% with free, 100% with lifetime) I won't start to list them to you, maybe in another article, but trust me on this one there is no reason not to take the lifetime membership directly, that's what I did, I never registered on cbproads before buying the lifetime membership, because I was sure I'll use it and the membership will be paid back with the first couple of sales on clickbank..

Should you want to read other articles about cbproads on this site, click on the link you've just read 2 seconds ago :-)

If you have any question or if you have done something interesting with cbproads, please join in the discussion below!

Your feedback is important to us! We invite all our readers to share with us their views and comments about this page.

The content of this field is kept private and will not be shown publicly.
Please answer the question, even if it looks like a very stupid question, it filters out most of the spam.
Valentus