質問編集履歴
2
a
test
CHANGED
File without changes
|
test
CHANGED
@@ -24,6 +24,48 @@
|
|
24
24
|
|
25
25
|
|
26
26
|
|
27
|
+
### 当該コード
|
28
|
+
|
29
|
+
```Swift
|
30
|
+
|
31
|
+
|
32
|
+
|
33
|
+
import UIKit
|
34
|
+
|
35
|
+
import GoogleMobileAds
|
36
|
+
|
37
|
+
|
38
|
+
|
39
|
+
class ViewController: UIViewController {
|
40
|
+
|
41
|
+
|
42
|
+
|
43
|
+
@IBOutlet weak var bannerView: GADBannerView!
|
44
|
+
|
45
|
+
|
46
|
+
|
47
|
+
override func viewDidLoad() {
|
48
|
+
|
49
|
+
super.viewDidLoad()
|
50
|
+
|
51
|
+
bannerView.adUnitID = "ca-app-pub-3940256099942544/2934735716"
|
52
|
+
|
53
|
+
bannerView.rootViewController = self
|
54
|
+
|
55
|
+
bannerView.load(GADRequest())
|
56
|
+
|
57
|
+
}
|
58
|
+
|
59
|
+
}
|
60
|
+
|
61
|
+
|
62
|
+
|
63
|
+
```
|
64
|
+
|
65
|
+
|
66
|
+
|
67
|
+
|
68
|
+
|
27
69
|
### エラーの内容
|
28
70
|
|
29
71
|
|
1
あ
test
CHANGED
File without changes
|
test
CHANGED
@@ -35,3 +35,13 @@
|
|
35
35
|
![イメージ説明](f8a871a4e7b237a56d50beedf342978a.png)
|
36
36
|
|
37
37
|
![イメージ説明](cad2041ad27dc69607f7c181112f099f.png)
|
38
|
+
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
|
43
|
+
### 環境
|
44
|
+
|
45
|
+
Xcode:11.2.1
|
46
|
+
|
47
|
+
Swift:5.1.2
|