protected override Variable Evaluate(ParsingScript script) { bool isList = false; List <Variable> args = Utils.GetArgs(script, Constants.START_ARG, Constants.END_ARG, (outList) => { isList = outList; }); Utils.CheckArgs(args.Count, 2, m_name); string appId = args[0].AsString(); string interstId = Utils.GetSafeString(args, 1); string bannerId = Utils.GetSafeString(args, 2); AdMob.Init(MainActivity.TheView, appId, interstId, bannerId); return(Variable.EmptyInstance); }
protected override Variable Evaluate(ParsingScript script) { AdMob.ShowInterstitialAd(); script.MoveForwardIf(Constants.END_ARG); return(Variable.EmptyInstance); }