Problem adding Google Ad Manager (DFP) Tags
-
Hi there,
This is a great plugin! Works really well for inserting Google Adsense tags into a theme.
However, run across an issue with Google Ad Manager tags (formerly DFP).
When I use this tag, I receive an error message:
<!-- /22394762/Article_728x90_ATF --> <div id='div-gpt-ad-3843543546464364-0' style='height:90px; width:728px;'> <script> googletag.cmd.push(function() { googletag.display('div-gpt-ad-3843543546464364-0'); }); </script> </div>
This is the full snippet:
function google_ads() { return '<!-- /22394762/Article_728x90_ATF --> <div id='div-gpt-ad-3843543546464364-0' style='height:90px; width:728px;'> <script> googletag.cmd.push(function() { googletag.display('div-gpt-ad-3843543546464364-0'); }); </script> </div>'; } add_shortcode('adsense-ros-atf', 'google_ads');
I receive PARSE ERRORS.
https://www.dropbox.com/s/kqww1ju17rughzb/Screenshot%202019-03-02%2018.21.55.png?dl=0
https://www.dropbox.com/s/co0a7gzyxjh872p/Screenshot%202019-03-02%2018.21.59.png?dl=0
Is there a fix for this by chance?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Problem adding Google Ad Manager (DFP) Tags’ is closed to new replies.