Recently we have updated creative HTML snippet for API based integration with GAM. The “Serve into a Safeframe” box can be UNCHECKED or CHECKED (Prebid universal creative is SafeFrame compatible).
Code snippet:
<script src = "https://cdn.jsdelivr.net/npm/prebid-universal-creative@latest/dist/creative.js"></script>
<script>
var ucTagData = {};
ucTagData.adServerDomain = "";
ucTagData.pubUrl = "%%PATTERN:url%%";
ucTagData.targetingMap = %%PATTERN:TARGETINGMAP%%;
try {
ucTag.renderAd(document, ucTagData);
} catch (e) {
console.log(e);
}
</script>
More information about Prebid Universal Creative you may find here:
http://prebid.org/adops/step-by-step.html#step-2-add-a-creative
and here:
https://github.com/prebid/prebid-universal-creative
Give a try to new code by integrating your header bidding ad stack with your GAM account using our platform. You may get a free account and serve up to 3 million requests per month by registering here: https://cp.headbidder.net/signup