Inserting mobile ads into Unity games

Hi!

I’m new to mobile and Unity development, and I want to start a project of making mobile games for iOS and Andriod. I’m trying to figure out wich option would suit best my needs, and Unity is clearly a great one with the power and simplicity that it offers.

The thing is that I want to make money from this games by using ads.

I want to know if the implementation of these ads is posible in Unity, before choosing it to develop.

Some of those ads companies are these:

http://www.airpush.com/android-developers/

I would appreciate if someone could confirm or deny this. I hope that this can be made, because I really want to develop in Unity.

Thank you in advance, and sorry for my bad english!

Hi
Unity also provide wrapper for AdBannerView Objective C.
You can easily use Unity’s AbBannerView to implement iad in your ios app.See code below.
Attach this script to empty game object in screen and you are ready to go and earn.

using UnityEngine;
using System.Collections;
using System.Runtime.InteropServices;

public class ads : MonoBehaviour {

private ADBannerView banner = null;

// Use this for initialization
void Start () {
	banner = new ADBannerView(ADBannerView.Type.Banner, ADBannerView.Layout.Top);
	ADBannerView.onBannerWasClicked += OnBannerClicked;
	ADBannerView.onBannerWasLoaded  += OnBannerLoaded;
	
	
}


// Update is called once per frame
void Update () {
	hideBannerIfNotLoaded();

	
}


void OnBannerClicked()
{
	Debug.Log("Clicked!

");
banner.visible = false;
banner = null;
banner = new ADBannerView(ADBannerView.Type.Banner, ADBannerView.Layout.Top);
ADBannerView.onBannerWasClicked += OnBannerClicked;
ADBannerView.onBannerWasLoaded += OnBannerLoaded;
}
void OnBannerLoaded()
{
Debug.Log("Loaded!
");
banner.visible = true;
}
void hideBannerIfNotLoaded(){
if(banner.visible && !banner.loaded)
{
banner.visible = false;
}
}
}

i tried the starapplication’s solution they offer a great revenue its about $105 eCPM, in the begining they offered 6 monetisation tools but now there are only three because of the google policy, i advice u to try it! they are realy correct in paiement and they are doin a really good job :slight_smile: good luck