質問編集履歴

1

a

2019/02/18 04:48

投稿

Hayato1201
Hayato1201

スコア220

test CHANGED
File without changes
test CHANGED
@@ -29,3 +29,197 @@
29
29
 
30
30
 
31
31
  有効なアイテム0個となっていますが、そもそもこれらの広告は有効になっていないのでしょうか?
32
+
33
+
34
+
35
+ -------------------------------------------------------------------------------------------
36
+
37
+
38
+
39
+ 新しくadmobのためだけにプロジェクトを作って実行したところやはり表示できませんでしたが、以下にそのさいのコードとログを示します。
40
+
41
+
42
+
43
+ ```SWift
44
+
45
+ import UIKit
46
+
47
+ import GoogleMobileAds
48
+
49
+
50
+
51
+ class ViewController: UIViewController {
52
+
53
+
54
+
55
+ // 広告ユニットID
56
+
57
+ let AdMobID = "広告ユニットID"
58
+
59
+ // テスト用広告ユニットID
60
+
61
+ let TEST_ID = "ca-app-pub-3940256099942544/2934735716"
62
+
63
+
64
+
65
+ // true:テスト
66
+
67
+ let AdMobTest:Bool = false
68
+
69
+
70
+
71
+ override func viewDidLoad() {
72
+
73
+ super.viewDidLoad()
74
+
75
+
76
+
77
+ print("Google Mobile Ads SDK version: (GADRequest.sdkVersion())")
78
+
79
+
80
+
81
+ var admobView = GADBannerView()
82
+
83
+
84
+
85
+ admobView = GADBannerView(adSize:kGADAdSizeBanner)
86
+
87
+
88
+
89
+ admobView.frame.origin = CGPoint(x:0, y:self.view.frame.size.height - admobView.frame.height - 34)
90
+
91
+ admobView.frame.size = CGSize(width:self.view.frame.width, height:admobView.frame.height)
92
+
93
+
94
+
95
+ if AdMobTest {
96
+
97
+ admobView.adUnitID = TEST_ID
98
+
99
+ }
100
+
101
+ else{
102
+
103
+ admobView.adUnitID = AdMobID
104
+
105
+ }
106
+
107
+
108
+
109
+ admobView.rootViewController = self
110
+
111
+ //admobView.load(GADRequest())
112
+
113
+
114
+
115
+
116
+
117
+ let request = GADRequest()
118
+
119
+ request.testDevices = [ "デバイスID" ]
120
+
121
+ admobView.load(request)
122
+
123
+
124
+
125
+ self.view.addSubview(admobView)
126
+
127
+ }
128
+
129
+
130
+
131
+
132
+
133
+ }
134
+
135
+ ```
136
+
137
+ 以下Appdelegate
138
+
139
+
140
+
141
+ ```Swift
142
+
143
+ func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
144
+
145
+ // Override point for customization after application launch.
146
+
147
+ FirebaseApp.configure()
148
+
149
+ GADMobileAds.configure(withApplicationID: "ca-app-pub-xxxxxx")
150
+
151
+ return true
152
+
153
+ }
154
+
155
+
156
+
157
+ ```
158
+
159
+
160
+
161
+
162
+
163
+ YMTLInitPlatform] platform initialization successful
164
+
165
+ 2019-02-18 13:37:54.491123+0900 testAdmob[22214:5406194] - <AppMeasurement>[I-ACS036002] Analytics screen reporting is enabled. Call +[FIRAnalytics setScreenName:setScreenClass:] to set the screen name or override the default screen class name. To disable screen reporting, set the flag FirebaseScreenReportingEnabled to NO (boolean) in the Info.plist
166
+
167
+ 2019-02-18 13:37:54.596618+0900 testAdmob[22214:5406211] 5.16.0 - [Firebase/Analytics][I-ACS023007] Analytics v.50500000 started
168
+
169
+ 2019-02-18 13:37:54.596960+0900 testAdmob[22214:5406211] 5.16.0 - [Firebase/Analytics][I-ACS023008] To enable debug logging set the following application argument: -FIRAnalyticsDebugEnabled (see http://goo.gl/RfcP7r)
170
+
171
+ 2019-02-18 13:37:54.639346+0900 testAdmob[22214:5406208] [MC] System group container for systemgroup.com.apple.configurationprofiles path is /private/var/containers/Shared/SystemGroup/systemgroup.com.apple.configurationprofiles
172
+
173
+ 2019-02-18 13:37:54.640114+0900 testAdmob[22214:5406208] [MC] Reading from public effective user settings.
174
+
175
+ Google Mobile Ads SDK version: afma-sdk-i-v7.39.0
176
+
177
+ 2019-02-18 13:37:54.658186+0900 testAdmob[22214:5406187] 5.16.0 - [Firebase/Analytics][I-ACS025026] Deferring to Firebase for event data collection
178
+
179
+ 2019-02-18 13:37:54.680709+0900 testAdmob[22214:5406214] [NetworkInfo] Signal strength query returned error: Error Domain=NSPOSIXErrorDomain Code=13 "Permission denied", descriptor: <CTServiceDescriptor 0x281517260, domain=1, instance=1>
180
+
181
+ 2019-02-18 13:37:54.714604+0900 testAdmob[22214:5406038] [avas] AVAudioSessionPortImpl.mm:56:ValidateRequiredFields: Unknown selected data source for Port スピーカー (type: Speaker)
182
+
183
+ 2019-02-18 13:37:54.982855+0900 testAdmob[22214:5406187] [BoringSSL] nw_protocol_boringssl_get_output_frames(1301) [C1.1:2][0x10500f2c0] get output frames failed, state 8196
184
+
185
+ 2019-02-18 13:37:54.982983+0900 testAdmob[22214:5406187] [BoringSSL] nw_protocol_boringssl_get_output_frames(1301) [C1.1:2][0x10500f2c0] get output frames failed, state 8196
186
+
187
+ 2019-02-18 13:37:54.983250+0900 testAdmob[22214:5406187] TIC Read Status [1:0x0]: 1:57
188
+
189
+ 2019-02-18 13:37:54.983280+0900 testAdmob[22214:5406187] TIC Read Status [1:0x0]: 1:57
190
+
191
+ 2019-02-18 13:37:55.298193+0900 testAdmob[22214:5406229] WF: === Starting WebFilter logging for process testAdmob
192
+
193
+ 2019-02-18 13:37:55.298347+0900 testAdmob[22214:5406229] WF: _userSettingsForUser mobile: {
194
+
195
+ filterBlacklist = (
196
+
197
+ );
198
+
199
+ filterWhitelist = (
200
+
201
+ );
202
+
203
+ noOverridingAllowed = 1;
204
+
205
+ restrictWeb = 1;
206
+
207
+ useContentFilter = 0;
208
+
209
+ useContentFilterOverrides = 0;
210
+
211
+ whitelistEnabled = 0;
212
+
213
+ }
214
+
215
+ 2019-02-18 13:37:55.298500+0900 testAdmob[22214:5406229] WF: _WebFilterIsActive returning: NO
216
+
217
+ 2019-02-18 13:37:55.765835+0900 testAdmob[22214:5406038] [avas] AVAudioSessionPortImpl.mm:56:ValidateRequiredFields: Unknown selected data source for Port スピーカー (type: Speaker)
218
+
219
+ 2019-02-18 13:39:56.611369+0900 testAdmob[22214:5406577] [BoringSSL] nw_protocol_boringssl_get_output_frames(1301) [C4.1:2][0x105028860] get output frames failed, state 8196
220
+
221
+ 2019-02-18 13:39:56.611863+0900 testAdmob[22214:5406577] [BoringSSL] nw_protocol_boringssl_get_output_frames(1301) [C4.1:2][0x105028860] get output frames failed, state 8196
222
+
223
+ 2019-02-18 13:39:56.612878+0900 testAdmob[22214:5406577] TIC Read Status [4:0x0]: 1:57
224
+
225
+ 2019-02-18 13:39:56.612977+0900 testAdmob[22214:5406577] TIC Read Status [4:0x0]: 1:57