This is not a pretty way to do this, but you can read the device version and compare it with the highest current release version and return to AdMob if the device version is higher.
This will result in the device version as a string:
[[UIDevice currentDevice] systemVersion]
You can convert this value to a float and compare it with a hard-coded version, but that would mean deploying a new version after the release of the new iOS:
if ([[[UIDevice currentDevice] systemVersion] floatValue] > 4.3) {
As a slightly better solution, you can request the current maximum version of iOS release from the website ... just release the iosversion.txt file on your website with the content “4.3” and use it to control the switch.
Unfortunately, there is no method like [[UIDevice currentDevice] isBeta] .
source share