Hi heyp welcome to the forum
Like this ? https://meta.discourse.org/t/want-to-show-ad-in-the-right-side-of-2nd-post-in-topic-pages/76436?u=mittineague
Maybe the two of you could combine resources?