可玩广告是向用户提供交互式游戏片段的广告,也称为“小游戏”。广告最后有一个用户自愿进行的行为(例如,安装应用程序),通常时长不到 30 秒。
1.ironsource对接流程
2.游戏设计建议
● 不要复制您的游戏,您的可玩广告不应该是您游戏的复制品。而应该是一个简化版本。
● 将难度级别设置为容易-中等
● 降低用户学习成本必须在3-4秒内使用户了解如何与可玩广告互动。通常可以向用户提供手指游标,并指示用户滑动屏幕的位置。或者突出显示关键按钮,提供提示,并提供简洁明确的说明。
● 加载可播放广告时,必须包含加载动画(例如转圈、进度条)
● 包含应用程序图标或LOGO以提高品牌知名度
● 在游戏过程中 - “现在安装”, Call to Action(动作唤起)文本
● Endcard - “继续游戏”或“免费下载“
3.如何接入
有两种对接方法:
- mraid(Mobile Rich Media Ad Interface Definitions) 移动端富媒体广告接口标准
通俗的讲,它是一套通用的接口,内嵌在设备里边,大家可以调用。详细使用看这里
//页面需要引用mraid.js
<script src="mraid.js"></script>
<script>
function init(){
if(typeof mraid=="undefined"){
console.error("不支持mraid");
showMyAd(1);
}else{
mraid.addEventListener("stateChange", mraidStateChange);
console.log("mraid.getState",mraid.getState());
if (mraid.getState() == 'loading'){
mraid.addEventListener("ready", mraidReady);
}else{
showMyAd();
}
}
}
//监听mraid StateChange事件
function mraidStateChange(state){
if( state== 'loading'){
console.log("loading");
}else if( state== 'default'){
console.log("mraid default");
mraid.getMaxSize();
//toggleLayer('expanded', 'normal');
}else if( state== 'expanded'){
console.log("mraid expanded");
//toggleLayer('normal', 'expanded');
}else if( state== 'resized'){
console.log(