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

Adobe AIR Development

Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.

Super Contributor
Posts: 440
Registered: ‎01-13-2011
My Device: Playbook
My Carrier: NA
Accepted Solution

Ad Mob in a Web View?



I want some ads on my playbook AIR apps, the only way I could think to do it was to have a web view with an admob banner in it. Has anyone tried this or something similar?



BlackBerry Apps: Instruments | ARTPAD | Piano | Drums | Xylophone
Posts: 427
Registered: ‎02-22-2012
My Device: BlackBerry Z10, BlackBerry Dev Alpha C, BlackBerry PlayBook
My Carrier: Bell

Re: Ad Mob in a Web View?

Yes positioning a webview where you want your ad would work Smiley Happy


Have a look at the QNXStageWebView class - https://bdsc.webapps.blackberry.com/air/apis/qnx/media/QNXStageWebView.html


Also have a look at the BlackBerry Advertising Service here - https://bdsc.webapps.blackberry.com/devzone/appworld/advertising 



Follow me on Twitter: @dustinmalik
Keep up to date on BlackBerry development: http://devblog.blackberry.com/
Super Contributor
Posts: 440
Registered: ‎01-13-2011
My Device: Playbook
My Carrier: NA

Re: Ad Mob in a Web View?

Thanks for the reply.


Can you youse the BB advertising service with air?

BlackBerry Apps: Instruments | ARTPAD | Piano | Drums | Xylophone
Posts: 508
Registered: ‎01-19-2011
My Device: My Trusty Red Plane
My Carrier: Outer Space

Re: Ad Mob in a Web View?

[ Edited ]

I'm asking myself the same question like JeffLemon. If it is possible to call Google's AdMob service through a StageWebView, shouldn't it also be possible to call BlackBerry's own WebWorks Advertisement API? Actually it would be even better as WebWorks Ads can contain links to AppWorld. Edit: has anyone tried this yet? Smiley Happy I might give it a try but it would take my next free weekend, which is like in a month

I'm a bird from outer space. But I'm not flappy o.o
New Contributor
Posts: 5
Registered: ‎04-08-2012
My Device: Playbook
My Carrier: N/A

Re: Ad Mob in a Web View?

Some folks have had trouble using AdMob ads in anything but the native implementations provided by Google.  They ban accounts with sites that appear to be mobile web since they no longer allow that.


Another option would be to use HTML-based banner ads, where the network doesn't care where they're shown.  I've used LeadBolt with good success, since their banner ads are pure HTML/Javascript. 


I just made a quick video tutorial on setting an HTML ad up in a WebView using LeadBolt.  Should be portable to anywhere you can load html...


New Developer
Posts: 3
Registered: ‎11-01-2012
My Device: Developer
My Carrier: 0112345456

Re: Ad Mob in a Web View?

AdMob does no provide an option for setting up a Blackberry App. Any information on how we can use AdMob for inserting ads in an AIR app created for Blackberry Playbook would be very helpful.