GADBannerViewDelegate.h file not found in TOLAdAdapterAdMobAds.h

六眼飞鱼酱① 提交于 2020-01-16 12:08:13

问题


I got GADBannerViewDelegate.h file not found error in TOLAdAdapterAdMobAds.h although i have already included that file as shown in image below. I have used

pod 'LARSAdController', '~> 3.0'  

to install the pod file for it


回答1:


Just replace

#import "GADBannerViewDelegate.h"
#import "GADBannerView.h"

with

#import <GoogleMobileAds/GoogleMobileAds.h>

This has to be done as GoogleMobileAds SDK is now a framework instead of static library.

After making this change, you may get an error at request.testing = YES; in TOLAdAdapterGoogleAds.m. To correct that, just replace that line with: request.testDevices = @[kGADSimulatorID]; and everything should work fine.



来源:https://stackoverflow.com/questions/30715311/gadbannerviewdelegate-h-file-not-found-in-toladadapteradmobads-h

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!