Playmaker Forum

PlayMaker Feedback => Action Requests => Topic started by: bizilux on February 26, 2014, 05:26:31 AM

Title: ADMOB - interstitial ads
Post by: bizilux on February 26, 2014, 05:26:31 AM
can anyone help me come up with a solution to display interstitial ads from ADMOB?

my 2 first games are almost finished, so now i started looking at displaying interstitial ads, and i had no idea that this will be such a problem...

so i searched on playmaker forums, nothing useful came up. so i looked at this asset: https://www.assetstore.unity3d.com/#/content/14835 "Google Mobile Ads SDK"

here is the docs for it: https://docs.google.com/document/d/1sAXk1B-4HsDW1WCyYvM89P-ig6xL2_jpT0Ysq6RxJAM/edit

i thought i could use send message action, or call method?? can anyone help me with that pelase...

you can get "evaluation" version from developer, just send him email, he send me a version, and told me to buy it if i ever end up using it and getting it to work, and i didnt even ask him for one :)

im fine with any other plugin honestly...  although some cost like 50€ just for displaying admob  ads, thats just fucking ridiculous... (prime31)
Title: Re: ADMOB - interstitial ads
Post by: Marsh on February 26, 2014, 12:20:06 PM
A lot of people are asking for these, I was going to make them but unfortunately my computer broke last week so I have not been able to get any work done. I will do them eventually but probably not within a timeframe you would like.
Title: Re: ADMOB - interstitial ads
Post by: bizilux on February 26, 2014, 02:32:11 PM
yeh... i could use it like yesterday... basically 1 game is just waiting there until i find some solution to display interstitial ads. 99% ready to go, just need few tweaks here and there, but that will be done when ads are in place...

and other one, bus simulator, has around 2 weeks to go, but still yeh i would quite badly need some solution if someone is willing to help me out and we can figure this stuff together...

im sure its possible with ScriptControl actions?
Title: Re: ADMOB - interstitial ads
Post by: MrMitch on February 26, 2014, 03:44:15 PM
You should be able to use ScriptControl, if you have a look at the AdmobAd.cs file that comes with the NeatPlug Admob package you can see what to call to make interstitial ads load and appear.

I got the banner ad code from there.
Title: Re: ADMOB - interstitial ads
Post by: bizilux on February 26, 2014, 04:11:10 PM
yes, but the problem is i dont know which script control action to use.   im not that skilled with script control actions... thats actually my only weakness with playmaker... because you need to know some programming :)

thats why i said if anyone can help me with them
Title: Re: ADMOB - interstitial ads
Post by: MrMitch on February 26, 2014, 07:28:13 PM
I'm guessing Send Message or Invoke Method, i've never controlled scripts via playmaker before but in theory if you wrote a script that communicates with admob then used Send Message or Invoke Method you should be able to control the script.

Or you might even be able to communicate with admob directly by using Send Message or Invoke Method to control the AdmobAd.cs file that i mentioned before, i would highly suggest taking a look through the AdmobAd.cs file if you haven't already because before you can control you need to know what you're trying to control.

Also this is me helping, my knowledge is limited and don't really have the time to spend working on this issue so i'm trying to point you in the right direction :)
Title: Re: ADMOB - interstitial ads
Post by: Marsh on February 27, 2014, 09:32:02 PM
Just got my computer working again tonight. If I made this on Sunday would you be willing to pay say $15 for it?
Title: Re: ADMOB - interstitial ads
Post by: bizilux on February 28, 2014, 03:53:23 AM
yes.

but for which asset? hopefully not the most expensive one :/
Title: Re: ADMOB - interstitial ads
Post by: Marsh on February 28, 2014, 09:32:55 AM
I think there is a free Google SDK I can use.

My computer just broke AGAIN though. Ergh going to try to fix it again tonight.
Title: Re: ADMOB - interstitial ads
Post by: bizilux on February 28, 2014, 10:05:34 AM
what kind of piece of shit computer ur using? :D

sure if its free SDK, thats even better then!
Title: Re: ADMOB - interstitial ads
Post by: Marsh on February 28, 2014, 11:00:47 PM
Its many many years old lol. Luckily a buddy managed to get it working again tonight. Woo!
Title: Re: ADMOB - interstitial ads
Post by: bizilux on March 01, 2014, 05:38:18 AM
speaking of which... my computer wont boot either :/
trying to get it working in safe mode so that i can atleast upload my project to dropbox...
man thats just plain karma or murphys law :/
Title: Re: ADMOB - interstitial ads
Post by: Marsh on March 01, 2014, 10:11:53 AM
Alright, so either I will try to finish this today or tomorrow. It normally takes a day or two for the code then a day for the documentation.
Title: Re: ADMOB - interstitial ads
Post by: MrMitch on March 01, 2014, 10:28:14 AM
Which companies plugin are you making these actions for?
Title: Re: ADMOB - interstitial ads
Post by: Marsh on March 01, 2014, 10:46:45 AM
I am using the Google Unity SDK its free. So this will be a complete package no others needed.
Title: Re: ADMOB - interstitial ads
Post by: bizilux on March 02, 2014, 08:07:38 AM
great, let us know when its done :)

i got my computer working again :)
Title: Re: ADMOB - interstitial ads
Post by: Marsh on March 02, 2014, 12:02:25 PM
So I have a bit of bad news, I got the code done yesterday so all the actions are created. I now need to test as I normally have a few errors that I need to fix. Then I need to create documentation. Unfortunately the VMWare of my macosx is not working atm. So I will have to finish it up tomorrow.

Hopefully this does not put to much of a hitch in anyone's plans. I will also be releasing the In App Purchase plugin tomorrow.
Title: Re: ADMOB - interstitial ads
Post by: bizilux on March 02, 2014, 12:09:12 PM
no worries. i will probably need to reformat my pc. and hopefully that fixes my problems. so yeh not making any games right now.
Title: Re: ADMOB - interstitial ads
Post by: janys on March 03, 2014, 03:41:26 PM
Thanks for the info, looking forward to both plugins :)
Title: Re: ADMOB - interstitial ads
Post by: Marsh on March 03, 2014, 08:44:51 PM
Well the In App is out here:

http://hutonggames.com/playmakerforum/index.php?topic=6537.0

Working on the AdMob as I speak having a few troubles. Still have to write the documentation as well.
Title: Re: ADMOB - interstitial ads
Post by: escpodgames on March 03, 2014, 09:04:41 PM
Well the In App is out here:

http://hutonggames.com/playmakerforum/index.php?topic=6537.0

Working on the AdMob as I speak having a few troubles. Still have to write the documentation as well.

What are your troubles? I have these actions working but didn't want to write all the documents etc as I have games to get out.
Title: Re: ADMOB - interstitial ads
Post by: Marsh on March 03, 2014, 09:09:13 PM
I got it working thanks though :) Didnt have the -ObjC linker flag.

[Edit]
I just realized there was a Android version so I am implementing them both at once.
Title: Re: ADMOB - interstitial ads
Post by: Marsh on March 03, 2014, 11:49:53 PM
http://hutonggames.com/playmakerforum/index.php?topic=6541.0