在TOLAdAdapterAdMobAds.h中找不到GADBannerViewDelegate.h文件 [英] GADBannerViewDelegate.h file not found in TOLAdAdapterAdMobAds.h

查看:119
本文介绍了在TOLAdAdapterAdMobAds.h中找不到GADBannerViewDelegate.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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