My Modified AdMob PHP Class
I used in my code a modified version of Admob code that you can find the original on admob website. The idea that I never use print inside my applications, so i wrote it as a PHP class, the original code is a little bit modified. To use it simply replace $admobs variable with your own and enjoy! /** * Mobile Advertising PHP class * */ class mobileads { var $admobs = ‘a1458adcf8cca66′; /** * Return Admob code – Original code from admob.com * * @param mob_mode change mode from “test” to “live” when you are done testing * @param mob_alternate_link use this to set a default link to appear if AdMob does not return an ad.
Read the original here:
My Modified AdMob PHP Class