如何查看当前的 Google AdMob iOS SDK 版本?

How to check Current SDK version of Google AdMob iOS?(如何查看当前的 Google AdMob iOS SDK 版本?)

本文介绍了如何查看当前的 Google AdMob iOS SDK 版本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Google has Changed some Policy under which the ads displayed under SDK version 7.0 will not display ads any more, Actually i don't know which version SDK i m using.

Please help me to get out of this.

解决方案

pragma mark GADRequest implementation

- (GADRequest *)request {
GADRequest *request = [GADRequest request];


NSLog(@"Received ad successfully %@ " , [GADRequest sdkVersion] );

request.testDevices = @[
                        kGADSimulatorID
                        ];
return request;
}

Implement the above code in your iOS Project And Check Log

you will get Output something like this

afma-sdk-i-v7.27.0

这篇关于如何查看当前的 Google AdMob iOS SDK 版本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!

本文标题为:如何查看当前的 Google AdMob iOS SDK 版本?

基础教程推荐