设为首页收藏本站同能贴吧 切换语言 繁体中文
开启辅助访问 切换到窄版
扫描二维码关注官方公众号
返回列表
+ 发新帖
查看: 98|回复: 0

[制作教程] Ads (Admob) in RPG Maker MV

[复制链接]
累计送礼:
0 个
累计收礼:
1 个
  • TA的每日心情
    开心
    前天 04:10
  • 签到天数: 209 天

    连续签到: 2 天

    [LV.7]常住居民III

    4446

    主题

    864

    回帖

    2万

    积分

    管理员

    Rank: 9Rank: 9Rank: 9

    VIP
    7
    卡币
    22899
    OK点
    16
    推广点
    0
    同能卷
    50
    积分
    28239

    灌水之王

    发表于 4 天前 | 显示全部楼层 |阅读模式
    All credits to waffs702 + his tutorial (https://github.com/waffs702/mv_to_android/wiki/インタースティシャル広告)

    Hi everyone, I wanted to share a way that you can add admob to your games.

    First of all, download the Android Studio project to turn your RPGMV project into an android application.



    GitHub - waffs702/mv_to_android: RPGツクールMV/ツクールMZプロジェクトをAndroidアプリ化

    RPGツクールMV/ツクールMZプロジェクトをAndroidアプリ化. Contribute to waffs702/mv_to_android development by creating an account on GitHub.

                                            github.com                               




    In this case I will use an example with an interstitial ad.

    Go to the following link and download the following plugins:



    waffs702/mvz_plugins

    Contribute to waffs702/mvz_plugins development by creating an account on GitHub.

                                            github.com                               




    -MZxNativeCore.js
    -MVxNativeInterstitialAd.js

    Install the plugins.





    Go to the common events of your project.





    You can optionally add two messages to check if the ads work if simply creating the common events without instructions is not enough.





    Create an event and add the following statement: MVxNativeInterstitialAd X Y, X = Common event for success and Y = Common event for failure.





    Deploy your project.





    Go to the mv_to_android-master folder, open app folder and create a folder called htmlSource.





    Move the files from your game's www folder to the htmlSource folder.





    Open mv_to_android-master in Android Studio.





    Use the view in "project" and go to app\src\main\res\values\strings.xml








    Inside string.xml you will find:

    The name of your game: <string name="app_name">game name</string>
    The id of your application in admob: <string name="ad_application_id">id app</string>
    The id of your ads:
    <string name="ad_rewarded_unit_id">id rewarded ad</string>
    <string name="ad_interstitial_id">id insterstitial ad</string>







    You can try test ads in https://developers.google.com/admob/android/test-ads#sample_ad_units or head over to admob and test your own ads.








    >Build apk

    If you do not see any ads wait at least half an hour, they usually do not appear instantly.
    That would be all.









    本贴来自国际rpgmaker官方论坛作者:DoeXav处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/ads-admob-in-rpg-maker-mv.135551/

    本帖子中包含更多资源

    您需要 登录 才可以下载或查看,没有账号?立即注册

    x
    天天去同能,天天有童年!
    回复 送礼论坛版权

    使用道具 举报

    文明发言,和谐互动
    文明发言,和谐互动
    高级模式
    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则

    简体中文
    繁體中文
    English(英语)
    日本語(日语)
    Deutsch(德语)
    Русский язык(俄语)
    بالعربية(阿拉伯语)
    Türkçe(土耳其语)
    Português(葡萄牙语)
    ภาษาไทย(泰国语)
    한어(朝鲜语/韩语)
    Français(法语)
    关闭

    幸运抽奖

    社区每日抽奖来袭,快来试试你是欧皇还是非酋~

    立即查看

    聊天机器人
    Loading...

    QQ|Archiver|手机版|小黑屋|同能RPG制作大师 ( 沪ICP备12027754号-3 )

    GMT+8, 2026-7-14 14:29 , Processed in 0.063878 second(s), 56 queries .

    Powered by Discuz! X3.4

    Copyright © 2001-2020, Tencent Cloud.

    快速回复 返回顶部 返回列表