+ Reply to Thread
Results 1 to 7 of 7

Thread: Please help me put google ads in a div box

  1. #1

    Please help me put google ads in a div box

    Dear Flynax Dev.,

    Please look at the picture
    Screen Shot 2016-11-20 at 4.46.42 PM.jpg
    Link is here: https://miiverse.nintendo.net
    There is a google ads div box on the right of the picture. How do I achieve the same result?
    Making google ads show in a div box that has a description title: "Advertisement" on top and centered. Then google ads content below with padding.

    I'm currently using a content box with smarty and html seems not to work.

  2. #2
    Senior Member
    Join Date
    Nov 2016
    Location
    USA
    Posts
    110
    did you try content box with PHP ?

    see if this article will help, i haven't tried it but looks promising

    http://www.php-developer.org/how-to-...in-php-script/

  3. #3
    Guru
    Join Date
    Jan 2013
    Location
    Australia
    Posts
    2,028
    Have you tried a banners box for the google ad and just a html box for the title / "advertisement" header

  4. #4
    Senior Member
    Join Date
    Nov 2016
    Location
    USA
    Posts
    110
    ok i tried smarty and it works check the attached pictures

    https://screenshot.net/noj8ot6
    https://screenshot.net/eo6not8

  5. #5
    Quote Originally Posted by Samir Fakirane View Post
    ok i tried smarty and it works check the attached pictures

    https://screenshot.net/noj8ot6
    https://screenshot.net/eo6not8
    Oh, but it doesn't look like the one in the picture. Sorry I'm not so good with coding. I just want to make the ads shows in a fixed square content box with gray background a bit transparent and padding may be 5px with advertisement on top and centered.

  6. #6
    Quote Originally Posted by Pete Young View Post
    Have you tried a banners box for the google ad and just a html box for the title / "advertisement" header
    I haven't tried it yet, Pete. I only used content box since it a bit simpler

  7. #7
    Senior Member
    Join Date
    Nov 2016
    Location
    USA
    Posts
    110
    Oh, but it doesn't look like the one in the picture. Sorry I'm not so good with coding. I just want to make the ads shows in a fixed square content box with gray background a bit transparent and padding may be 5px with advertisement on top and centered.

    Hi Wei, the ad i showed you is not square because i used a responsive ad type in google Adsense. so if you go to google adsense and create a code for a fixed square dimension ad it will show sqaure in the contenet box.

+ Reply to Thread