Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: Why my ad appear in the middle of the form?



Permlink Replies: 2 - Last Post: Feb 25, 2018 11:18 AM Last Post By: John Birch Threads: [ Previous | Next ]
John Birch

Posts: 135
Registered: 8/23/02
Why my ad appear in the middle of the form?
Click to report abuse...   Click to reply to this thread Reply
  Posted: Feb 24, 2018 9:39 PM
Hi,

I am using Tokyo edition and admob on Android to set my ad. I set my TPanel in my main form, align to bottom and TAdBanner inside it and align to client.

in form create event I set the code:

BannerAd1.AdUnitID := 'xxxx';

and in form show event I set the code

BannerAd1.LoadAd;

The add appear but in the middle of the form !! why my ad does not appear at the bottom of the form like I designed ?
Eitan Arbel

Posts: 508
Registered: 2/24/13
Re: Why my ad appear in the middle of the form?
Click to report abuse...   Click to reply to this thread Reply
  Posted: Feb 25, 2018 5:58 AM   in response to: John Birch in response to: John Birch
to be sure, i would look in the Structure panel\window, and see what is it's Parent.

but i suspect there really is a problem, and you will get to the next problem once you "cross that bridge".
here is the next (my) problem with AdMob :
https://forums.embarcadero.com/thread.jspa?threadID=276795&tstart=0

good luck
John Birch

Posts: 135
Registered: 8/23/02
Re: Why my ad appear in the middle of the form?
Click to report abuse...   Click to reply to this thread Reply
  Posted: Feb 25, 2018 11:18 AM   in response to: Eitan Arbel in response to: Eitan Arbel
I found the problem. When I use TAdbanner directly on the form the ad appear correctly !! I can not use it inside tpanel or toolbar or any other container !!!
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02