iAdMob v1.10 adds support for interstitial ads (full screen ads).
In order to show an interstitial ad you need to first request an ad and wait for the Ready event.
If Success is true then there is an ad ready to be displayed. You can then call iad.Show(Page) to show it.
You can also call iad.RequestAd again to request a new ad.
Note that you can show test ads by calling:
Code:
iad.SetTestDevices(Array("121212121212")) 'id that is displayed in the logs
The ready event:
Code:
Sub iad_Ready (Success As Boolean)
If Success Then
Log("iad is ready.")
iad.Show(Page1)
Else
Log("Failed to load full screen ad: " & LastException)
End If
End Sub
Note that you can show the ad after this event. This event only means that there is an ad ready to be displayed.
Library installation
The zip file contains three files with the following extensions: .xml, .a and .h.
You need to copy the xml file to the internal libraries folder on the Windows computer.
If you are using a local Mac builder then you need to copy the .a and .h files to the Mac Libs folder.