20130330 nagoya unityアプリに広告を入れる方法 公開用
TRANSCRIPT
![Page 1: 20130330 nagoya unityアプリに広告を入れる方法 公開用](https://reader030.vdocuments.pub/reader030/viewer/2022020101/556a4466d8b42a4a1e8b4c90/html5/thumbnails/1.jpg)
Unityでつくったアプリに簡単に広告を入れる方法
~ アド部 in 名古屋 ~2013/3/30
日本Androidの会 秋葉原支部アド部
yasuyuki.kamata
113年3月30日土曜日
![Page 2: 20130330 nagoya unityアプリに広告を入れる方法 公開用](https://reader030.vdocuments.pub/reader030/viewer/2022020101/556a4466d8b42a4a1e8b4c90/html5/thumbnails/2.jpg)
Unityでつくったアプリに簡単に広告を入れる方法
~ アド部 in 名古屋 ~2013/3/30
日本Androidの会 秋葉原支部アド部
yasuyuki.kamata
213年3月30日土曜日
![Page 3: 20130330 nagoya unityアプリに広告を入れる方法 公開用](https://reader030.vdocuments.pub/reader030/viewer/2022020101/556a4466d8b42a4a1e8b4c90/html5/thumbnails/3.jpg)
Unityでつくったアプリに簡単に広告を入れる方法
~ アド部 in 名古屋 ~2013/3/30
日本Androidの会 秋葉原支部アド部
yasuyuki.kamata
213年3月30日土曜日
![Page 4: 20130330 nagoya unityアプリに広告を入れる方法 公開用](https://reader030.vdocuments.pub/reader030/viewer/2022020101/556a4466d8b42a4a1e8b4c90/html5/thumbnails/4.jpg)
Unityでつくったアプリに簡単に広告を入れる方法
~ アド部 in 名古屋 ~2013/3/30
日本Androidの会 秋葉原支部アド部
yasuyuki.kamata
2
ゲーム内に自社広告
13年3月30日土曜日
![Page 5: 20130330 nagoya unityアプリに広告を入れる方法 公開用](https://reader030.vdocuments.pub/reader030/viewer/2022020101/556a4466d8b42a4a1e8b4c90/html5/thumbnails/5.jpg)
• 鎌田 泰行• 日本Androidの会 秋葉原支部
• アド部
• Unity部
自己紹介
313年3月30日土曜日
![Page 6: 20130330 nagoya unityアプリに広告を入れる方法 公開用](https://reader030.vdocuments.pub/reader030/viewer/2022020101/556a4466d8b42a4a1e8b4c90/html5/thumbnails/6.jpg)
まえおき
•Unityのユーザーってどれくらいいるの?
413年3月30日土曜日
![Page 7: 20130330 nagoya unityアプリに広告を入れる方法 公開用](https://reader030.vdocuments.pub/reader030/viewer/2022020101/556a4466d8b42a4a1e8b4c90/html5/thumbnails/7.jpg)
まえおき
5
2013年3月
世界のUnityユーザ数
13年3月30日土曜日
![Page 8: 20130330 nagoya unityアプリに広告を入れる方法 公開用](https://reader030.vdocuments.pub/reader030/viewer/2022020101/556a4466d8b42a4a1e8b4c90/html5/thumbnails/8.jpg)
まえおき
5
2013年3月
世界のUnityユーザ数
150万+
13年3月30日土曜日
![Page 9: 20130330 nagoya unityアプリに広告を入れる方法 公開用](https://reader030.vdocuments.pub/reader030/viewer/2022020101/556a4466d8b42a4a1e8b4c90/html5/thumbnails/9.jpg)
まえおき
6
2013年3月
日本のUnityユーザ数
13年3月30日土曜日
![Page 10: 20130330 nagoya unityアプリに広告を入れる方法 公開用](https://reader030.vdocuments.pub/reader030/viewer/2022020101/556a4466d8b42a4a1e8b4c90/html5/thumbnails/10.jpg)
まえおき
6
2013年3月
日本のUnityユーザ数
9万+
13年3月30日土曜日
![Page 11: 20130330 nagoya unityアプリに広告を入れる方法 公開用](https://reader030.vdocuments.pub/reader030/viewer/2022020101/556a4466d8b42a4a1e8b4c90/html5/thumbnails/11.jpg)
まえおき
7
2013年3月
日本の導入企業数
13年3月30日土曜日
![Page 12: 20130330 nagoya unityアプリに広告を入れる方法 公開用](https://reader030.vdocuments.pub/reader030/viewer/2022020101/556a4466d8b42a4a1e8b4c90/html5/thumbnails/12.jpg)
まえおき
7
2013年3月
日本の導入企業数
600+
13年3月30日土曜日
![Page 13: 20130330 nagoya unityアプリに広告を入れる方法 公開用](https://reader030.vdocuments.pub/reader030/viewer/2022020101/556a4466d8b42a4a1e8b4c90/html5/thumbnails/13.jpg)
まえおき
•Unityのアプリってどれくらいあるの?どんなものがあるの?
813年3月30日土曜日
![Page 14: 20130330 nagoya unityアプリに広告を入れる方法 公開用](https://reader030.vdocuments.pub/reader030/viewer/2022020101/556a4466d8b42a4a1e8b4c90/html5/thumbnails/14.jpg)
まえおき
•残念ながら正確なUnity製アプリ数はわかりません(Unity Technologies社でも分かりません)
913年3月30日土曜日
![Page 15: 20130330 nagoya unityアプリに広告を入れる方法 公開用](https://reader030.vdocuments.pub/reader030/viewer/2022020101/556a4466d8b42a4a1e8b4c90/html5/thumbnails/15.jpg)
トリビア
10
Unityアプリを判別する方法
13年3月30日土曜日
![Page 16: 20130330 nagoya unityアプリに広告を入れる方法 公開用](https://reader030.vdocuments.pub/reader030/viewer/2022020101/556a4466d8b42a4a1e8b4c90/html5/thumbnails/16.jpg)
トリビア
10
Unityアプリを判別する方法
3Dゲーム
13年3月30日土曜日
![Page 17: 20130330 nagoya unityアプリに広告を入れる方法 公開用](https://reader030.vdocuments.pub/reader030/viewer/2022020101/556a4466d8b42a4a1e8b4c90/html5/thumbnails/17.jpg)
トリビア
10
Unityアプリを判別する方法
DDMS Logcatを見る(Android)
3Dゲーム
13年3月30日土曜日
![Page 18: 20130330 nagoya unityアプリに広告を入れる方法 公開用](https://reader030.vdocuments.pub/reader030/viewer/2022020101/556a4466d8b42a4a1e8b4c90/html5/thumbnails/18.jpg)
トリビア
10
Unityアプリを判別する方法
DDMS Logcatを見る(Android)
3Dゲーム
スクショ撮ると音が大きくなる(iOS)
13年3月30日土曜日
![Page 19: 20130330 nagoya unityアプリに広告を入れる方法 公開用](https://reader030.vdocuments.pub/reader030/viewer/2022020101/556a4466d8b42a4a1e8b4c90/html5/thumbnails/19.jpg)
Unityの中で広告を出す
•広告用のViewを生成して表示する•
11
(Android)
やり方は2通り(個人的な考えです)
13年3月30日土曜日
![Page 20: 20130330 nagoya unityアプリに広告を入れる方法 公開用](https://reader030.vdocuments.pub/reader030/viewer/2022020101/556a4466d8b42a4a1e8b4c90/html5/thumbnails/20.jpg)
unity-adbanner-example でやってること(Android)
1213年3月30日土曜日
![Page 21: 20130330 nagoya unityアプリに広告を入れる方法 公開用](https://reader030.vdocuments.pub/reader030/viewer/2022020101/556a4466d8b42a4a1e8b4c90/html5/thumbnails/21.jpg)
unity-adbanner-example でやってること(Android)
13
UnityPlayerUnityEngine
ゲームのコアな部分
13年3月30日土曜日
![Page 22: 20130330 nagoya unityアプリに広告を入れる方法 公開用](https://reader030.vdocuments.pub/reader030/viewer/2022020101/556a4466d8b42a4a1e8b4c90/html5/thumbnails/22.jpg)
unity-adbanner-example でやってること(Android)
14
UnityPlayerActivity
UnityPlayerUnityEngine
実際にゲームを動かしているActivity
13年3月30日土曜日
![Page 23: 20130330 nagoya unityアプリに広告を入れる方法 公開用](https://reader030.vdocuments.pub/reader030/viewer/2022020101/556a4466d8b42a4a1e8b4c90/html5/thumbnails/23.jpg)
unity-adbanner-example でやってること(Android)
15
UnityPlayerActivity
UnityPlayerUnityEngine
static Plugin Class(jar)
UnityEngineからjarファイル内に用意した
メソッドを呼ぶ
13年3月30日土曜日
![Page 24: 20130330 nagoya unityアプリに広告を入れる方法 公開用](https://reader030.vdocuments.pub/reader030/viewer/2022020101/556a4466d8b42a4a1e8b4c90/html5/thumbnails/24.jpg)
unity-adbanner-example でやってること(Android)
16
UnityPlayerActivity
UnityPlayerUnityEngine
static Plugin Class(jar)
広告用のViewを生成する
13年3月30日土曜日
![Page 25: 20130330 nagoya unityアプリに広告を入れる方法 公開用](https://reader030.vdocuments.pub/reader030/viewer/2022020101/556a4466d8b42a4a1e8b4c90/html5/thumbnails/25.jpg)
unity-adbanner-example でやってること(Android)
17
UnityPlayerActivity
UnityPlayerUnityEngine
static Plugin Class(jar)
UnityPlayerActivity内に表示する
13年3月30日土曜日
![Page 26: 20130330 nagoya unityアプリに広告を入れる方法 公開用](https://reader030.vdocuments.pub/reader030/viewer/2022020101/556a4466d8b42a4a1e8b4c90/html5/thumbnails/26.jpg)
unity-adbanner-example でやってること(Android)
18
UnityPlayerActivity
UnityPlayerUnityEngine
static Plugin Class(jar)
AD
広告が表示された!
13年3月30日土曜日
![Page 27: 20130330 nagoya unityアプリに広告を入れる方法 公開用](https://reader030.vdocuments.pub/reader030/viewer/2022020101/556a4466d8b42a4a1e8b4c90/html5/thumbnails/27.jpg)
Unityの中で広告を出す
•広告用のViewを生成して表示する•ゲームの世界に組み込んでしまう
19
(Android)
やり方は2通り(個人的な考えです)
13年3月30日土曜日
![Page 28: 20130330 nagoya unityアプリに広告を入れる方法 公開用](https://reader030.vdocuments.pub/reader030/viewer/2022020101/556a4466d8b42a4a1e8b4c90/html5/thumbnails/28.jpg)
イメージ
2013年3月30日土曜日
![Page 29: 20130330 nagoya unityアプリに広告を入れる方法 公開用](https://reader030.vdocuments.pub/reader030/viewer/2022020101/556a4466d8b42a4a1e8b4c90/html5/thumbnails/29.jpg)
イメージ
2013年3月30日土曜日
![Page 30: 20130330 nagoya unityアプリに広告を入れる方法 公開用](https://reader030.vdocuments.pub/reader030/viewer/2022020101/556a4466d8b42a4a1e8b4c90/html5/thumbnails/30.jpg)
メリット
2113年3月30日土曜日
![Page 31: 20130330 nagoya unityアプリに広告を入れる方法 公開用](https://reader030.vdocuments.pub/reader030/viewer/2022020101/556a4466d8b42a4a1e8b4c90/html5/thumbnails/31.jpg)
メリット
•広告がゲームに溶け込んでる
2113年3月30日土曜日
![Page 32: 20130330 nagoya unityアプリに広告を入れる方法 公開用](https://reader030.vdocuments.pub/reader030/viewer/2022020101/556a4466d8b42a4a1e8b4c90/html5/thumbnails/32.jpg)
メリット
•広告がゲームに溶け込んでる
21
• (mobileの場合)Android,iOS個別対応をしなくて良い
13年3月30日土曜日
![Page 33: 20130330 nagoya unityアプリに広告を入れる方法 公開用](https://reader030.vdocuments.pub/reader030/viewer/2022020101/556a4466d8b42a4a1e8b4c90/html5/thumbnails/33.jpg)
実装の仕方
•洒落た事をしようとすれば当然カスタマイズが必要になりますが、まずは最低限の機能を実装します。
•もちろんAsset Storeの力を借ります
2213年3月30日土曜日
![Page 34: 20130330 nagoya unityアプリに広告を入れる方法 公開用](https://reader030.vdocuments.pub/reader030/viewer/2022020101/556a4466d8b42a4a1e8b4c90/html5/thumbnails/34.jpg)
今回使うアセットは...
2313年3月30日土曜日
![Page 35: 20130330 nagoya unityアプリに広告を入れる方法 公開用](https://reader030.vdocuments.pub/reader030/viewer/2022020101/556a4466d8b42a4a1e8b4c90/html5/thumbnails/35.jpg)
今回使うアセットは...
2413年3月30日土曜日
![Page 36: 20130330 nagoya unityアプリに広告を入れる方法 公開用](https://reader030.vdocuments.pub/reader030/viewer/2022020101/556a4466d8b42a4a1e8b4c90/html5/thumbnails/36.jpg)
今回使うアセットは...
2413年3月30日土曜日
![Page 37: 20130330 nagoya unityアプリに広告を入れる方法 公開用](https://reader030.vdocuments.pub/reader030/viewer/2022020101/556a4466d8b42a4a1e8b4c90/html5/thumbnails/37.jpg)
今回使うアセットは...
24
http://u3d.as/content/corrupted-smile-studio/game-ads/2nu
13年3月30日土曜日
![Page 38: 20130330 nagoya unityアプリに広告を入れる方法 公開用](https://reader030.vdocuments.pub/reader030/viewer/2022020101/556a4466d8b42a4a1e8b4c90/html5/thumbnails/38.jpg)
Game Ads•遷移先やバナー画像のURLを所定の形式(XML)で作成し、サーバーに置いておく
• XMLを通信で取得し、中に書かれた広告を表示する
•Unity Free版でも使用可能25
13年3月30日土曜日
![Page 39: 20130330 nagoya unityアプリに広告を入れる方法 公開用](https://reader030.vdocuments.pub/reader030/viewer/2022020101/556a4466d8b42a4a1e8b4c90/html5/thumbnails/39.jpg)
サンプル
2613年3月30日土曜日
![Page 40: 20130330 nagoya unityアプリに広告を入れる方法 公開用](https://reader030.vdocuments.pub/reader030/viewer/2022020101/556a4466d8b42a4a1e8b4c90/html5/thumbnails/40.jpg)
使い方
27
アセットをインポートする
13年3月30日土曜日
![Page 41: 20130330 nagoya unityアプリに広告を入れる方法 公開用](https://reader030.vdocuments.pub/reader030/viewer/2022020101/556a4466d8b42a4a1e8b4c90/html5/thumbnails/41.jpg)
使い方
28
”Window”->”Ad Editor”を選択する
13年3月30日土曜日
![Page 42: 20130330 nagoya unityアプリに広告を入れる方法 公開用](https://reader030.vdocuments.pub/reader030/viewer/2022020101/556a4466d8b42a4a1e8b4c90/html5/thumbnails/42.jpg)
使い方
29
”Ad Editor” というウィンドウが出ます
13年3月30日土曜日
![Page 43: 20130330 nagoya unityアプリに広告を入れる方法 公開用](https://reader030.vdocuments.pub/reader030/viewer/2022020101/556a4466d8b42a4a1e8b4c90/html5/thumbnails/43.jpg)
使い方
30
”Add Advert”を押すとXML作成のための入力フォームが出ます
13年3月30日土曜日
![Page 44: 20130330 nagoya unityアプリに広告を入れる方法 公開用](https://reader030.vdocuments.pub/reader030/viewer/2022020101/556a4466d8b42a4a1e8b4c90/html5/thumbnails/44.jpg)
使い方
31
Name 広告の名前(一意)
URL 広告を押した時に遷移する先のURL
Image URL 画像のURL
Text 画像と一緒に出力するテキスト(任意)
13年3月30日土曜日
![Page 45: 20130330 nagoya unityアプリに広告を入れる方法 公開用](https://reader030.vdocuments.pub/reader030/viewer/2022020101/556a4466d8b42a4a1e8b4c90/html5/thumbnails/45.jpg)
使い方
32
必要な項目を入力したら“Save File”でXMLファイルを保存します
保存したファイルはグローバルにアクセスできるサーバにうpしておきます
13年3月30日土曜日
![Page 46: 20130330 nagoya unityアプリに広告を入れる方法 公開用](https://reader030.vdocuments.pub/reader030/viewer/2022020101/556a4466d8b42a4a1e8b4c90/html5/thumbnails/46.jpg)
使い方
33
“GameAds->Scripts”にある“GameAds.cs”と”DisplayGameAds.cs”をHierarchyの中のオブジェクトにくっつける
13年3月30日土曜日
![Page 47: 20130330 nagoya unityアプリに広告を入れる方法 公開用](https://reader030.vdocuments.pub/reader030/viewer/2022020101/556a4466d8b42a4a1e8b4c90/html5/thumbnails/47.jpg)
使い方
34
GameAds.csをくっつけたGameObjectのInspectorを開き
XMLのURLを入力する
13年3月30日土曜日
![Page 48: 20130330 nagoya unityアプリに広告を入れる方法 公開用](https://reader030.vdocuments.pub/reader030/viewer/2022020101/556a4466d8b42a4a1e8b4c90/html5/thumbnails/48.jpg)
使い方
35
Playすると
表示されます
13年3月30日土曜日
![Page 49: 20130330 nagoya unityアプリに広告を入れる方法 公開用](https://reader030.vdocuments.pub/reader030/viewer/2022020101/556a4466d8b42a4a1e8b4c90/html5/thumbnails/49.jpg)
応用例
3613年3月30日土曜日
![Page 50: 20130330 nagoya unityアプリに広告を入れる方法 公開用](https://reader030.vdocuments.pub/reader030/viewer/2022020101/556a4466d8b42a4a1e8b4c90/html5/thumbnails/50.jpg)
•答えられるかは別としてご質問ありますか?
3713年3月30日土曜日
![Page 51: 20130330 nagoya unityアプリに広告を入れる方法 公開用](https://reader030.vdocuments.pub/reader030/viewer/2022020101/556a4466d8b42a4a1e8b4c90/html5/thumbnails/51.jpg)
about us
• 日本Androidの会 秋葉原支部
• http://android-akihabara.info/
• 日本Androidの会 秋葉原支部 アド部
• https://www.facebook.com/groups/174233412687542/
• http://ad-bu.com/
• 日本Androidの会 秋葉原支部 Unity部
• https://www.facebook.com/groups/android.akb.unity/
3813年3月30日土曜日
![Page 52: 20130330 nagoya unityアプリに広告を入れる方法 公開用](https://reader030.vdocuments.pub/reader030/viewer/2022020101/556a4466d8b42a4a1e8b4c90/html5/thumbnails/52.jpg)
39
about us
【宣伝】Unity部では
東京以外での活動を企画しています
ご協力していただける方募集中!
13年3月30日土曜日