Private Sub Page1_Resize(Width As Int, Height As Int)
Dim adHeight As Int
If App.iPadDevice Then
adHeight = 66dip
Else
If Width > Height Then 'landscape
adHeight = 32dip
Else
adHeight = 50dip
End If
End If
myAd.SetLayoutAnimated(0, 1, 0, 100%y - adHeight, 100%x - (InstrBut.Width * 2.5), adHeight)
End Sub
Sub myAd_ActionBegin
Log("action begin")
End Sub
Sub myAd_ActionFinish
Log("action finish")
End Sub
Sub myAd_FailedToReceiveAd (ErrorCode As String)
Log("Error: " & ErrorCode)
End Sub
Sub myAd_ReceiveAd
Log("Received ad")
End Sub