'Text');
$text = $ad->get_property('adformat');
if (empty($text)) {
$type = $ad->get_property('adtype');
if (!empty($type)) {
$text = $atypes[$type];
} else {
$text = '(default)';
}
} else {
if ($text == 'custom') {
$text = $ad->get_property('width') . 'x' . $ad->get('height');
}
}
return $text;
}
}
?>