我正在对我的android应用程序实施admob。
ask shoplifters [ if [pcolor] of patch-here = lime and
perception-of-risk <= 60 and forever-deterred = 0
[ifelse (random-float 1 < 0.98) [
set successful-shoplifts successful-shoplifts + 1 ]
[ifelse (random-float 1 < 0.05) [
set successful-shoplifts successful-shoplifts + 0 ]
[ifelse (random-float 1 < 0.99 ) [
set security-apprehension security-apprehension + 1
if professional = 0 and (random-float 1 < 0.97) [set forever-deterred 1]
set apprehended-here apprehended-here pxcor pycor of patch-here
]
[set successful-shoplifts successful-shoplifts + 1 ]
]]]]
end
广告在调试和发布模式下均能正常工作,但是我对Banner and Interstitial
感到困惑。
受奖励的视频也可以在Admob Test Unit ID上正常工作,但是当我放置广告单元ID时,会收到“ ERROR_CODE_0”。我在3个小时前创建了单位ID。我还向我的Google Play服务清单添加了元数据。
这是我的代码;
rewarded video ads
}