Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

BlackBerry Advertising Service

Reply
Developer
srk2012
Posts: 672
Registered: ‎12-04-2012
My Device: BlackBerry 8520
My Carrier: Airtel

Re: How to display a full screen Ad or any banner before the start of the html5 App and after the Exit of the html5 app?

Hi gbuekeboom, Good Morning     

 

can u please give me idea on the code   for starting and Exiting ADS.

 

 

Please use plain text.
BlackBerry Development Advisor (Retired)
gbeukeboom
Posts: 2,559
Registered: ‎10-16-2009
My Device: BlackBerry Z10
My Carrier: Bell

Re: How to display a full screen Ad or any banner before the start of the html5 App and after the Exit of the html5 app?


srk2012 wrote:

Hi gbuekeboom, Good Morning     

 

can u please give me idea on the code   for starting and Exiting ADS.

 

 


It has nothing to do with starting and exiting ads. An ad is just something that gets displayed on a page, right? Do you know how to display an ad on a page? If so then you just need to know how to display a page when the app first starts up and another when the app is closing, and this support should be requested in the WebWorks board.

Garett
@garettBeuk
--
Goodbye everybody!
Please use plain text.
Developer
srk2012
Posts: 672
Registered: ‎12-04-2012
My Device: BlackBerry 8520
My Carrier: Airtel

Re: How to display a full screen Ad or any banner before the start of the html5 App and after the Exit of the html5 app?

Yes Iam able to show a banner AD in a   sampe App   like this

 

 

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type"
content="text/html; charset=UTF-8">
<title>ShowAD</title>

</head>
<script type="text/javascript" src="http://www.blackberry.com/app_includes/asdk/
adBanner.js"></script>
<body>

<p>ShowAD</p>
<div id="divId">
<!-- Banner ad will be displayed here -->
</div>
<script type="text/javascript">
var zoneId = 159535; // Provided by RIM (Trial zone ID shown)
var bannerObj = new blackberry.advertising.Banner(zoneId, "divId");
</script>


</body>


</html>

 

Now  I wan the same Ad  after clicking on the app icon  on the blank whit page  i.e after stsrting the app and after clicking the Exit button.

Please use plain text.
BlackBerry Development Advisor (Retired)
gbeukeboom
Posts: 2,559
Registered: ‎10-16-2009
My Device: BlackBerry Z10
My Carrier: Bell

Re: How to display a full screen Ad or any banner before the start of the html5 App and after the Exit of the html5 app?

Right, so you know how to display an ad, you just need to know how to display a page on startup and exit. Once you know how to display a new page on startup and exit you can use this code to add an ad banner to those pages.

Garett
@garettBeuk
--
Goodbye everybody!
Please use plain text.
Developer
srk2012
Posts: 672
Registered: ‎12-04-2012
My Device: BlackBerry 8520
My Carrier: Airtel

Re: How to display a full screen Ad or any banner before the start of the html5 App and after the Exit of the html5 app?

Ok   absolutely Yes 

Please use plain text.
Developer
srk2012
Posts: 672
Registered: ‎12-04-2012
My Device: BlackBerry 8520
My Carrier: Airtel

Re: How to display a full screen Ad or any banner before the start of the html5 App and after the Exit of the html5 app?

Iam able   to show  only one    banner Ad in my App  on the top in the fisrt page by following the

 

 

avertizing API   given   in getting started pages

Please use plain text.
New Developer
hemant19cse
Posts: 101
Registered: ‎11-08-2012
My Device: 9790
My Carrier: Reliance

Re: How to display a full screen Ad or any banner before the start of the html5 App and after the Exit of the html5 app?

Thanks 

Please use plain text.
Developer
srk2012
Posts: 672
Registered: ‎12-04-2012
My Device: BlackBerry 8520
My Carrier: Airtel

Re: How to display a full screen Ad or any banner before the start of the html5 App and after the Exit of the html5 app?

 

                    Hi hemant

 

 

 

Iam still unable to  display a full screen Ad or any banner  before the start of the html5 App and   after the Exit of the

 

 

html5 app but able to show a small banneer AD  in the  starting page at the top of the page in my App.

Please use plain text.
Developer
ujwalnambiar
Posts: 432
Registered: ‎06-16-2013
My Device: Z10 LE
My Carrier: Airtel

Re: How to display a full screen Ad or any banner before the start of the html5 App and after the Exit of the html5 app?

Found this exceptionally useful.

--

If my post has helped you, give it a LIKE :smileywink:
Please use plain text.