Better than admob.

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

32 replies · 3,817 views · started 15 years ago · 1 min read

TL;DR · summary of 32 replies
  • khan found issues with adcell.mobi's random banner ads and claimed they were not getting paid for repeated clicks.
  • morency suggested trying multiple ad companies to find which one is better for their traffic.
  • bozzmob inquired about Smatoo's minimum payout for PayPal users, but no response was provided.

Written automatically from the replies by a language model on our own server. It can be wrong; the posts below are the source.

17 participants
irfiii Developer · 249 posts #21

Khan we pay only for premium adz. For free adz u earn advertiser balance... And all adz of own sites like 2in1 are premium.... And how u can say that how many users/or which user click on your adz and click not counted?

Free Web Hosting @HostersPoint.com php Hosting with Web Builder

Buy - Sell ADs ADMOLA ADs Network Monetize Your Site Traffic

ReazulIqbal Developer · 103 posts #23

Khan bro in adcell there is no impression prob for publishers but due tho randomaized banner ads there is prob for advertisers.

May b server was to busy to serve u ads.

As adcell is now introductory stage, so admin create many ads that go to adcell.mobi. But if repeated click detected that will also go to adcell.mobi and you will not get paid for that.

kei_ki7 Senior · 431 posts #24

CreativityKills wrote: can someone please paste the admob installation code, i cant get it via mobile and my pc is gettin fixed

$admob_params = array(
  'PUBLISHER_ID'      => 'ADMOB_PUBLISHER_ID', // Required to request ads. To find your Publisher ID, log in to your AdMob account and click on the "Sites & Apps" tab.
  'ANALYTICS_ID'      => 'ADMOB_ANALYTICS_ID', // Required to collect Analytics data. To find your Analytics ID, log in to your Analytics account and click on the "Edit" link next to the name of your site.
  'AD_REQUEST'        => true, // To request an ad, set to TRUE.
  'ANALYTICS_REQUEST' => true, // To enable the collection of analytics data, set to TRUE.
  'TEST_MODE'         => false, // While testing, set to TRUE. When you are ready to make live requests, set to FALSE.
  // Additional optional parameters are available at: http://developer.admob.com/wiki/AdCodeDocumentation
  'OPTIONAL'          => array()
);

// Optional parameters for AdMob Analytics (http://analytics.admob.com)
//$admob_params['OPTIONAL']['title'] = "Enter Page Title Here"; // Analytics allows you to track site usage based on custom page titles. Enter custom title in this parameter.
//$admob_params['OPTIONAL']['event'] = "Enter Event Name Here"; // To learn more about events, log in to your Analytics account and visit this page: http://analytics.admob.com/reports/events/add

/* This code supports the ability for your website to set a cookie on behalf of AdMob
 * To set an AdMob cookie, simply call admob_setcookie() on any page that you call admob_request()
 * The call to admob_setcookie() must occur before any output has been written to the page (http://www.php.net/setcookie)
 * If your mobile site uses multiple subdomains (e.g. "a.example.com" and "b.example.com"), then pass the root domain of your mobile site (e.g. "example.com") as a parameter to admob_setcookie().
 * This will allow the AdMob cookie to be visible across subdomains
 */
//admob_setcookie();

/* AdMob strongly recommends using cookies as it allows us to better uniquely identify users on your website.
 * This benefits your mobile site by providing:
 *    - Improved ad targeting = higher click through rates = more revenue!
 *    - More accurate analytics data (http://analytics.admob.com)
 */
 
// Send request to AdMob. To make additional ad requests per page, copy and paste this function call elsewhere on your page.
echo admob_request($admob_params);
}
}

/////// admob functions

