@baris Thanks for the tip. I did disable ajaxify for anchor tags as you said, restarted nodebb and it worked! It loads ads properly!!
Thank you so much, I was looking for this part since so long!
Will test more for whether it breaks other things or is all set and keep this thread updated.