2

If anyone used Madserve SDk for android then do suggest answer. I am using open source madserver SDK for android devices, Which Fetch ad from madserver host. Its an open source project but no one is replying on its form or github. I stuck in SDK to display full screen interstitial ads at center. It is displayed on top left corner.

-Thanks

Straw Hat
  • 902
  • 14
  • 38
  • How can i fetch ads from my own server? And is there any open source code in Php side? – Dr.jacky Jun 28 '14 at 14:59
  • 1
    [Revive Ad server](http://www.revive-adserver.com/) is open source Ad server and have active community. you can use it for setting up your own Ad server @Mr.Hyde – Straw Hat Jun 30 '14 at 06:25
  • also it is based on PHP – Straw Hat Jun 30 '14 at 06:26
  • Thanks a lot, but two question, Which on of these open source Ad server are better? 1-Revive Ad server 3.0.5? 2-mAdserve 2.0? And second question, I can't find android SDK for revive?! (If you like, answer/comment my question http://stackoverflow.com/questions/24468642/how-to-show-ads-in-android-app-that-fetch-from-my-own-server) – Dr.jacky Jun 30 '14 at 07:38
  • @Mr.Hyde sure I posted some details on your question. as you can see here in my question mAdserver have less customization capability and also it is not active – Straw Hat Jun 30 '14 at 10:06

1 Answers1

1

In Madserve SDK the ad is displayed within the webview so the ad is content inside Webview and even centering webview content will be always displayed as it is Loaded(for large screen devices at Left corner).

So I have used some CSS tricks to position the ad at center, where we add code for Image Banner in Madserve I added Following CSS code in HTML banner code to make it display always at center,

.className {
    max-width: 100%;
    max-height: 100%;
    bottom: 0;
    left: 0;
    margin: auto;
    overflow: auto;
    position: fixed;
    right: 0;
    top: 0;
}

This will position the ad at center, This Fixed my issue for now, I'll look in the SDK where webview is Created and try to display whatever content we get at the center .

Straw Hat
  • 902
  • 14
  • 38