10-08-2012 12:56 PM
Hello forum. I wanted to get my hands on the example on advertising service and cascades but the example is missing.
it says download to get a zip file but instead there is a link to cascades github but the adv app is nowhere there.
can i find it elsewhere?
Solved! Go to Solution.
10-15-2012 08:36 AM
Hi there,
I reported the missing file to the docs team and they are working to fix the page with updated information that does not rely on the sample. If you have any issues getting Advertising working without the sample please let me know.
Cheers,
10-15-2012 09:51 AM
Not an expert in developing, so it is easier for me to understand how code works through a sample app.
10-15-2012 09:55 AM
You don't need to be an expert with Cascades, the actual Banner implementation is very simplified and most of what you need is displayed right in the docs.
Have you used the Advertising Service for WebWorks or Java in the past? It's very similar.
10-15-2012 10:17 AM
ok. I try to follow the directions in the documentation. After fixing a typo in the qml file, and after importing the library, and giving all permisions i get the following error when trying to run on the dev alpha.
Packaging failed:1
Error: Invalid asset path "libcascadesadvertisement.so"
any advice?
I am not familiar with the advertising sdk yet. just experimenting with this one.
10-15-2012 11:02 AM
How did you add the library file to your app? Have you modified your app's .pro file yet?
10-15-2012 11:10 AM
app->configure->add library->Standard BlackBerry Platform Library->Blackberry Cascades Ad API
and then add the
LIBS += -lbbcascadesadvertisement
line in the pro file.
10-15-2012 11:15 AM
alexchristou wrote:
app->configure->add library->Standard BlackBerry Platform Library->Blackberry Cascades Ad API
You shouldn't do that, just add to the .PRO file
10-15-2012 11:47 AM
ok. Done that but the app is stuck at splash screen for some time and then crushes.
10-15-2012 11:52 AM
Ok, one more thing, add the following line to your main.cpp file near the top of the main method:
qmlRegisterType<bb::cascades::advertisement::Banne
This registers "Banner" so it can be used from QML. You will also need to add an include for Banner:
ex #include <bb/cascades/Banner>