viewNativeAds.adUnitID = "ca-app-pub-3940256099942544/3986624511" // This is test ID but still i am not able to load ads
viewNativeAds.rootViewController = self
viewNativeAds.delegate = self
let request = GADRequest()
request.testDevices = [kGADSimulatorID]
viewNativeAds.load(request)
func nativeExpressAdView(_ nativeExpressAdView: GADNativeExpressAdView, didFailToReceiveAdWithError error: GADRequestError)
{
print(error.localizedDescription)
}
I used the test id that you suggested but still always shows the below error
Error Domain=com.google.ads Code=1 "Request Error: No ad to show." UserInfo={NSLocalizedDescription=Request Error: No ad to show., NSLocalizedFailureReason=Request Error: No ad to show.}
<Google:HTML> You are currently using version 7.16.0 of the SDK. Please consider updating your SDK to the most recent SDK version to get the latest features and bug fixes. The latest SDK can be downloaded from http://goo.gl/iGzfsP. A full list of release notes is available at https://developers.google.com/admob/ios/rel-notes.
"ca-app-pub-3646086603041218/1329970887"
Still i am getting no ad to show