# Permit disabling safeframes in ads plugin

**URL:** <https://meta.discourse.org/t/permit-disabling-safeframes-in-ads-plugin/382842>\
**Category:** Feature\
**Tags:** advertising\
**Created:** [September 16, 2025, 3:41pm UTC](https://meta.discourse.org/t/permit-disabling-safeframes-in-ads-plugin/382842 "2025-09-16T15:41:41Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![gasroom](https://avatars.discourse-cdn.com/v4/letter/g/ebca7d/32.png) [@gasroom](https://meta.discourse.org/u/gasroom)\
**Post date:** [September 16, 2025, 3:41pm UTC](https://meta.discourse.org/t/permit-disabling-safeframes-in-ads-plugin/382842/1 "2025-09-16T15:41:41Z")

</div>

Hello,

Currently, the [Discourse ad plugin](https://github.com/discourse/discourse-adplugin/blob/bc68d6e23094300a9bac4f3899ebfa258799e021/assets/javascripts/discourse/components/google-dfp-ad.gjs) enforces safeframes for Google Ad Manager (DFP) for all ad units:

window.googletag.pubads().setForceSafeFrame(true);

While safeframing is declared as best practice by Google, the rest of the advertising ecosystem broadly disagrees.

Safe-framing prevents 3rd party ad technologies from gaining the access they need to perform a full auction with all page and user signals, and to render creatives.

For instance, most bidders using prebid (the most widely adopted open-source ad technology) advise publishers to disable safeframes. Not doing so severely depresses the CPMs publisher achieve from the open auction.

Can a checkbox be added to change setForceSafeFrame to false?

Thank you!

---

_[View the full topic](https://meta.discourse.org/t/permit-disabling-safeframes-in-ads-plugin/382842)._
