lasst try
you is using my code to load the ad?
Adbox.Initialize2("Ad", "ca-app-pub-xxxxxxxxxxxxxxx/xxxxxxxxxxxxxxxxxxxx" , Adbox.SIZE_SMART_BANNER )
post your code here
sub globals
and firsttime
I'm using the code of the example:
AdView1.Initialize("Ad", "ca-app-pub-xxxxxxxxxxx/xxxxxxxxx") 'publisher id that you received from AdMob.
' Activity.AddView(AdView1, 0dip, 0dip, 320dip, 50dip) 'previously the height was 48dip. Now it is 50dip.
' AdView1.LoadAd 'loads an ad
I have this in the Project Attributes:
#AdditionalRes: D:\Android\sdk\extras\google\google_play_services\libproject\google-play-services_lib\res, com.google.android.gms
this in Sub Globals:
Dim AdView1 As AdView
this in Activity_Create:
AdView1.Initialize("Ad", "ca-app-pub-xxxxxxxxxxx/xxxxxxxxx") 'publisher id that you received from AdMob.
Activity.AddView(AdView1, 0dip, 0dip, 320dip, 50dip) 'previously the height was 48dip. Now it is 50dip.
AdView1.LoadAd 'loads an ad
and all these:
Sub Activity_Resume
AdView1.Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
AdView1.Pause
End Sub
Sub Ad_FailedToReceiveAd (ErrorCode As String)
Log("failed: " & ErrorCode)
End Sub
Sub Ad_ReceiveAd
Log("received")
End Sub
Sub Ad_AdScreenDismissed
Log("screen dismissed")
End Sub