Combine admob with other ad networks

Started on the old forum in May 2011 · view the original in the archive · old links redirect here

23 replies · 1,680 views · started 15 years ago · 1 min read

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.

8 participants
khan Lead · 681 posts #21

Don't use like

$mob_alternate_link = include("mobgold1.php");

you should use the core function of mobgold like

mobgold();

coz if u use like include("???????"); it will aslo parse a echo. thats why it showing two ads I guess.

Unfathomable Newbie · 3 posts #24

Its very easy. You have to put the adcode of the other network you wish to use in a function like otherad() ... eg. Instead of:

echo $contents;

Use

return $contents; // In THE function.

after setting this, in admob's code, at the end, check like this:

if(strstr($ad_contents, 'href')) return $ad_contents; else return otherad();

Write your reply now; next you create a free account (or sign in) and it is posted right away. Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close