Hey minimus,
There was a minor bug in your plugin where if you were using "drawAdsPLace()" with the name attribute it wouldn't work.
The fix is an easy one,
sam-class.php, line 221
change
else $pId = "{$pTable}.name = {$args['name']}";
to
else $pId = "{$pTable}.name = '{$args['name']}'";
(add single quotes around the name being selected)
Cheers!
Ian