Android Question [Solved] Ad Received but not showing

Descartex

Well-Known Member
Licensed User
Longtime User
Hi!!
I've created a differente banner for each activity i have on my app.
The problem is that, when i try to show it on main activity, it works perfectly, ads are received and viewed on the banner. When i do the same, changing the id for the right ad block) it raises the ad_received sub, but it does not shows the ad... ad id's are right, because, if i swap any of them with the one of the main activity, it also shows ads
 

sorex

Expert
Licensed User
Longtime User
Did you create and init multiple bannerviews?

From your text it appears that you only do it once and just change the ad id in that 1 init.
 
Upvote 0

Descartex

Well-Known Member
Licensed User
Longtime User
Yes, every activity has its own adview, initialized with its own id... Its very strange.
 
Upvote 0

sorex

Expert
Licensed User
Longtime User
you'll have to wait for someone else's answer then.

I prefer to use panels instead of activities so I never tested this behaviour.
 
Upvote 0

Descartex

Well-Known Member
Licensed User
Longtime User
I've checked it again...
All of the ad view are added the same way:
B4X:
Activity.AddView(AdView1, 0dip, Activity.Height-50dip, Activity.Width, 50dip) 'loads an ad
I'm completely lost...
Thanks for your responses.
 
Upvote 0

Descartex

Well-Known Member
Licensed User
Longtime User
It does not shows ad either
 
Upvote 0

yge

Member
Licensed User
Have you checked the logs? Is it the same in all the activities when it comes to requesting and receiving an ad?
 
Upvote 0

Descartex

Well-Known Member
Licensed User
Longtime User
Logs doesn't show anything extrange... it logs what it supposed to do when it works well...
 
Upvote 0

JordiCP

Expert
Licensed User
Longtime User
Just to try. Perhaps you are adding some other opaque view/panel to the other activities that by mistake cover this ad area? You could test it with a void activity that doesn't load any other views
 
Upvote 0

Descartex

Well-Known Member
Licensed User
Longtime User
Nothing... desperating...
 
Upvote 0

Descartex

Well-Known Member
Licensed User
Longtime User
I was stuck for days... and it was in front of my nose...
A calling to Activity.RemoveAllViews, now it is solved.
Thanks for your patience!!!!
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…