It has been a week and i am still waiting for the help
i raised support tickets also posted here in community and still not getting any fruitful reply.
If ezoic is not able to support new modern site built on React, Next Js or View (Jamstack) please let me know so i can switch back to AdSense .
Neither your developer replying not giving proper documentation or guidance how can i integrate with site?
i received following code but it has one issue.
My question was regarding the code you shared for the ads refresh on page navigation.
<html>
<head>
// ...somewhere in the head tag
<script src="//www.ezojs.com/ezoic/sa.min.js"></script>
<script type="text/javascript">
var ezstandalone = ezstandalone {};
ezstandalone.cmd = ezstandalone.cmd [];
ezstandalone.cmd.push(function() {
// If the placeholder ID’s change make sure to redefine, if not just call refresh
ezstandalone.displayMore(110, 115);
});
</script>
// ...somewhere in the head tag or javascript
</head>
<body>
// ...somewhere in the body tag
<div id="ezoic-pub-ad-placeholder-110"></div>
// ...somewhere in the body tag
<div id="ezoic-pub-ad-placeholder-115"></div>
</body>
</html>
Here ezstandalone.displayMore(110, 115); is stating that new ad placement id 110 and 115 needs to show ads.
But how can i get new ids which i need to add here as it may be different from page to page and content to content .
Like some page has ads placeholder 110, 115, 111, 120 and next page my have 110,111,126 now it is not possible to
find in the header and use that code.
Doesn't Ezoic have a standard code solution like AdSense? https://stackoverflow.com/questions/46035999/how-to-embed-google-adsense-in-react-js
AdSence just require
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
above code to run on each page change so it can load any ads on the page irrespective of placeholder id or slot.
Also I am not sure, I have to call this JS
<script src="//www.ezojs.com/ezoic/sa.min.js"></script>
although I am using your CDN (Name Server) .