在TOLAdAdapterAdMobAds.h中找不到GADBannerViewDelegate.h文件 [英] GADBannerViewDelegate.h file not found in TOLAdAdapterAdMobAds.h
问题描述
我在TOLAdAdapterAdMobAds.h中找到 GADBannerViewDelegate
.h文件未找到错误,尽管我已经包含了该文件,如下图所示。我用过
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'
为此安装Pod文件
推荐答案
只需替换
#import "GADBannerViewDelegate.h"
#import "GADBannerView.h"
与
#import <GoogleMobileAds/GoogleMobileAds.h>
必须这样做,因为GoogleMobileAds SDK现在是框架而不是静态库。
This has to be done as GoogleMobileAds SDK is now a framework instead of static library.
进行此更改后,您可能会在 TOLAdAdapterGoogleAds中的
。要更正此问题,只需将该行替换为: request.testing = YES;
遇到错误。 m request.testDevices = @ [kGADSimulatorID];
,一切都应该正常工作。
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.
这篇关于在TOLAdAdapterAdMobAds.h中找不到GADBannerViewDelegate.h文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!