Jump to content
Search Community

Can I convert a rich media studio ad to a standard HTML5 DCM ad?

StacyGray test
Moderator Tag

Warning: Please note

This thread was started before GSAP 3 was released. Some information, especially the syntax, may be out of date for GSAP 3. Please see the GSAP 3 migration guide and release notes for more information about how to update the code to GSAP 3's syntax. 

Recommended Posts

I have an ad that was built by another agency as a rich media HTML5 ad and put through Doubleclick studio. We need to get it hosted onto DCM for another use, and our team usually builds our ads in Adobe Edge and uploads to DCM. I need to convert it so that we can upload to DCM. The ad has exits for studio, and I tried replacing the exits and added the DCM clicktag code, but when I upload to DCM, it's not going to the proper URL. It's using the backup ad's URL for all of my clickTags.

 

Does anyone have any experience with this? What am I doing wrong?

 

Here is the exit code that I replaced:

 

function bgExitHandler1(e) {
            Enabler.exit("click1");
        }
        var exit1Link = document.getElementById('exit1Link');
     exit1Link.onclick = bgExitHandler1;

      function bgExitHandler1(e) {
         Enabler.exit("click1");
      }

        function bgExitHandler2(e) {
           Enabler.exit("click2");
       }

      function bgExitHandler3(e) {
         Enabler.exit("click3");
      }

       function bgExitHandler4(e) {
           Enabler.exit("click4");
        }

       function bgExitHandler5(e) {
            Enabler.exit("click5");
        }

    document.getElementById("exit1").addEventListener("click", bgExitHandler1, false);
     document.getElementById("exit2").addEventListener("click", bgExitHandler2, false);
    document.getElementById("exit3").addEventListener("click", bgExitHandler3, false);
 document.getElementById("exit4").addEventListener("click", bgExitHandler4, false);
      document.getElementById("exit5").addEventListener("click", bgExitHandler5, false);

 

<b><a id="exit2" href="http://www.astrazeneca-us.com/cgi-bin/az_pi.cgi?product=seroquelxr&country=us&popup=no" target="_blank">Please read full Prescribing Information for <br>SEROQUEL XR, including Boxed WARNINGS</a>.</b>

 

 

Here is the clicktag code I replaced it with:

 

<script type="text/javascript">
        var clickTag = "https://www.seroquelxrtouchpoints.com/home";
        var clickTag2 = "http://www.astrazeneca-us.com/cgi-bin/az_pi.cgi?product=seroquelxr&country=us&popup=no";
        var clickTag4 = "https://www.seroquelxrtouchpoints.com/common/contact-us/";
    </script>

 

 <a href="javascript:window.open(clickTag)" target="_blank">
            <div id="click_btn"></div>
            <div id="click_btn1"></div>
        </a>

Link to comment
Share on other sites

Hi StacyGray!

 

Welcome to the forums! And to the dark arts of banner development. Every one of us here has sold his/her soul in order to gain knowledge. Are you prepared?

 

 

Seriously now...

 

 

I personally have not got much experience working directly with DCM. I work mostly with DoubleClick Studio and sometimes AdWords. But, from reading what others say about DCM, it is the same as AdWords so, here are my two cents:

 

The reason all of your clicks are going to the same url is because you are calling the window.open(); method wand passing the exact same parameter clickTag. In order to call different URLs you need to pass different parameters when calling the window.open();.

 

Try instead of:

<a href="javascript:window.open(clickTag)" target="_blank">
  <div id="click_btn"></div>
  <div id="click_btn1"></div>
</a>

Do something like this:

<div id="click_btn" onclick="window.open(clickTag);"></div>
<div id="click_btn1" onclick="window.open(clickTag2);"></div>

But really you should have your JavaScript logic outside your HTML:

 

HTML:

<div id="click_btn" ></div>
<div id="click_btn1"></div>

JavaScript:

document.getElementById("click_btn").addEventListener("click", bgExitHandler, false);
document.getElementById("click_btn1").addEventListener("click", bgExitHandler, false);

function bgExitHandler(e) {
  switch (e.currentTarget.id) {
   case "click_btn" :
     window.open(clickTag);
     break;
  
  case "click_btn1" :
     window.open(clickTag2);
     break;
 }
}
  • Like 2
Link to comment
Share on other sites

I would second some of what Dipscom said, except I know I read on DC's support docs somewhere, that your first clickTag will be clickTag0, and proceed from there. So the syntax is different, there is no exit, there is only clickTag.

 

And if it is Edge authored you use this in Edge on your CTAs

 

window.open(clickTag, "_blank"); so you will do window.open(clickTag0, "_blank"); etc

 

Then in your published HTML doc in the head but ourside Edge runtime, you will also place


<script type="text/javascript">
var clickTag0 = "https://www.google.com";
var clickTag1 = "https://www.google.com";
var clickTag2 = "https://www.google.com";
</script>

You also delete the enabler.js script, it is not being used and all the DCRM specific code. . So yeah DCM is completely different from DCRM, and AdWords is different from DCM.

  • Like 3
Link to comment
Share on other sites

" own Google Dude assigned to you"

 

I assume that means spends the big bucks. I found out we were not paying for geotargeted Dynamic, Google employees were doing it for us as value added. I think Google wanted to stop doing that kind of hand holding, and not be in the business of trafficking Studio ads. i read they want every shop to have a QA certified person by end of this month.

 

It was nice to have someone I could directly email though. I found out which rules I could break. (I have way more image assets than any one file uses, because of versioning, so DCM will not flag you for going over 10 assets. AdWords doesn't even catch it.

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...