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
New Contributor
zgames
Posts: 7
Registered: ‎08-31-2013
My Device: BB10

no ad showing - in mocean ad service in my phonegap (webworks) - for BB10

Hi 

I am using below link to get ad banner in my Phonegap-Webworks application for BB10 .

 

http://supportforums.blackberry.com/t5/Web-and-WebWorks-Development/Community-API-for-Advertising-SD... 

 

But no ad is showing.

 

Below is the code I am using :

The event 'onComplete' is calling after loading the application but no ad is showing (only the default image, that i set at the configuration -hippoEyes.png, is displaying)

 

Please help...... :smileysad:

...................

...................

 var div = document.getElementById('ad0'); // ad0 is the id of banner div

div.style.backgroundColor = 'black';
div.style.width = "100%";
div.style.height = "50px";
div.style.color = 'white';
div.style.fontFamily = '"Slate Pro", Slate, "Myriad Pro", "BBAlpha Sans", Helvetica';
div.style.fontSize = '48px';
div.style.textAlign = 'center';

 

// 227100 is the zoneid taken from https://adservices.blackberry.com/ 

 

 

advertising.banner(227100, 'ad0', {
min_size_x: 0,
min_size_y: 0,
size_x: div.offsetWidth,
size_y: div.offsetHeight,
refreshRate: 1, /* Refresh every 10 minutes. */
defaultImage: 'hippoEyes.png',
defaultURL: get_more_apps_url(),
defaultHTML: 'Womp womp.',
callback: onComplete,
params: { /* Any additional params to pass to the Mocean web service. */
test: 0, /* Request ads in test mode? 1 = yes, 0 or no value = no. */
ua: window.navigator.userAgent /* User-agent. */
}
});

 

 

Retired
gbeukeboom
Posts: 2,559
Registered: ‎10-16-2009
My Device: BlackBerry Z10

Re: no ad showing - in mocean ad service in my phonegap (webworks) - for BB10

In the mocean ad portal do you see requests coming in from your app? If so it is likely just that no ads are available at the time your app is run.

Garett
@garettBeuk
--
Goodbye everybody!
New Contributor
zgames
Posts: 7
Registered: ‎08-31-2013
My Device: BB10

Re: no ad showing - in mocean ad service in my phonegap (webworks) - for BB10

[ Edited ]

Hi Garett,

Thanks for reply.

Yes, I can see requests from my application in https://adservices.blackberry.com/wl/pubdashboard (not in mocean ad portal ). I implemented the code in app before around 4-5 days, and added the zoneid around 4 weeks before, but still not seeing ad. Around howmuch time it needed to start to see the ad ... 

 

And also,

In Manage Apps settings, for my app (phonegap using webworks for BB10) which option I can chose as the App Type from below?

BlackBerry app

Webwork app

BB10 Cascades

BB10 Native

 

 

 

 

Retired
gbeukeboom
Posts: 2,559
Registered: ‎10-16-2009
My Device: BlackBerry Z10

Re: no ad showing - in mocean ad service in my phonegap (webworks) - for BB10

It can take a while, but if you see requests coming in you are all set, just need to wait.

 

The more requests the higher and faster the fill rate will grow.

Garett
@garettBeuk
--
Goodbye everybody!
New Contributor
zgames
Posts: 7
Registered: ‎08-31-2013
My Device: BB10

Re: no ad showing - in mocean ad service in my phonegap (webworks) - for BB10

Hi, I was waiting..still now working..

Only the default image is showing in the ad area and no ad ( even after waiting for half - one hour).... :smileysad:

Requests are seeing in the Ad service report..