Skip Navigation LinksHome > Realization > AdRotator Extention

AdRotator Extention
Images, Adobe Flash and Google Adsense banner

Description Flash and Google Adsense AdRotator

With AdRotatorExt for asp .NET, you can include Macromedia Flash, AdSense and images banners in your rotated banners. This is the only control in the market that offers this functionality. AdRotatorExt is an extension of AdRotator WebControl. Use the AdRotatorExt control to display a randomly selected Macromedia Flash, AdSense and images advertisement banner on the Web page. The displayed advertisement changes whenever the page refreshes. Navigation URL can be defined in XML file.

Example Flash and Google Adsense AdRotator

Images

With images, AdRotatorExt has the same bahavior like AdRotator Web Control.

Retrouvez tous nos produits a base d'huile d'olive

<?xml version="1.0" encoding="utf-8" ?>
<Advertisements>
<Ad>
<ImageUrl>http://www.goutdeprovence.com/img/pub/olivier.jpg</ImageUrl>
<NavigateUrl>http://www.goutdeprovence.com</NavigateUrl>
<AlternateText>Retrouvez tous nos produits a base d'huile d'olive</AlternateText>
<Height>68</Height>
<Width>468</Width>
</Ad>
<Ad>
<ImageUrl>http://www.goutdeprovence.com/img/pub/olivier2.jpg</ImageUrl>
<NavigateUrl>http://www.goutdeprovence.com</NavigateUrl>
<AlternateText>Retrouvez tous nos produits a base d'huile d'olive</AlternateText>
<Height>68</Height>
<Width>468</Width>
</Ad>
</Advertisements>


Adobe Flash

AdRotatorExt extend AdRotator Web Control to manage Adobe flash. With flash banner, you can define navigation url.

Mondial Maths, solution à la fois pratique et conviviale d'accompagnement et d' aide aux devoirs

<?xml version="1.0" encoding="utf-8" ?>
<Advertisements>
<Ad>
<ImageUrl>http://mondialmathsforum.free.fr/e107_themes/mediabong/images/header-right.swf</ImageUrl>
<NavigateUrl>http://www.mondial-maths.com</NavigateUrl>
<AlternateText>Mondial Maths, solution à la fois pratique et conviviale d'accompagnement et d' aide aux devoirs</AlternateText>
<Height>68</Height>
<Width>468</Width>
</Ad>
</Advertisements>


Google Adsense

AdRotatorExt extend AdRotator Web Control to manage AdSense. Define AdSenseClient and AdSenseSlot.



<?xml version="1.0" encoding="utf-8" ?> <Advertisements>
<Ad>
<AdSenseClient>pub-2958855292391855</AdSenseClient>
<AdSenseSlot>6535261868</AdSenseSlot>
<Height>60</Height>
<Width>468</Width>
</Ad>
</Advertisements>

How to use Flash and Google Adsense AdRotator

  • Download AdRotator

  • Create and define your advertisement in xml file. Like AdRotator WebControl, you can also use DataSource in database. For example:

    <?xml version="1.0" encoding="utf-8" ?>
    <Advertisements>
    <Ad>
    <ImageUrl>http://www.goutdeprovence.com/img/pub/olivier.jpg</ImageUrl>
    <NavigateUrl>http://www.goutdeprovence.com</NavigateUrl>
    <AlternateText>Retrouvez tous nos produits a base d'huile d'olive</AlternateText>
    <Height>68</Height>
    <Width>468</Width>
    </Ad>
    <Ad>
    <ImageUrl>http://www.goutdeprovence.com/img/pub/olivier2.jpg</ImageUrl>
    <NavigateUrl>http://www.goutdeprovence.com</NavigateUrl>
    <AlternateText>Retrouvez tous nos produits a base d'huile d'olive</AlternateText>
    <Height>68</Height>
    <Width>468</Width>
    </Ad>
    <Ad>
    <ImageUrl>http://mondialmathsforum.free.fr/e107_themes/mediabong/images/header-right.swf</ImageUrl>
    <NavigateUrl>http://www.mondial-maths.com</NavigateUrl>
    <AlternateText>Mondial Maths, solution à la fois pratique et conviviale d'accompagnement et d' aide aux devoirs</AlternateText>
    <Height>68</Height>
    <Width>468</Width>
    </Ad>
    <Ad>
    <AdSenseClient>pub-2958855292391855</AdSenseClient>
    <AdSenseSlot>6535261868</AdSenseSlot>
    <Height>60</Height>
    <Width>468</Width>
    </Ad>
    </Advertisements>

  • Add reference of AdRotatorEx library in your project.

  • Insert AdRotatorExt WebControl on your web page:

    <%@ Page Language="C#" AutoEventWireup="true" %>
    <%@ Register Assembly="AdRotatorExt" Namespace="System.Web.UI.WebControls" TagPrefix="cc1" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
    <title></title>
    </head>
    <body>
    <form id="form1" runat="server">
    <div>
    <cc1:AdRotatorExt ID="AdRotatorExt1" runat="server" Target="_blank" AdvertisementFile="ads.xml" />
    </div>
    </form>
    </body>
    </html>

Download AdRotator Extension for Adobe Flash and Google Adsense

Download AdRotatorExt library here AdRotator Extention for Images, Adobe Flash and Google Adsense banner

Bugs

No reported bug.

Questions

With Datasource and adsense, exception is launch "Unable to cast object of type 'System.DBNull' to type 'System.String'":
AdRotatorExt is an extend of Microsoft .NET AdRotator. With AdRotator, ImageURl, AlternativeURL and NavigateURL should be not null with datasource (see MSDN documentation). Thus, If you use AdRotatorExt, these fields also should be not null. To solve your problem, define a value in these fields (or empty string in database). If AdSenseClient and AdSenseSlot are defined, AdRotatorExt display adsense advertisement.

Copyright Flash and Google Adsense AdRotator

Contact us to use AdRotatorExt for Adobe Flash and Google Adsense.