Inserting ad in my app Errors

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
abanowBUSTfGf
Posts: 63
Joined: Sat Dec 22, 2012 3:01 am

Inserting ad in my app Errors

Post by abanowBUSTfGf » Wed Feb 27, 2013 9:22 am

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?

Klaus
Posts: 13829
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Inserting ad in my app Errors

Post by Klaus » Wed Feb 27, 2013 10:19 am

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

amsterfrank
Posts: 12
Joined: Thu Dec 09, 2010 11:40 pm
Location: Amsterdam

Re: Inserting ad in my app Errors

Post by amsterfrank » Thu Sep 12, 2013 1:58 am

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.
Accelerate your Windows system with 9.8 m/s²

fedaykinofdune
Posts: 8
Joined: Sat Apr 13, 2013 5:18 am

Re: Inserting ad in my app Errors

Post by fedaykinofdune » Thu Nov 14, 2013 6:26 am

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?

amsterfrank
Posts: 12
Joined: Thu Dec 09, 2010 11:40 pm
Location: Amsterdam

Re: Inserting ad in my app Errors

Post by amsterfrank » Thu Nov 14, 2013 7:56 am

In regard to your "aren't allowed" I'd say you're right :roll:
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²

LCNeil
Livecode Staff Member
Livecode Staff Member
Posts: 1223
Joined: Wed Oct 03, 2012 4:07 pm

Re: Inserting ad in my app Errors

Post by LCNeil » Thu Nov 14, 2013 11:03 am

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
--

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”