I have posted the complete source code on how to integrate Madvertise into the Admob Mediation.
Read the post here:
http://www.mradlmaier.com/index.php/de/blog/42-madvertise-integration-in-die-admob-mediation
I haven’t found time yet, to translate the post from german to english, but you can simply copy and paste the code.