i have this card, which includes the ad. I wanted to add this everytime i called my ajax.
what ive tried is just putting the whole card in a
document.getElementById("feed_container).insertAdjacentHTML('beforeend', ' <div class="card mt-3 mb-3 bg-dark text-white">
<div class="card-body" >
<h6 class="card-subtitle mb-2 text-muted">Sponsored Content, sorry :(</h6>
<div id="ad-body" class="card-content col d-flex justify-content-center">
<script async="async" data-cfasync="false" src="//pl22464107.profitablegatecpm.com/70dc149ec489e883ffe0c36bd73d05d0/invoke.js"></script>
<div id="container-70dc149ec489e883ffe0c36bd73d05d0"></div>
</div>
</div>
</div>
</div>')
<div class="card mt-3 mb-3 bg-dark text-white">
<div class="card-body" >
<h6 class="card-subtitle mb-2 text-muted">Sponsored Content, sorry :(</h6>
<div id="ad-body" class="card-content col d-flex justify-content-center">
<script async="async" data-cfasync="false" src="//pl22464107.profitablegatecpm.com/70dc149ec489e883ffe0c36bd73d05d0/invoke.js"></script>
<div id="container-70dc149ec489e883ffe0c36bd73d05d0"></div>
</div>
</div>
</div>
</div>