How to check Current SDK version of Google AdMob iOS?

扶醉桌前 提交于 2019-12-06 08:53:23

问题


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.


回答1:


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



来源:https://stackoverflow.com/questions/48203987/how-to-check-current-sdk-version-of-google-admob-ios

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