For insert advert code under question im use this function:
function a_list($a_list) {
$this->output('<div style="margin:20px 0; max-width:100%"/>
AD CODE HERE
</div>
');
parent::a_list($a_list);
}
but code is displayed above related questions, but I need that the code would be displayed under a qustion.
Please help, give me correct code which will be displayed advertisement immediately below question.