Inserting ad in my app Errors
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
-
- Posts: 63
- Joined: Sat Dec 22, 2012 3:01 am
Inserting ad in my app Errors
I'm trying out the tutorial to insert an ad in my app but get the error:
Type Handler: can't find handler
Object Register
Line mobileAdRegister "My_First_app"
Hint mobileAdRegister
I get the same for mobileAdCreate
and mobileAdDelete
I got the key from inneractive and am implementing on an Android mobile phone.
The screen with 3 buttons comes up but nothing happens when I press the buttons.
Not sure what I'm doing wrong. Can anyone help please?
Type Handler: can't find handler
Object Register
Line mobileAdRegister "My_First_app"
Hint mobileAdRegister
I get the same for mobileAdCreate
and mobileAdDelete
I got the key from inneractive and am implementing on an Android mobile phone.
The screen with 3 buttons comes up but nothing happens when I press the buttons.
Not sure what I'm doing wrong. Can anyone help please?
Re: Inserting ad in my app Errors
Did you use a IF THEN to check if you are on MOBILE?
The IDE does not know these handlers and throws errors!
...
if the environment = "mobile" then
## do your mobile stuff here
end if
...
Best
Klaus
The IDE does not know these handlers and throws errors!
...
if the environment = "mobile" then
## do your mobile stuff here
end if
...
Best
Klaus
-
- Posts: 12
- Joined: Thu Dec 09, 2010 11:40 pm
- Location: Amsterdam
Re: Inserting ad in my app Errors
Okay Klaus, this error in the IDE get fixed by using the if-mobile statement. I call mobileAdRegister with one of the AppID's I generated in InnerActive. Then I do a little checkconnection test to make sure there is a connection with internet. Then I call mobileAdCreate and put the result in a feedback field. This keeps telling me 'could not create ad'. The dictionairy shows me, this is due to the app not having Internet permissions or the registered app key is not valid. As I just checked the internet connections and I'm sure I copy-pasted the AppID exactly right, I wonder why it still doesn't work. Is this for Community as well, or Commercial only? Do I need another way of checking "internet permissions" ?
Is there anybody willing to drop a little stack here showing how it's done correctly, or able to tell me what I'm probably doing wrong?
I am using LC 6.1.0 Community and I can do Simulator from SDK 5.0 to 6.1
Thanks in advance. Regards.
Is there anybody willing to drop a little stack here showing how it's done correctly, or able to tell me what I'm probably doing wrong?
I am using LC 6.1.0 Community and I can do Simulator from SDK 5.0 to 6.1
Thanks in advance. Regards.
Accelerate your Windows system with 9.8 m/s²
-
- Posts: 8
- Joined: Sat Apr 13, 2013 5:18 am
Re: Inserting ad in my app Errors
I'm having the same problem as well and it's getting quite frustrating. I've tested it as many ways as I can in an emulator and still getting nothing. This is in the community edition, so is it possible ads aren't allowed?
-
- Posts: 12
- Joined: Thu Dec 09, 2010 11:40 pm
- Location: Amsterdam
Re: Inserting ad in my app Errors
In regard to your "aren't allowed" I'd say you're right
I learned (from Neil) that the ad thingy doesn't fly with 6.1.x Community. You seem to need 6.0 Commercial. I don't have that and am not getting it, therefor I never saw it work. I mailed with the adcompany behind it, and it took them mány weeks to reply, only to throw retarded rethorical questions back at me. Oh well. I can't help you any further, since I'm in html5/javascript now.
I learned (from Neil) that the ad thingy doesn't fly with 6.1.x Community. You seem to need 6.0 Commercial. I don't have that and am not getting it, therefor I never saw it work. I mailed with the adcompany behind it, and it took them mány weeks to reply, only to throw retarded rethorical questions back at me. Oh well. I can't help you any further, since I'm in html5/javascript now.
Accelerate your Windows system with 9.8 m/s²
Re: Inserting ad in my app Errors
Hi Everyone,
Inneractive ads will not work within the LiveCode community as inneractive are a 3rd party ad provider and we do not have the rights or licence to release their ad system source within this open source version of LiveCode.
If you wish to use inneractive ads within your app you would need to purchase a commercial license.
Kind Regards,
Neil Roger
--
RunRev Support Team ~ http://www.runrev.com
LiveCode – Realize fast, compile-free coding
--
Inneractive ads will not work within the LiveCode community as inneractive are a 3rd party ad provider and we do not have the rights or licence to release their ad system source within this open source version of LiveCode.
If you wish to use inneractive ads within your app you would need to purchase a commercial license.
Kind Regards,
Neil Roger
--
RunRev Support Team ~ http://www.runrev.com
LiveCode – Realize fast, compile-free coding
--