Hello, can somebody tell me is allowed to combine admob with other ad networks, beause of its fillrate? Thanks.
Combine admob with other ad networks
Started on the old forum in May 2011 · view the original in the archive · old links redirect here
TL;DR · summary of 23 replies
- Khan clarified that combining AdMob with another ad network is not against their rules.
- To replace AdMob ads with MobAds3, a new variable should be added and the last lines of code for AdMob replaced accordingly.
- Changing AdMob's text link to include another ad network like MobAds3 may cause both ads to show due to parsing issues.
Written automatically from the replies by a language model on our own server. It can be wrong; the posts below are the source.
Combine admob with other ad networks
I thought something like this:
if (isset($admob_request)) echo $admob_request;
else $other_ad_request;
Petar Raznatovic wrote: Anybody ?
<?
#ADMOB USES MODIFIED FOR USING ANOTHER COMPANYS AD WHEN ADMOB AD ISNT SHOWING.#
function mobads()
{
$mob_mode = "live";
$admobcode = "UR ADMOB ID/CODE";
$mob_alternate_link = "<a class='' href='http://blog.hitnhot.com'>Evaan's Blog</a>";
$mob_ua = urlencode(getenv("HTTP_USER_AGENT"));
$mob_ip = urlencode($_SERVER['REMOTE_ADDR']);
if($mob_mode=='live')
$mob_m = "&m";
$mob_url = 'http://ads.admob.com/ad_source.php?s='.$admobcode.'&u='.$mob_ua.'&i='.$mob_ip.$mob_m;
@$mob_ad_serve = fopen($mob_url,'r');
if($mob_ad_serve)
{
while(!feof($mob_ad_serve))
$mob_contents .= fread($mob_ad_serve,1024);
fclose($mob_ad_serve);
}
$mob_link = explode("><",$mob_contents);
$mob_ad_text = $mob_link[0];
$mob_ad_link = $mob_link[1];
if(isset($mob_ad_link)&& ($mob_ad_link !=''))
$ret = "<a class='' href='$mob_ad_link'>$mob_ad_text</a><br />";
else
$ret = $mob_alternate_link;
return $ret;
}
?>
<? #ADMOB USES MODIFIED FOR USING ANOTHER COMPANYS AD WHEN ADMOB AD ISNT SHOWING.# function mobads() { $mob_mode = "live"; $admobcode = "UR ADMOB ID/CODE"; $mob_alternate_link = "<a onclick="_gaq.push(['_trackEvent', 'Outgoing', 'blog.hitnhot.com', '']);" rel='nofollow' class='' href='http://blog.hitnhot.com'>Evaan's Blog</a>"; $mob_ua = urlencode(getenv("HTTP_USER_AGENT")); $mob_ip = urlencode($_SERVER['REMOTE_ADDR']); if($mob_mode=='live') $mob_m = "&m"; $mob_url = 'http://ads.admob.com/ad_source.php?s='.$admobcode.'&u='.$mob_ua.'&i='.$mob_ip.$mob_m; @$mob_ad_serve = fopen($mob_url,'r'); if($mob_ad_serve) { while(!feof($mob_ad_serve)) $mob_contents .= fread($mob_ad_serve,1024); fclose($mob_ad_serve); } $mob_link = explode("><",$mob_contents); $mob_ad_text = $mob_link[0]; $mob_ad_link = $mob_link[1]; if(isset($mob_ad_link)&& ($mob_ad_link !='')) $ret = "<a class='' href='$mob_ad_link'>$mob_ad_text</a><br />"; else $ret = $mob_alternate_link; return $ret; } ?>
its showing blank page
External image (may be gone) http://WapTops.com- Get Real High Traffic http://WapFun.info-Fun 4 Wap
how to replace it with another ad network. if i had another function called mobads2 how 2 replace it with admob?
External image (may be gone) http://WapTops.com- Get Real High Traffic http://WapFun.info-Fun 4 Wap
then just change this line
$mob_alternate_link = "<a class='' href='http://blog.hitnhot.com'>Evaan's Blog</a>";
to
$mob_alternate_link = mobads2();
CreativityKills wrote: the code doesnt seem to work, always shows alt link o.O
then you may change the admob link to latest admob link to http://r.admob.com/ad_source.php instead of http://ads.admob.php/ad_source.php.
Btw, it works with me. may be your fill rate isnt high enough. though u can change to assure.
Combine admob with other ad networks
I think you didnt understand my question 🙂 I wanted to ask is it against their rules to use another ad network parallel to their 🙂 Thanks.
Petar Raznatovic wrote: I think you didnt understand my question 🙂 I wanted to ask is it against their rules to use another ad network parallel to their 🙂 Thanks.
No.........................
code is working perfectly 😉 if i want to use another ad network like mobads3 then what should be the code?
External image (may be gone) http://WapTops.com- Get Real High Traffic http://WapFun.info-Fun 4 Wap
slowy wrote: code is working perfectly 😉 if i want to use another ad network like mobads3 then what should be the code?
add another variable for mobads3(); like
$mob_another_ads= mobads3();
then change the last couple lines to
else if
$ret = $mob_alternate_link;
else
$ret = $mob_another_ads;
return $ret;
Petar Raznatovic wrote: I think you didnt understand my question 🙂 I wanted to ask is it against their rules to use another ad network parallel to their 🙂 Thanks.
No, It is not against their rules. 🙂
Mobtron.com - build Free mobile site and earn from ads! WapEgo.com - Best mobile communities builder
if i m changing admob's text link like this
$ret = "<a class='' href='$mob_ad_link'>FREE MOBILE DOWNLOADS</a><br />";
then both ads are showing admob's ads and alternative ad and admob's fill rate increased y is it so????
External image (may be gone) http://WapTops.com- Get Real High Traffic http://WapFun.info-Fun 4 Wap
slowy wrote: if i m changing admob's text link like this
$ret = "<a class='' href='$mob_ad_link'>FREE MOBILE DOWNLOADS</a><br />";then both ads are showing admob's ads and alternative ad and admob's fill rate increased y is it so????
if they found you that u are changing link name, your a/c may be banned. jara sambhalke bro...
khan wrote: if they found you that u are changing link name, your a/c may be banned. jara sambhalke bro...
ya bro,sambhal ke hi karunga,thanks 😉
External image (may be gone) http://WapTops.com- Get Real High Traffic http://WapFun.info-Fun 4 Wap
if i m including a php in alternative link then why both ads r showing
<?
#ADMOB USES MODIFIED FOR USING ANOTHER COMPANYS AD WHEN ADMOB AD ISNT SHOWING.#
function mobads()
{
$mob_mode = "live";
$admobcode = "0000000000000000";
$mob_alternate_link = include("mobgold1.php");
$mob_ua = urlencode(getenv("HTTP_USER_AGENT"));
$mob_ip = urlencode($_SERVER['REMOTE_ADDR']);
if($mob_mode=='live')
$mob_m = "&m";
$mob_url = 'http://ads.admob.com/ad_source.php?s='.$admobcode.'&u='.$mob_ua.'&i='.$mob_ip.$mob_m;
@$mob_ad_serve = fopen($mob_url,'r');
if($mob_ad_serve)
{
while(!feof($mob_ad_serve))
$mob_contents .= fread($mob_ad_serve,1024);
fclose($mob_ad_serve);
}
$mob_link = explode("><",$mob_contents);
$mob_ad_text = $mob_link[0];
$mob_ad_link = $mob_link[1];
if(isset($mob_ad_link)&& ($mob_ad_link !=''))
$ret = "<a class='' href='$mob_ad_link'>$mob_ad_text</a><br />";
else
$ret = $mob_alternate_link;
return $ret;
}
echo mobads();
?>
External image (may be gone) http://WapTops.com- Get Real High Traffic http://WapFun.info-Fun 4 Wap
