I want to use the sync rendering option of Google DFP ads, but even if the option "Render ads asynchronously" is disabled, ads are still rendered in the iframe (=async).

When looking at the code I found out that the enableSyncRendering option is never explicitly set. Attached patch fixes this issue.

CommentFileSizeAuthor
dpf_sync_rendering.patch480 bytesmh86

Comments

bleen’s picture

Status: Needs review » Fixed

awesome .. committed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

prachee korday’s picture

Issue summary: View changes

I tried using this but it does not work.

pr1859’s picture

@prachee korday Try adding this to inject Javascript in dfp_ads/settings page

googletag.cmd.push(function() {
  googletag.pubads().enableSyncRendering();
});