广告平台信息配置文件模板

平台参数以json的格式组织,样子如下。
    	{
		"isTesting":true,//是否是测试模式
		"rateModel":1,//广告平台排序规则,0表示priority是权重,各个平台按比例显示广告,1表示priority是顺序,各个平台按顺序展示广告
		"platforms":[
		{"class":"AdmobAdapter","priority":90,"key1":"ca-app-pub-xxx/xxx","key2":"ca-app-pub-xxx/xxx"},//admob 平台 ,key1 banner ID,key2全屏id
		{"class":"BaiduAdapter","priority":10,"key1":"appid","key2":"bannerid","param":"Interstitial ID"},//baidu ssp platform,key1 应用id,key2横幅id,param全屏id或者是json字符串{"interstitialID":"interstitial ID","videoID":" video ID"}
		{"class":"AmazonAdapter","priority":20,"key1":"xxx"},//amazon 平台 ,key1 appkey
		{"class":"ChartboostAdapter","priority":40,"key1":"xxx","key2":"xxx"},//chartboost 平台 ,key1 appID,key2 signature 
		{"class":"InmobiAdapter","priority":50,"key1":"property id","key2":"banner id","key3":"interstitial id"},//inmobi 平台 ,key1 appid 
		{"class":"IadAdapter","priority":50},//iad 平台 ,android上会被自动忽略
		{"class":"KeymobAdapter","priority":50,"key1":"appid"},//keymob.com 自售广告,交叉推广需要
		{"class":"GDTAdapter","priority":10,"key1":"appid","key2":"banner id","param":"Interstitial ID"},//广点通广告配置param Interstitial id or json string {"interstitialID":"interstitial ID","appWallID":" appWall ID"}
		{"class":"AdcolonyAdapter","priority":10,"key1":"appid","key2":"zone interstitia","param":"video zone"},//Adcolony配置
		{"class":"MMediaAdapter","priority":10,"key1":"xxx","key2":"xxx"}//mmedia 平台 ,key1 banner ID,key2全屏id
		]
	}
各个广告平台Key1,Key2,param表示的意义
  1. Admob

  2. Inmobi

  3. chartboost

  4. Mmedia

  5. Iad

  6. Amazon

  7. 百度移动联盟ssp

  8. Keymob

  9. 广点通

  10. Adcolony

更多手机应用接入广告教程   qq交流群 310513042   返回首页