1.创建unity 账号,登录后台,创建项目,生成GameID(对应的是一个7位数)
2.可以添加广告位ID
3.ios sdk 集成,下载获取sdk
4.#import
@interface ViewController :UIViewController
@end
5.初始化unityAds:
[UnityAds setDebugMode:true];
[UnityAds initialize:"gameID" delegate :self testMode:false];
6.调用广告:判断是否准备ok
if([UnityAds isReady:placementID])
{
[UnityAds show:self placementID];
}
7.android 平台和以上类似。
相关网址有一下:
https://oc.unity3d.com/index.php/s/iH9bsF74maiBgeh
https://github.com/Unity-Technologies/unity-ads-ios/tree/master/UnityAdsExample
https://github.com/unity-cn/unityads-help-cn/blob/master/Unity%20Ads%20Integration%20Manual.pdf