Swift 4.2, 12.x iOS
Tratar de implementar AdMob en mi aplicación, pero no llegar muy lejos.
- Creado una cuenta de AdMob, se ve bien?
- llaves Agregado NSAppTransportSecurity a info.plist bien?
Añadido el código para cargar una bandera agrega bien.
bannerView = GADBannerView(adSize: GADAdSize(size: CGSize(width: 320, height: 50), flags: 0), origin: CGPoint(x: 0, y: 0)) bannerView.adUnitID = ca-app-pub-A/B // changed this code in this post bannerView.rootViewController = self.view?.window?.rootViewController bannerView.delegate = self let request = GADRequest() request.testDevices = [ kGADSimulatorID ] bannerView.load(request) self.view?.window?.rootViewController?.view.addSubview(bannerView)
clase para apoyar GADBannerViewDelegate extendido; recibir una llamada de vuelta en el mismo que dice el error, sin anuncio aparezca. La consola, de hecho, los informes de esto.
18/12/2018 11: 49: 35.468445 + 0100 DeX [1547: 900808] WF: _WebFilterIsActive volver: SÍ 18/12/2018 11: 49: 35.468729 + 0100 DeX [1547: 900808] WF: _userSettingsForUser móvil: {filterBlacklist = (); filterWhitelist = (); noOverridingAllowed = 1; restrictWeb = 1; useContentFilter = 1; useContentFilterOverrides = 0; whitelistEnabled = 0; 12/18/2018} 11: 49: 35.468821 + 0100 DeX [1547: 900808] WF: Verificando https://googleads.g.doubleclick.net/mads/static/sdk/native/sdk-core-v40.html está en contentFilterOverriddenBlackList 18/12/2018 11: 49: 35.469159 + 0100 DeX [1547: 900808] WF: Verificando https://googleads.g.doubleclick.net/mads/static/sdk/native/sdk-core-v40 .html está en contentFilterOverriddenWhiteList 18/12/2018 11: 49: 35.513610 + 0100 DeX [1547: 900808] WF: * WFLSMMap initWithMap: no puede recuperar umbral a partir del archivo de mapa. 18/12/2018 11: 49: 35.518259 + 0100 DeX [1547: 900808] WF: WFLSMScoreNormalizedMap categoría: 1 min: 0.338760 max: 0,663066 alcance: 0,324306 18/12/2018 11: 49: 35.518377 + 0100 DeX [1547: 900808 ] WF: WFLSMScoreNormalizedMap categoría: 2 min: 0.336934 max: 0.661240 alcance: 0,324306 18/12/2018 11: 49: 35.518439 + 0100 DeX [1547: 900808] WF: + [WFJudge defaultJudge] mapa: / System / Library / PrivateFrameworks / WebContentAnalysis.framework / content_filter_map3 18/12/2018 11: 49: 35.518559 + 0100 DeX [1547: 900808] WF: Página no vale la pena analizar [longitud PageContent]: 7 [[imágenes auto] recuento] == 0 [[scriptBlocks auto] count]: 2 18/12/2018 11: 49: 35.518693 + 0100 DeX [1547: 900808] WF: WebFilterEvaluator: addData: https://googleads.g.doubleclick.net/mads/static/sdk/native/sdk- core-v40.html no está bloqueado: 'googleads.g.doubleclick.net' no es explícita 12/18/2018 11: 49: 35.518760 + 0100 DeX [1547: 900808] WF: WebFilterEvaluator: addData: 'googleads.g. doubleclick.net' en https://googleads.g.doubleclick.net/mads/static/sdk/native/sdk-core-v40.html no es bloque ked * error *** Solicitud de error: No hay ningún anuncio para mostrar.
¿Qué he perdido aquí? Creado la cuenta de la tarde de ayer, por lo menos de 24 horas pasadas desde que lo hice?