Rendering a region after rows
I'm absolutely against to add code in templates...

but your problem is here:

&lt;?php if ($row_id == 0): ?&gt;
  &lt;?php print render($page['ad_spot']); ?&gt;


I think this is always FALSE.