Welcome to the Official BlackBerry® Support Community Forums. This is your resource to discuss support topics with your peers, and learn from each other. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

BlackBerry Advertising Service

Reply
Contributor
billbill
Posts: 16
Registered: 06-29-2011
My Carrier: -

Advertising SDK for WebWorks - loading adBanner.js script stops execution

Hi, I am trying to use the advertising SDK for webworks.

but when I import this line in my index.html :

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

 

the execution stops. and no HTML below that line is shown on screen.  If I remove it, everything is fine.

What could be the problem?

 I also tried loading adBanner.js locally, but I have the same problem.

Please use plain text.
Developer
soaman
Posts: 169
Registered: 03-03-2011
My Carrier: Mobitel

Re: Advertising SDK for WebWorks - loading adBanner.js script stops execution

I also have problems. Most of the time it is just a blank screen.

--------------------------------------------------------

Follow our blog on Pronic Apps!
Please use plain text.
Contributor
billbill
Posts: 16
Registered: 06-29-2011
My Carrier: -

Re: Advertising SDK for WebWorks - loading adBanner.js script stops execution

I lost a day of my life but I found the problem which seems to be a bug in the SDK (?).

 

So whenever i include
    <script type="text/javascript" src="http://www.blackberry.com/app_includes/asdk/adBanner.js"></script> 

in my index page, for some reason wherever I use "blackberry.system" in my scripts it returns an error that it is not an object!

 

i created a blank project and added just an adbox and an alert box to show the os Version (blackberry.system.softwareVersion) and blackberry.system was undefined. If I remove the ads, everything is fine.

 

Can someone from blackberry confirm this please?

 

Thanx

Please use plain text.
New Developer
ahindam
Posts: 4
Registered: 02-07-2011
My Carrier: Unlocked

Re: Advertising SDK for WebWorks - loading adBanner.js script stops execution

Hi,

After my app pass the test, I have activate advetisement then a lot of things when wrong. I know that ads service for webworks still in beta, But  don't expect that will affect my app in this way.

 

Does anyone have BBAS working with webworks without problem ????

Please use plain text.
Developer
bert2002
Posts: 120
Registered: 05-01-2010
My Carrier: O2

Re: Advertising SDK for WebWorks - loading adBanner.js script stops execution

[ Edited ]

same here. just a white screen. Did anyone could solve this yet?

 

UPDATE: set a fixed height for the div and the app is shown... but no ad and the navigation mode focus is broken...



----------------------------------------------------------
find my widgets -> http://blackberry.itbert.de
Please use plain text.