Page 1 of 1
Ads in my android app with inneractive
Posted: Wed Jan 30, 2013 7:41 am
by jorgecaballero
Ads in my android app
I have already listed my application, I'm trying to add ads Inneractive.
I followed the instructions of the guide but I have worked,
Does anyone have any other tutorial or suggestion?
I would appreciate your help.
Also one more question, I saw that there is an ebook academy,
if not already available or is for the future? someone could tell me.
Re: Ads in my android app with inneractive
Posted: Sat Feb 02, 2013 6:58 am
by jorgecaballero
Someone has already Inneractive ads with your applications???
Please help me do it, and I did what the guide suggests but it did not work.
.
Re: Ads in my android app with inneractive
Posted: Mon Feb 25, 2013 4:08 am
by sincipient820
email from RunRev today gave the solution as follows...
Adding the following to an openCard handler is one way to enable ads from within
your app-
Code: Select all
on openCard
mobileAdRegister "APP ID FROM INNERACTIVE"
local tDetails
// See the dictionary for more metadata entries
put "30" into tDetails["refresh"] // The advert refresh interval in seconds
put 25 into tDetails["age"] // The age of the target audience
put "male" into tDetails["gender"] // The expected gender of the target audience
mobileAdCreate "myAd1", "banner", (0,0), tDetails
mobileAdSetTopVisible ("myAd1", true) // Sets the visible of the ad "myAd1" to
true
end openCard
In the case of the Android platform, you will need to enable ad support by
selecting the appropriate "ad support" option in your Android standalone
application settings.
.... the screenshot also had "internet" and "write external storage" option in the standalone app settings clicked.... have a hunch "internet" is needed also but unsure if "write external storage" is necessary... anyway, ads are being displayed now... thanks to Neil from RunRev Support Team!
Re: Ads in my android app with inneractive
Posted: Sat Apr 26, 2014 9:20 pm
by oli_doh
Hello,
I am a newcommer. Since 8 weeks I try to learn to livecode and I have a lot of fun.
Before I write my problem I pleased to excuse my bad english.
I want to ad an add to a stack. First I registered me ad Inneractive an make an add. Now I have an ID.
My general Android Application Settings are in my dropbox. I don't have the permission to reference a picture. I take the [img] tag, but it is not allowed to publish it.
https:// dl.dropboxusercontent. com/u/37278468/livecode.jpg
(to see it, you have to delete the space between "//" and "dl." and betweente "." and "com")
My simple and small testcode looks like (It is the basiccode from the runrev lessons):
Code: Select all
on openStack
mobileAdRegister "xyz" // The ID, in my stask stands my ID and not xyz
local tDetails
// See the dictionary for more metadata entries
put "30" into tDetails["refresh"] // The advert refresh interval in seconds
mobileAdCreate "myAd1", "banner", (0,0), tDetails
mobileAdSetTopVisible ("myAd1", true) // Sets the visible of the ad "myAd1" to true
end openStack
But there is no advertising.
I have build a button to check, if there is an ad. But it tells only "could not create ad".
Has everyone an idea where my mistake is?
Thank you very much.
Re: Ads in my android app with inneractive
Posted: Sun Apr 27, 2014 3:02 am
by sefrojones
The ads will not show in the development environment, only in the emulator and on physical devices. You will also need to have internet and in-app ads ticked in your android setting. I have an app that has working inneractive ads, they sometimes do not load. Another option is:
http://www.vserv.mobi
they have an "app wrapper" program that will put the ads into the opening and closing screens of your app.
Good Luck!
Sefro
Re: Ads in my android app with inneractive
Posted: Mon Apr 28, 2014 8:58 am
by oli_doh
Hello Sefro,
thank you very much for your reply.
The internet and in-app ads are ticked (See my picture, from the last post). The app is a apk normaly installed.
It doesn`t matter. I will test the vserv.mobi service.
Have a nice day.
oli
Re: Ads in my android app with inneractive
Posted: Mon Apr 28, 2014 6:08 pm
by sefrojones
Oli,
I just tested your exact code from above (substituting my own inneractive app ID) and it worked in the emulator without a problem. Just thought I'd let you know that there is nothing wrong with your code. I'm not sure what it could be, but possibly something in your inneractive account needs to be set up. One thing I have noticed about inneractive ads, is that you should check for internet connection before trying to load them. I've found that if you do not check for internet connectivity and try to load an ad, it can lead to unstable performance... I have been using Mark's solution from this thread to check for connection:
http://forums.runrev.com/viewtopic.php?f=7&t=13290
Good Luck!
Sefro
edit: here's what my standalone settings look like, if maybe that helps:
Re: Ads in my android app with inneractive
Posted: Mon Apr 28, 2014 6:58 pm
by oli_doh
Hello Sefro,
that is very interesting, I will test it shortly and give a response.
oli