Skip to content

Commit 53e188b

Browse files
fix bug in example
1 parent 66f67fe commit 53e188b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

prebid/native-implementation.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -469,13 +469,13 @@ window.renderAd=function(ortb){
469469
return asset.video.vasttag;
470470
}
471471
}
472-
472+
473473
ortb.assets.forEach(asset => {
474474
template = template.replace(`##hb_native_asset_id_${asset.id}##`, getAssetValue(asset));
475475
});
476-
476+
477477
if (ortb.privacy) {
478-
template = template.replace("hb_native_privacy", ortb.privacy);
478+
template = template.replace("##hb_native_privacy##", ortb.privacy);
479479
}
480480
template = template.replace("##hb_native_linkurl##", ortb.link.url);
481481
return template;
@@ -564,7 +564,7 @@ window.renderAd = (ortb) => {
564564
};
565565

566566
let message = JSON.stringify(viewabilityRecord);
567-
window.parent.postMessage(JSON.stringify(message), '*');
567+
window.parent.postMessage(message, '*');
568568
})
569569
}
570570

0 commit comments

Comments
 (0)