Help With Google Ads In Lavalair Script

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

    #16
    hey amylee i have signup wid admob, i tried putting the code of admob, that you had given here in this post http://www.2wap.org/forums/index.php?showt...art=#entry21663 i tried putting the codes in index.php and i got parse error, could you please tell me where should i put that codes given here http://www.2wap.org/forums/index.php?showt...art=#entry21663 by you?

    Comment


      #17
      Ok renu nd lol u didnt inbox me ua wapsite nyways i also got tht service nd i have put the adsense code on ma wapsite too but its not showin up after 48 hours too nd now its been many times tht hours dunno whts problem .Nd go to code section in admob nd take code frm there they have two facilities one a ahref code oder a complete code tht u can add in oder file nd include it wherever u wana adds to show up .

      Comment


        #18
        Ok renu nd lol u didnt inbox me ua wapsite nyways i also got tht service nd i have put the adsense code on ma wapsite too but its not showin up after 48 hours too nd now its been many times tht hours dunno whts problem .Nd go to code section in admob nd take code frm there they have two facilities one a ahref code oder a complete code tht u can add in oder file nd include it wherever u wana adds to show up .[/b]
        yeah that night i had gone to sleep so forgot to give you link, google ads work with xhtml, not with wml, lol anyways i had tried samething for admob, but it worked only wid wml, it didnt worked wid xhtml, it gave parse error

        Comment


          #19
          Lol ok Renu ma site dont have XHTML version Googls ads hence dont work i think nd Admob used to work but i m been banned by Admob

          Comment


            #20
            admob dont give good earning, i have noticed in my account admob is not paying as expected, though adsense pay much better than admob, still i am trying if google ads work with xhtml, though admob is now working fine with xhtml aswell as wml.

            Comment


              #21
              admob dont give good earning, i have noticed in my account admob is not paying as expected, though adsense pay much better than admob, still i am trying if google ads work with xhtml, though admob is now working fine with xhtml aswell as wml.[/b]
              Ammm Ok i m using admoda as admob has banned ma account nd Google has also given Makup language as wml but its still not working wid wml .......Renu is google adsense workin wid ua Xhtml? ..

              Comment


                #22
                Ammm Ok i m using admoda as admob has banned ma account nd Google has also given Makup language as wml but its still not working wid wml .......Renu is google adsense workin wid ua Xhtml? ..[/b]
                nope google is not yet working, but i am trying my best to make it work, have also contacted customer care of google, let see what they say, once i get there reply then only i can proceed further on ad codes.

                Comment


                  #23
                  Well u can use google adsense with no prob in Xhtml version... But its not working on wml... I dont have latest news whether it supports wml... But the prob is not all the browsers specially phone browsers add accordingly and show google ads...

                  Comment


                    #24
                    Well u can use google adsense with no prob in Xhtml version... But its not working on wml... I dont have latest news whether it supports wml... But the prob is not all the browsers specially phone browsers add accordingly and show google ads...[/b]
                    yeah thats what the problem is, google ads dont show at all in xhtml version.

                    Comment


                      #25
                      if u wanna use any ads on your site with RW script, if its admob or google ads, just make a new file named &#39;ads.php&#39; and then get your admob code or google adsense mobile code and then paste it in the ads.php file making sure you leave the php markers in it, ie. <? and ?>

                      Save it and then where u want ads to show, jus put following

                      Code:
                      include("ads.php");
                      But if it is google adsense ads, you MUST not place that inside a paragraph tags. It must be outside of paragraph tags as google has its own paragraph tags and will obstruct the page if it is inside paragrpah tags.

                      Comment


                        #26
                        admob ads in xhtml work flawlessly on my site so they do work in xhtml

                        Comment


                          #27
                          Code:
                              function admob_ad()
                              {
                                  global $lang;
                          
                                    /* editable area */
                                    $mob_mode = &#39;live&#39;; // change mode from "test" to "live" when you are done testing
                                    $mob_alternate_link = &#39;[url]http://ads.admob.com/link_list.php?s=a147016f66cd0c1&#39;;[/url] // use this to set a default link to appear if AdMob does not return an ad.
                              
                                    /* end editable area */
                              
                                    //used for ad targeting
                                    $mob_contents = &#39;&#39;;
                                    $mob_ua = urlencode(getenv("HTTP_USER_AGENT"));
                                    $mob_ip = urlencode($_SERVER[&#39;REMOTE_ADDR&#39;]);
                            
                                    $mob_m = &#39;&#39;;
                                    if ($mob_mode==&#39;test&#39;)
                                        $mob_m = "&m";
                          
                                    $mob_url = &#39;http://ads.admob.com/ad_source.php?s=a147016f66cd0c1&u=&#39;.$mob_ua.&#39;&i=&#39;.$mob_ip.$mob_m;
                          
                                    @$mob_ad_serve = fopen($mob_url,&#39;r&#39;);
                          
                                    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($this->style == &#39;WEB&#39;)
                                              {
                                              $this->h3_open("center");
                                                if (isset($mob_ad_link) && ($mob_ad_link !=&#39;&#39;))
                                              {
                                                        //display AdMob Ad
                                                  $this->add_link("".$mob_ad_link."","".$mob_ad_text."","alink");
                                                }else {
                                                        //no AdMob ad, display alternate
                                                  $this->add_link("".$mob_alternate_link."","".$lang[&#39;admob_link&#39;]."","alink");
                                                }
                                              $this->h3_close();
                                      }
                          
                                              if($this->style == &#39;WAP&#39;)
                                              {
                          
                                              $this->start_p("center");
                                                if (isset($mob_ad_link) && ($mob_ad_link !=&#39;&#39;))
                                              {
                                                        //display AdMob Ad
                                                  $this->add_link("".$mob_ad_link."","".$mob_ad_text."","alink");
                                                }else {
                                                        //no AdMob ad, display alternate
                                                  $this->add_link("".$mob_alternate_link."","".$lang[&#39;admob_link&#39;]."","alink");
                                                }
                                              $this->end_p();
                          
                                      }
                              }
                          works for me

                          Comment


                            #28
                            Code:
                                function admob_ad()
                                {
                                    global $lang;
                            
                                      /* editable area */
                                      $mob_mode = &#39;live&#39;; // change mode from "test" to "live" when you are done testing
                                      $mob_alternate_link = &#39;[url]http://ads.admob.com/link_list.php?s=a147016f66cd0c1&#39;;[/url] // use this to set a default link to appear if AdMob does not return an ad.
                                
                                      /* end editable area */
                                
                                      //used for ad targeting
                                      $mob_contents = &#39;&#39;;
                                      $mob_ua = urlencode(getenv("HTTP_USER_AGENT"));
                                      $mob_ip = urlencode($_SERVER[&#39;REMOTE_ADDR&#39;]);
                              
                                      $mob_m = &#39;&#39;;
                                      if ($mob_mode==&#39;test&#39;)
                                          $mob_m = "&m";
                            
                                      $mob_url = &#39;http://ads.admob.com/ad_source.php?s=a147016f66cd0c1&u=&#39;.$mob_ua.&#39;&i=&#39;.$mob_ip.$mob_m;
                            
                                      @$mob_ad_serve = fopen($mob_url,&#39;r&#39;);
                            
                                      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($this->style == &#39;WEB&#39;)
                                                {
                                                $this->h3_open("center");
                                                  if (isset($mob_ad_link) && ($mob_ad_link !=&#39;&#39;))
                                                {
                                                          //display AdMob Ad
                                                    $this->add_link("".$mob_ad_link."","".$mob_ad_text."","alink");
                                                  }else {
                                                          //no AdMob ad, display alternate
                                                    $this->add_link("".$mob_alternate_link."","".$lang[&#39;admob_link&#39;]."","alink");
                                                  }
                                                $this->h3_close();
                                        }
                            
                                                if($this->style == &#39;WAP&#39;)
                                                {
                            
                                                $this->start_p("center");
                                                  if (isset($mob_ad_link) && ($mob_ad_link !=&#39;&#39;))
                                                {
                                                          //display AdMob Ad
                                                    $this->add_link("".$mob_ad_link."","".$mob_ad_text."","alink");
                                                  }else {
                                                          //no AdMob ad, display alternate
                                                    $this->add_link("".$mob_alternate_link."","".$lang[&#39;admob_link&#39;]."","alink");
                                                  }
                                                $this->end_p();
                            
                                        }
                                }
                            works for me[/b]

                            yeah this codes i already have it with me for admob, and it works with wml aswell as xhtml, but the problem is i am not earning that much with admob, i wanted google ads to work, but that is not working on wml aswell as xht
                            l.

                            Comment


                              #29
                              google staff will not list you or let you use html google ads in xhtml wml i know they check ya site
                              Visit: Chat4u.mobi - The New Lay Of being a site of your dreams!
                              Visit: WapMasterz Coming Back Soon!
                              _______
                              SCRIPTS FOR SALE BY SUBZERO
                              Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders.
                              FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others...
                              _______
                              Info & Tips
                              php.net
                              w3schools.com

                              Comment


                                #30
                                google staff will not list you or let you use html google ads in xhtml wml i know they check ya site[/b]
                                yeah but they have started a different services for mobile wap users, who can use the php codes in wml aswell as xhtml site, i had even complaint to google adsense, but have not got back reply from them yet, i had emailed them last week.

                                Comment

                                Working...
                                X