Combine admob with other ad networks

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Combine admob with other ad networks

    Hello, can somebody tell me is allowed to combine admob with other ad networks, beause of its fillrate? Thanks.

    #2
    Do you mean Ad Rotator?
    Did I help you?
    You can help me too
    Your donations will help me finance my studies.

    Comment


      #3
      Combine admob with other ad networks

      I thought something like this:
      Code:
      if (isset($admob_request)) echo $admob_request;
      else $other_ad_request;
      Last edited by Petar Raznatovic; 22.05.11, 11:22.

      Comment


        #4
        Anybody ?

        Comment


          #5
          Originally posted by Petar Raznatovic View Post
          Anybody ?
          PHP Code:
          <?
          #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;
          }
          ?>

          Comment


            #6
            Originally posted by khan View Post
            PHP Code:
            <?
            #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

            http://WapTops.com- Get Real High Traffic
            http://WapFun.info-Fun 4 Wap

            Comment


              #7
              Originally posted by slowy View Post
              its showing blank page
              The uses is,
              PHP Code:
              echo mobads(); 

              Comment


                #8
                how to replace it with another ad network.
                if i had another function called mobads2
                how 2 replace it with admob?

                http://WapTops.com- Get Real High Traffic
                http://WapFun.info-Fun 4 Wap

                Comment


                  #9
                  then just change this line
                  PHP Code:
                   $mob_alternate_link "<a class='' href='http://blog.hitnhot.com'>Evaan's Blog</a>"
                  to
                  PHP Code:
                  $mob_alternate_link mobads2(); 

                  Comment


                    #10
                    the code doesnt seem to work, always shows alt link o.O

                    Comment


                      #11
                      Originally posted by CreativityKills View Post
                      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.

                      Comment


                        #12
                        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.

                        Comment


                          #13
                          Originally posted by Petar Raznatovic View Post
                          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.........................

                          Comment


                            #14
                            code is working perfectly ;)
                            if i want to use another ad network like mobads3 then what should be the code?

                            http://WapTops.com- Get Real High Traffic
                            http://WapFun.info-Fun 4 Wap

                            Comment


                              #15
                              Originally posted by slowy View Post
                              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
                              PHP Code:
                              $mob_another_adsmobads3(); 
                              then change the last couple lines to
                              PHP Code:
                              else if
                              $ret $mob_alternate_link;
                              else 
                              $ret $mob_another_ads;
                              return 
                              $ret

                              Comment

                              Working...
                              X