Hello group,
I have implemented the sample code, added my publisher ID, yet no banner shows. Does it only work when it is signed or something?
Sub Ad
Msgbox ("Ad","s")
End Sub
Sub Activity_Create(FirstTime As Boolean)
'Do not forget to load the layout file created with the visual designer. For example:
'Activity.LoadLayout("Layout1")
adview1.Initialize2("Ad", "pub-XXXXXXXXXXXXXX", adview1.SIZE_SMART_BANNER)
Dim height As Int
If GetDeviceLayoutValues.ApproximateScreenSize < 6 Then
'phones
If 100%x > 100%y Then height = 32dip Else height = 50dip
Else
'tablets
height = 90dip
End If
Activity.AddView(adview1, 0dip, 100%y - height, 100%x, height)
End Sub
I have implemented the sample code, added my publisher ID, yet no banner shows. Does it only work when it is signed or something?
Sub Ad
Msgbox ("Ad","s")
End Sub
Sub Activity_Create(FirstTime As Boolean)
'Do not forget to load the layout file created with the visual designer. For example:
'Activity.LoadLayout("Layout1")
adview1.Initialize2("Ad", "pub-XXXXXXXXXXXXXX", adview1.SIZE_SMART_BANNER)
Dim height As Int
If GetDeviceLayoutValues.ApproximateScreenSize < 6 Then
'phones
If 100%x > 100%y Then height = 32dip Else height = 50dip
Else
'tablets
height = 90dip
End If
Activity.AddView(adview1, 0dip, 100%y - height, 100%x, height)
End Sub