[RPG Maker] Simple AdMob - RPG Maker MV

Introduction

This plugin provides the way easily to display an advertisement in your cordova application for Android or iOS.

 

Korean Translation - https://blog.naver.com/biud436/220779787549

 

How to setup

 

1. Create a cordova application

In case of using a cordova-cli, Before you start build your mobile application, you need to attempt as below.

 

if your cordova version is to 7 or more, you can easily add the plugin by calling as below command:

 

cordova plugin add cordova-plugin-admob-free --save --variable ADMOB_APP_ID="<YOUR_ANDROID_ADMOB_APP_ID_AS_FOUND_IN_ADMOB>"

 

2. Join and Setup the AdMob

 

If you would like adding Google AdMob, you must join 'https://apps.admob.com/' page with a google and then create a new application and then specify the advertisement id of two type(BannerAd, InterstitialAd).

 

Its id format is 'ca-app-pub-xxxxxxxxxxxxxxxx-xxxxxxxxxx'Note that the 'x' is replaced is to different random number between 0 and 9. Note that it couldn't indicate the advertisement if the x value is not replaced as real value in the plugin parameters (Beware of using an invalid id. if it is invalid, the AdMob will not be working)

 

3. Checking the internet

If the internet is not connected, the advertisement view is not created. So there is need to include the function that can end up the application forcibly if the internet didn't connect. AJAX go along can be a good way to check the network status. But there is no need to put an AJAX logic directly. 

 

You can try this plugin command:

 

CheckInternet url

 

To do this, you must replace default url as other thing. For Example:

 

CheckInternet https://www.google.com

 

4. Calling the advertisement

경축! 아무것도 안하여 에스천사게임즈가 새로운 모습으로 재오픈 하였습니다.
어린이용이며, 설치가 필요없는 브라우저 게임입니다.
https://s1004games.com

 

You can be loaded or be removed the banner advertisement once using these plugin commands:

 

Banner show

Banner remove

 

If you would like to show up the advertisement on the full screen, you can indicate it using this plugin command: 

 

Interstitial show

 

You can set reward code blocks using plugin parameters.

 

ShowRewardVideo

 

If your current balance does not meet the payment threshold (0 USD), You can't be getting a paid(please see this link)

 

Downloads

https://github.com/biud436/MV/raw/master/Android/RS_Admob.js
 

Change Log

 * 2016.08.06 (v1.0.0) - First Release

 * 2016.10.05 (v1.0.1) - Added the function that could be checking the internet.

 * 2019.11.06 (v1.0.2) :

 * - Fixed the bug that is not working.

 * - Changed as the cordova plugin(extension) that works fine.

 * - Added reward video.

 * - Changed SceneManager.exit() to navigator.app.exitApp();

[출처] https://biud436.tistory.com/73

 

 

 

 

본 웹사이트는 광고를 포함하고 있습니다.
광고 클릭에서 발생하는 수익금은 모두 웹사이트 서버의 유지 및 관리, 그리고 기술 콘텐츠 향상을 위해 쓰여집니다.
번호 제목 글쓴이 날짜 조회 수
171 [Ren'Py] 렌파이(RenPy) 에 광고 (애드몹) 붙이기 file 졸리운_곰 2024.12.20 225
170 [godot 엔진] 오픈 소스 고도 프로젝트 모음 - 고도 배우기, Godot file 졸리운_곰 2024.12.16 337
» [RPG Maker] Simple AdMob - RPG Maker MV 졸리운_곰 2024.12.16 324
168 [RPG Maker] 코르도바 광고 삽입 플러그인 - RPG Maker MV file 졸리운_곰 2024.12.15 160
167 [RPG Maker] MacOS에서 RPG Maker MZ로 만든 게임을 Android 앱으로 빌드하기 file 졸리운_곰 2024.12.15 196
166 [Unity] [모바일, 2D] 유니티 기초2 - 씬 전환하기 file 졸리운_곰 2024.12.14 186
165 [flutter (플루터 앱 개발)] How to Implement Any UI in Flutter : 플러터에서 모든 UI를 구현하는 방법 file 졸리운_곰 2024.11.28 192
164 [게임 일반] SharpMoku a Gomoku/Five in a Row Written in C# : SharpMoku a Gomoku/Five in a Row C#로 작성됨 : 오목게임 개발 file 졸리운_곰 2024.10.31 311
163 [flutter] A PocketBase backend for Flutter and Dart : Flutter 및 Dart용 PocketBase 백엔드 file 졸리운_곰 2024.10.29 266
162 [flutter] 44... 실 기기 테스트용 apk 파일 빌드하기 졸리운_곰 2024.10.26 233
161 [게임 마켓플레이스] 스팀에 ‘게임’을 출시하고 싶다면? file 졸리운_곰 2024.09.07 316
160 [TextMode Game Create] Text based game 졸리운_곰 2024.08.25 519
159 [pocketbase] 포켓 베이스(Pocket Base) 빠르게 입문하기(CRUD) file 졸리운_곰 2024.08.20 342
158 [pocketbase] Flutter 및 Dart용 PocketBase 백엔드 : A PocketBase backend for Flutter and Dart file 졸리운_곰 2024.08.18 394
157 [flutter (플루터 앱 개발)] [플러터] ios : error while build iOS app in Xcode : Sandbox: rsync.samba (13105) deny(1) file-write-create, Flutter failed to write to a file file 졸리운_곰 2024.07.26 296
156 [flutter (플루터 앱 개발)] [플러터] ios 앱 출시하기 file 졸리운_곰 2024.07.24 343
155 [flutter (플루터 앱 개발)] flutter 안드로이드 출시하기 keystore 적용 (keystore 분실 해결방법) 졸리운_곰 2024.07.16 333
154 [flutter (플루터 앱 개발)] Flutter - GetX를 이용한 상태관리 file 졸리운_곰 2024.07.12 326
153 [pocketbase] A PocketBase backend for Flutter and Dart : Flutter 및 Dart용 PocketBase 백엔드 file 졸리운_곰 2024.06.19 283
152 [flutter (플루터 앱 개발)] flutter pocketbase 사용법 3탄(로그인) file 졸리운_곰 2024.06.10 413
대표 김성준 주소 : 경기 용인 분당수지 U타워 등록번호 : 142-07-27414
통신판매업 신고 : 제2012-용인수지-0185호 출판업 신고 : 수지구청 제 123호 개인정보보호최고책임자 : 김성준 sjkim70@stechstar.com
대표전화 : 010-4589-2193 [fax] 02-6280-1294 COPYRIGHT(C) stechstar.com ALL RIGHTS RESERVED