Google DFP ads in email behaving strangely

后端 未结 4 465
眼角桃花
眼角桃花 2020-12-30 10:01

I am trying out serving DFP ads in email. I\'m following the guidelines here.

  • I have an ad unit set up just for email
  • I have a line item targeting tha
相关标签:
4条回答
  • 2020-12-30 10:42

    We've solved this by turning off cookies in the standard tag using the co= option; adding co=1 to the tag.

    <a href="https://pubads.g.doubleclick.net/gampad/jump?co=1&iu=/{my_pub_id}/300x250_email&amp;sz=300x250&amp;c={cachebuster}&amp;tile=1">
    <img src="https://pubads.g.doubleclick.net/gampad/ad?co=1&iu=/{my_pub_id}/300x250_email&amp;sz=300x250&amp;c={cachebuster}&amp;tile=1" />
    </a>
    

    The only problem (for us) that this creates is that we're unable to serve 3rd party tags, even ones that resolve directly to .gifs, using the standard tag.

    0 讨论(0)
  • 2020-12-30 10:46

    Had the same problem and I solved it by using script to redirect click via script on my web server where ad is shown again so that all the cookies can be set.

    Link looks like this: http://www.mysite.com/dfpclick.php?adunit=mailing&cbuster=1369608725

    Script dfpclick.php:
    <?php
    /* Google DFP url redirect*/
    if ($_REQUEST['adunit']) {
        $sUrl = 'http://pubads.g.doubleclick.net/gampad/jump?iu=/%mygoogleid%/'.$_REQUEST['adunit'].'&sz=1x1&c='.$_REQUEST['cbuster'];
    }
    ?>
    <html>
    <head>
    <meta HTTP-EQUIV="REFRESH" content="0; url=<?=$sUrl?>">
    </head>
    <body>
    <?php
    if ($_REQUEST['adunit']) {
        echo '<img src="http://pubads.g.doubleclick.net/gampad/ad?iu=/%mygoogleid%/'.$_REQUEST['adunit'].'&sz=1x1&c='.$_REQUEST['cbuster'].'" width="0" height="0" border="0" style="width:0px; height:0px;" alt=""/>';
    
    }
    
    ?>
    </body>
    </html>
    
    0 讨论(0)
  • 2020-12-30 10:47

    Using the co= option doesn't work for DFP Small Business. My workaround is:

    Use the same code for img <img src="https://pubads.g.doubleclick.net/gampad/ad?iu=/{my_pub_id}/300x250_email&sz=300x250&c={cachebuster}" />

    And build a redirect link on your website <a href="http://yourwebsite.com/adunit/300x250_email">. This page reads and filters the response from http://pubads.g.doubleclick.net/gampad/adx?iu=/{my_pub_id}/300x250_email&sz=300x250&c={cachebuster} in order to get the click-tracking link using javascript link=$(xmlDoc).find('a').attr('href'); and redirect.

    This workaround doesn't work for rotation (more than one creative/line item is competing for the same ad unit at the same time).

    I'd like to know how to serve email ads in rotation using DFP SB

    0 讨论(0)
  • 2020-12-30 10:58

    It turns out that DFP for small business requires cookie support to work, even when using the non-JavaScript method of calling ads. So it works fine in web-based clients like Gmail, but it doesn't work in Outlook and the like. DFP Premium can supposedly serve ads in email without requiring cookies.

    0 讨论(0)
提交回复
热议问题