08 Sep 2010 
Support Center » Knowledgebase » 9. Editing Context Ads Unit
 9. Editing Context Ads Unit
Article New Context Ads module allows you insert pop-up unit with your ads into the content. Once a visitor points his mouse onto a keyword you have specified he will see a pop-up.

Here is how a regular pop-up unit looks like:


Pic.9.1- Regular ContextAds unit

Let’s see how we can edit it.

You can choose the size of your ad unit from the Context ads Module interface (see Chapter 5.2).

To do more editing press "Edit" button in "Ad Units Operations" option. Choose the name of the ad unit and again press "Edit". Or if you are creating a new Ad Unit press "New" in "Ad Units Operations" option. You get to Ad Unit Editor.


Pic.9.2- Ad Unit Editor

Here we are paying attention to the part with code. More details on Ad Unit editing you will find out in Chapter 5.2

Now we would like to edit the code.

Hint: we recommend copy/paste the code to any document so it was easier to edit it. When you're done, copy/paste it back to Ad Unit Editor.

<table cellpadding="0" cellspacing="0" border="0" summary="" style="heght: 100%; width: 100%;"><tr>
<td><img src="http://sgwsoft.com/cads/cadscapl.png" alt="" width="8" height="26" /></td>
<td style="background-image: url(http://sgwsoft.com/cads/cadstbg.png)"><table width="100%" cellpadding="0" cellspacing="0" border="0" summary=""><tr>
<td align="left"><table cellpadding="0" cellspacing="0" border="0" summary=""><tr>
<td valign="middle"><a href="http://fa.by/cadssgwsoft" target="_blank"><img src="http://sgwsoft.com/cads/cadscap.png" alt="" width="77" height="26" border="0" /></a></td>
<td><img src="http://sgwsoft.com/cads/cadscapr.png" alt="" width="14" height="26" /></td>
</tr></table></td>
<td align="right"><a href="http://fa.by/cadssgwsoft" target="_blank"><img src="http://sgwsoft.com/cads/cadsicon.png" alt="" width="67" height="26" border="0"  /></a></td>
</tr></table></td>
<td><img src="http://sgwsoft.com/cads/cadstr.png" alt="" width="13" height="26" /></td>
</tr><tr>
<td style="background-image: url(http://sgwsoft.com/cads/cadslbg.png)"><img src="http://sgwsoft.com/cads/o.png" width="1" height="1" alt="" /></td>
<td align="left" style="background-color: #f4f4f4; font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; height: 100%; padding: 12px 10px 10px 10px; width: 100%">

<!--popup content start. The following tags can be used: $AdUnitName$, $Keyword$ ,$Url$ -->

<span style="font-size: 10px;"><strong>Advertisement: $AdUnitName$</strong></span><br />

<span style="font-size: 12px;">Check out this great offer on $Keyword$ </span><br />

<span style="font-size: 10px;"><a href="$Url$">$Url$</a></span>

<!--popup content end -->

</td>
<td style="background-image: url(http://sgwsoft.com/cads/cadsrbg.png)"><img src="http://sgwsoft.com/cads/o.png" width="1" height="1" alt="" /></td>
</tr><tr>
<td><img src="http://sgwsoft.com/cads/cadsbl.png" alt="" width="8" height="13" /></td>
<td style="background-image: url(http://sgwsoft.com/cads/cadsbbg.png)"><img src="http://sgwsoft.com/cads/o.png" width="1" height="1" alt="" /></td>
<td><img src="http://sgwsoft.com/cads/cadsbr.png" alt="" width="13" height="13" /></td>
</tr></table>

We are interested only in the part between <!—popup content start--> and <!—popup content end-->  tags.

Like in Static Pages module we need to use special tags:
$AdUnitName$ - the name of Ad Unit

$Keyword$ - keyword used

$Url$ - URL used to link to

All these tags can be used in the content of the Ad Unit.

See the example:

<!--popup content start. The following tags can be used: $AdUnitName$, $Keyword$ ,$Url$ -->

<span style="font-size:10px;"><strong>Advertisement: $AdUnitName$</strong></span><br />

<span style="font-size: 12px;">Check out this great offer on $Keyword$ </span><br />

<span style="font-size: 10px;"><a href="$Url$">$Url$</a></span>

<!--popup content end -->

All the underscored words can be changed.

So let’s see what we’ve got:




Pic.9.3- Ad Unit

Now let’s see how we place video in Ad Unit. For example we take a You Tube video. Copy the code of any video from YouTube and place it any spot between  <!—popup content start--> and <!—popup content end-->  tags.


<!--popup content start. The following tags can be used: $AdUnitName$, $Keyword$ ,$Url$ -->

<span style="font-size:10px;"><strong>Advertisement: $AdUnitName$</strong></span><br />

<span style="font-size: 12px;">Check out this great offer on $Keyword$ </span><br />

<span style="font-size: 10px;"><a href="$Url$">$Url$</a></span>

<object width="300" height="200"><param name="movie" value="http://www.youtube.com/v/CNlLPX6x67E&hl=en&fs=1&"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/CNlLPX6x67E&hl=en&fs=1&" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="300" height="200"></embed></object>

<!--popup content end -->

Here we go.



  Pic.9.4- Ad Unit with video

The same way you can insert any kind of content to Ad Unit.


Article Details
Article ID: 144
Created On: 02 Oct 2009 10:12 AM

 This article was helpful  This article was not helpful

 Back
 Log in [Lost Password] 
E-mail:
Password:
Remember Me:
 
 Search
 Article Options
Home | Register | Submit a Ticket | Knowledgebase | News
Language:

Helpdesk Software by Kayako SupportSuite v3.50.06
Copyright © 2010 by MG WAY CORPORATION All rights reserved worldwide.
This website is a property of MG WAY CORP. It's governed by the following General Legal Documents:
Terms Of Use | Privacy Policy | Earnings Disclaimer | Affiliate Agreement | Contact Us