I spent close to 40 hours installing, uninstalling, manually setting up databases (ad_external), manually adding database fields (sitekey), to finally realize the ads will only display if the format is RAW MODE under settings. Most of the time I received something like this when debugging:

ad_dir: '/var/www/dev/sites/all/modules/ad'
debug: '2'
adcache: 'none'
nids: ''
tids: '49'
hostid: ''
sitekey: ''
url: ''
alias: ''
quantity: '1'
aid: '0'
ad_display: 'javascript'
--> Time mark: 16:10:42
Memory usage: 428.441 K
Drupal bootstrap '0'.
Drupal bootstrap complete.
Root drupal directory detected as '/var/www/dev'.

/var/www/dev/sites/all/modules/ad/serve.php: // $Id: serve.php,v 1.1.2.2.2.1.2.1 2009/02/23 22:39:02 jeremy Exp $ 
/var/www/dev/sites/all/modules/ad/adserve.inc: // $Id: adserve.inc,v 1.1.2.31.2.8.2.10 2009/11/23 19:12:41 Jeremy Exp $ 
/var/www/dev/sites/all/modules/ad/adcache.inc: 
/var/www/dev/sites/all/modules/ad/ad.module: // $Id: ad.module,v 1.2.2.29.2.83.2.16.2.38 2010/05/21 19:24:48 Jeremy Exp $ 
/var/www/dev/sites/all/modules/ad/ad.install: // $Id: ad.install,v 1.2.2.4.2.27.2.7.2.8 2009/10/20 23:31:22 jeremy Exp $ 

adserve_cache function(get_ad_ids)
Cache function 'ad_cache_none_get_ad_ids' does not exist. 
Memory usage: 433.699 K
Invoking cache function 'adserve_cache_get_ad_ids'.
Entering default adserve_display.
adserve_cache function(open)
Cache function 'ad_cache_none_open' does not exist. 
Memory usage: 434.547 K
Invoking cache function 'adserve_cache_open'.
Drupal bootstrap '8'.

I hope this helps somebody, if all else fails switch to raw mode under the main settings and try to view.

Best

Comments

robato’s picture

Im having this issue too. I would like to use the jquery or javascript display type, but the ad is empty unless I use RAW.

robato’s picture

I found out how to fix this issue...
You need to go into user permissions and chose "show advertisements" for anonymous and authenticated users. Then you will be able to display using any method you wish.

You can read up on it here...
http://drupal.org/node/556402
and
http://drupal.org/node/597116

john franklin’s picture

rjdjohnston,

The interesting part of the debug information is after the block you posted. Do you have a full debug log?

john franklin’s picture

Status: Active » Closed (duplicate)