AdMob question?

TrisectDevelopment

Active Member
Licensed User
Longtime User
In my app "My Computer Companion" I have enabled AdMob, but when I go to the AdMob site it only shows me 1 request and I dont understand why.

If I run the App on my Android device I dont see the AdMon Add.
Maybe thats because I live in Denmark, I don't know.

I followed the AdMob tutorials so I think my code is okay.

B4X:
Dim AdView As AdView
Dim pnlAdMob As Panel

AdView.Initialize("AdView", "xxxxxxxxxxxxxxx")
Activity.AddView(AdView, 0dip, 0dip, 320dip, 50dip)
AdView.LoadAd

Sub Ad_FailedToReceiveAd (ErrorCode As String)
    Log("failed: " & ErrorCode)
End Sub

Sub Ad_ReceiveAd
    Log("received")
End Sub

Anyone have any idea why I don't see on my device or why theres no request?
 

Omar

Member
Licensed User
Longtime User
Hey,

Have you added in the libraries to your application and also updated the XML file?
 
Upvote 0

Omar

Member
Licensed User
Longtime User
Sorry I missed it earlier, I think because you have set your Ad as AdView that is the class type.

You should rename this to AdView1 or any other name.

eg. Dim AdView1 As AdView
 
Upvote 0

TrisectDevelopment

Active Member
Licensed User
Longtime User
The new update is available now.
Could somebody check if the Adds is showing.
I'm not asking you to click on the adds, just confirm that the adds is showing.
 
Upvote 0

ssg

Well-Known Member
Licensed User
Longtime User
Hi,

I just tried, but no ads are being shown. Could be a location thing. Hope someone else could give it a try for you.

Btw, in admob, have you enabled google adsense? it will help in getting a higher ad fill if admob has no ads to show.

Good luck!

ps - very useful app by the way!
 
Upvote 0
Top