// This section defines AdMob functions and should be used AS IS.
// We recommend placing the following code in a separate file that is included where needed.
function admob_request($admob_params) {
  static $pixel_sent = false;

  $ad_mode = false;
  if (!empty($admob_params['AD_REQUEST']) && !empty($admob_params['PUBLISHER_ID'])) $ad_mode = true;
  
  $analytics_mode = false;
  if (!empty($admob_params['ANALYTICS_REQUEST']) && !empty($admob_params['ANALYTICS_ID']) && !$pixel_sent) $analytics_mode = true;
  
  $protocol = 'http';
  if (!empty($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) != 'off') $protocol = 'https';
  
  $rt = $ad_mode ? ($analytics_mode ? 2 : 0) : ($analytics_mode ? 1 : -1);
  if ($rt == -1) return '';
  
  list($usec, $sec) = explode(' ', microtime()); 
  $params = array('rt=' . $rt,
                  'z=' . ($sec + $usec),
                  'u=' . urlencode($_SERVER['HTTP_USER_AGENT']), 
                  'i=' . urlencode($_SERVER['REMOTE_ADDR']), 
                  'p=' . urlencode("$protocol://" . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']),
                  'v=' . urlencode('20081105-PHPCURL-acda0040bcdea222')); 

  $sid = empty($admob_params['SID']) ? session_id() : $admob_params['SID'];
  if (!empty($sid)) $params[] = 't=' . md5($sid);
  if ($ad_mode) $params[] = 's=' . $admob_params['PUBLISHER_ID'];
  if ($analytics_mode) $params[] = 'a=' . $admob_params['ANALYTICS_ID'];
  if (!empty($_COOKIE['admobuu'])) $params[] = 'o=' . $_COOKIE['admobuu'];
  if (!empty($admob_params['TEST_MODE'])) $params[] = 'm=test';

  if (!empty($admob_params['OPTIONAL'])) {
    foreach ($admob_params['OPTIONAL'] as $k => $v) {
      $params[] = urlencode($k) . '=' . urlencode($v);
    }
  }

  $ignore = array('HTTP_PRAGMA' => true, 'HTTP_CACHE_CONTROL' => true, 'HTTP_CONNECTION' => true, 'HTTP_USER_AGENT' => true, 'HTTP_COOKIE' => true);
  foreach ($_SERVER as $k => $v) {
    if (substr($k, 0, 4) == 'HTTP' && empty($ignore[$k]) && isset($v)) {
      $params[] = urlencode('h[' . $k . ']') . '=' . urlencode($v);
    }
  }
  
  $post = implode('&', $params);
  $request = curl_init();
  $request_timeout = 1; // 1 second timeout
  curl_setopt($request, CURLOPT_URL, 'http://r.admob.com/ad_source.php');
  curl_setopt($request, CURLOPT_RETURNTRANSFER, 1);
  curl_setopt($request, CURLOPT_TIMEOUT, $request_timeout);
  curl_setopt($request, CURLOPT_CONNECTTIMEOUT, $request_timeout);
  curl_setopt($request, CURLOPT_HTTPHEADER, array('Content-Type: application/x-www-form-urlencoded', 'Connection: Close'));
  curl_setopt($request, CURLOPT_POSTFIELDS, $post);
  list($usec_start, $sec_start) = explode(' ', microtime());
  $contents = curl_exec($request);
  list($usec_end, $sec_end) = explode(' ', microtime());
  curl_close($request);

  if ($contents === true || $contents === false) $contents = '';

  if (!$pixel_sent) {
    $pixel_sent = true;
    $contents .= "<img src=\"$protocol://p.admob.com/e0?"
              . 'rt=' . $rt
              . '&z=' . ($sec + $usec)
              . '&a=' . ($analytics_mode ? $admob_params['ANALYTICS_ID'] : '')
              . '&s=' . ($ad_mode ? $admob_params['PUBLISHER_ID'] : '')
              . '&o=' . (empty($_COOKIE['admobuu']) ? '' : $_COOKIE['admobuu'])
              . '&lt=' . ($sec_end + $usec_end - $sec_start - $usec_start)
              . '&to=' . $request_timeout
              . '" alt="" width="1" height="1"/>';
  }
  
  return $contents;
}

function admob_setcookie($domain = '', $path = '/') {
  if (empty($_COOKIE['admobuu'])) {    
    $value = md5(uniqid(rand(), true));
    if (!empty($domain) && $domain[0] != '.') $domain = ".$domain";
    if (setcookie('admobuu', $value, mktime(0, 0, 0, 1, 1, 2038), $path, $domain)) {
      $_COOKIE['admobuu'] = $value; // make it visible to admob_request()
    } 
  }
}

Did I help you? You can help me too Your donations will help me finance my studies.

bozzmob Newbie · 8 posts #25

morency wrote: try many ad companies and witch one is better for your traffic .

for me , admoda + smaato + gtmobi give good results ... I hope to get few extra beers next month :D

admoda average cpc & average fillrate??

morency Senior · 488 posts #27

Give a try and see the results in admoda , we dont have the same traffic , so the fill rate and cpc is not the same

Unamos los corazones,hoy todos somos multicolores!

khan Lead · 681 posts #28

CreativityKills wrote: thanks man, can u pls zip it thanks

There you go..

Added after 8 minutes:

irfiii wrote: Khan we pay only for premium adz. For free adz u earn advertiser balance... And all adz of own sites like 2in1 are premium.... And how u can say that how many users/or which user click on your adz and click not counted?

I told you I know things that goes out from my servers and i counted like if anything goes to adz.adcell.. it counts to my panel that a hit goes out to ur ad page. Simple. and about your ads, from my site, ive sent 45+ hits and i got .15. i donno y! if you say your site is still processing i can consider that but if you say i havent sent those hits its wrong bro. and about free adz, i havent seen any advertiser balance out there bro. hope you can check.

Added after 5 minutes:

ReazulIqbal wrote: Khan bro in adcell there is no impression prob for publishers but due tho randomaized banner ads there is prob for advertisers.

May b server was to busy to serve u ads.

As adcell is now introductory stage, so admin create many ads that go to adcell.mobi. But if repeated click detected that will also go to adcell.mobi and you will not get paid for that.

as you can see If my users click repeatedly, I can't do anythins as i dont tell them to click or something like that lol bro.. i am considering that its still in introductory stage it isnt a headache for me. hope it will full on ads in few weeks. btw now from yesterday i havent seen any ads of adcell! can you tell me why?

Attachments: admob_adcodes.zip
Jacob Adams Newbie · 6 posts #30

few ad companies that i know are admoda,buzzcity...

GumSlone Administrator Principal · 1,690 posts #31

Jacob Adams wrote: few ad companies that i know are admoda,buzzcity...

you guys from Adiquity should stop spamming forums with fake usernames promoting your service, this makes the reputation of your company even worse than its already is.

Advertise your mobile site for FREE with AdTwirl

External image (may be gone)

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