回答編集履歴
1
.
test
CHANGED
@@ -13,3 +13,55 @@
|
|
13
13
|
それからスタートガイド沿ってinfoファイルの設定はしましたか
|
14
14
|
|
15
15
|
[リンク内容](https://developers.google.com/admob/ios/quick-start?hl=ja)
|
16
|
+
|
17
|
+
|
18
|
+
|
19
|
+
|
20
|
+
|
21
|
+
あるいは、Firebaseなら
|
22
|
+
|
23
|
+
GADMobileAds.configure(withApplicationID: "YOUR_ADMOB_APP_ID")
|
24
|
+
|
25
|
+
を使うとか
|
26
|
+
|
27
|
+
|
28
|
+
|
29
|
+
```
|
30
|
+
|
31
|
+
@UIApplicationMain
|
32
|
+
|
33
|
+
class AppDelegate: UIResponder, UIApplicationDelegate {
|
34
|
+
|
35
|
+
|
36
|
+
|
37
|
+
var window: UIWindow?
|
38
|
+
|
39
|
+
|
40
|
+
|
41
|
+
func application(_ application: UIApplication,
|
42
|
+
|
43
|
+
didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
|
44
|
+
|
45
|
+
|
46
|
+
|
47
|
+
// Use Firebase library to configure APIs.
|
48
|
+
|
49
|
+
FirebaseApp.configure()
|
50
|
+
|
51
|
+
|
52
|
+
|
53
|
+
// Initialize the Google Mobile Ads SDK.
|
54
|
+
|
55
|
+
GADMobileAds.configure(withApplicationID: "YOUR_ADMOB_APP_ID")
|
56
|
+
|
57
|
+
|
58
|
+
|
59
|
+
return true
|
60
|
+
|
61
|
+
}
|
62
|
+
|
63
|
+
|
64
|
+
|
65
|
+
}
|
66
|
+
|
67
|
+
```
|