Decktrade Help

Started on the old forum in June 2009 · view the original in the archive · old links redirect here

5 replies · 570 views · started 17 years ago · 1 min read

5 participants
brentg Developer · 95 posts #1

Hi

I dont get ads from decktrade with operamini so i contacted them and they want me to do the following.

qoute from decktrade support:

what you'll need to do is echo out the request you are sending to us to the screen so that you can read it and send it to us. It does require you have some knowledge of the code language you are using so you can debug the code.

can anyone help me do this

Thanks

Free Mobile Downloads: http://playwap.mobi

GumSlone Administrator Principal · 1,690 posts #2

here is the install code:

<?php
$dt_siteid = 276;
$dt_adserver = "ads.dt.mydas.mobi";
$dt_default_response = "";
$dt_mode = "test"; // Change this to 'live' when ready for live Ads

$dt_ua = urlencode( $_SERVER["HTTP_USER_AGENT"] );
$dt_ip = urlencode( $_SERVER["REMOTE_ADDR"] );

$dt_id = urlencode( $_SERVER["REMOTE_ADDR"] );

if( isset( $_SERVER["HTTP_X_UP_SUBNO"] ) )
  $dt_id = urlencode( $_SERVER["HTTP_X_UP_SUBNO"] );
else if( isset( $_SERVER["HTTP_XID"] ) )
  $dt_id = urlencode( $_SERVER["HTTP_XID"] );
else if( isset( $_SERVER["HTTP_CLIENTID"] ) )
  $dt_id = urlencode( $_SERVER["HTTP_CLIENTID"] );
$dt_url = "http://$dt_adserver/getAd.php5?asid=$dt_siteid&auid=$dt_id&ua=$dt_ua&uip=$dt_ip&mode=$dt_mode";

@$dt_response = file_get_contents( $dt_url );
echo $dt_response != FALSE ? $dt_response : $dt_default_response;
?>

Advertise your mobile site for FREE with AdTwirl

External image (may be gone)

something else Fellow · 2,296 posts #4
if( isset(  $_SERVER['HTTP_X_OPERAMINI_PHONE_UA']) ){
$dt_ua = urlencode(  $_SERVER['HTTP_X_OPERAMINI_PHONE_UA']);
}else{
$dt_ua = urlencode( $_SERVER["HTTP_USER_AGENT"] );
}

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