Jump to content

Error on clickTag revive server


Recommended Posts

I'm using this script for a Ads Banner on a client website. This js code is generated from another agency and seems that it dosn't work because it shows an error when the user click on the banner.

This is the error msg :"The requested URL /6255/REVIVE_ADSERVER_CLICK_URL was not found on this server." And this is the code that have the clickTag :

  <script>
    var clickTag = "{REVIVE_ADSERVER_CLICK_URL}";
  </script>
      <script type="text/javascript" gwd-events="support">var gwd=gwd||{};gwd.actions=gwd.actions||{};gwd.actions.events=gwd.actions.events||{};gwd.actions.events.getElementById=function(id){var element=document.getElementById(id);if(!element){var pageDeck=document.querySelector("gwd-pagedeck");if(pageDeck){if(typeof pageDeck.getElementById==="function"){element=pageDeck.getElementById(id)}}}if(!element){switch(id){case"document.body":element=document.body;break;case"document":element=document;break;case"window":element=window;break;default:break}}return element};gwd.actions.events.addHandler=function(eventTarget,eventName,eventHandler,useCapture){var targetElement=gwd.actions.events.getElementById(eventTarget);if(targetElement){targetElement.addEventListener(eventName,eventHandler,useCapture)}};gwd.actions.events.removeHandler=function(eventTarget,eventName,eventHandler,useCapture){var targetElement=gwd.actions.events.getElementById(eventTarget);if(targetElement){targetElement.removeEventListener(eventName,eventHandler,useCapture)}};gwd.actions.events.setInlineStyle=function(id,styles){var element=gwd.actions.events.getElementById(id);if(!element||!styles){return}var transitionProperty=element.style.transition!==undefined?"transition":"-webkit-transition";var prevTransition=element.style[transitionProperty];var splitStyles=styles.split(/\s*;\s*/);var nameValue;splitStyles.forEach(function(splitStyle){if(splitStyle){var regex=new RegExp("[:](?![/]{2})");nameValue=splitStyle.split(regex);nameValue[1]=nameValue[1]?nameValue[1].trim():null;if(!(nameValue[0]&&nameValue[1])){return}element.style.setProperty(nameValue[0],nameValue[1])}});function restoreTransition(event){var el=event.target;el.style.transition=prevTransition;el.removeEventListener(event.type,restoreTransition,false)}element.addEventListener("transitionend",restoreTransition,false);element.addEventListener("webkitTransitionEnd",restoreTransition,false)};gwd.actions.gwdGenericad=gwd.actions.gwdGenericad||{};gwd.actions.gwdGenericad.exit=function(receiver,url,opt_collapseOnExit,opt_pageId){gwd.actions.events.getElementById(receiver).exit(url,opt_collapseOnExit,opt_pageId)}</script>
  <script type="text/javascript" gwd-events="handlers">window.gwd=window.gwd||{};gwd.clickTAG=function(event){clickTAGvalue=dhtml.getVar("clickTAG","REVIVE_ADSERVER_CLICK_URL");landingpagetarget=dhtml.getVar("landingPageTarget","_blank");window.open(clickTAGvalue,landingpagetarget)};gwd.auto_Gwd_taparea_1Action=function(event){gwd.actions.gwdGenericad.exit("gwd-ad","REVIVE_ADSERVER_CLICK_URL",true,"page1")}</script>
  <script type="text/javascript" gwd-events="registration">gwd.actions.events.registerEventHandlers=function(event){gwd.actions.events.addHandler("gwd-taparea_1","action",gwd.auto_Gwd_taparea_1Action,false);gwd.actions.events.addHandler("gwd-taparea_1","action",gwd.clickTAG,false);gwd.actions.events.addHandler("gwd-taparea_1","action",gwd.clickTAG,false)};gwd.actions.events.deregisterEventHandlers=function(event){gwd.actions.events.removeHandler("gwd-taparea_1","action",gwd.auto_Gwd_taparea_1Action,false);gwd.actions.events.removeHandler("gwd-taparea_1","action",gwd.clickTAG,false);gwd.actions.events.removeHandler("gwd-taparea_1","action",gwd.clickTAG,false)};document.addEventListener("DOMContentLoaded",gwd.actions.events.registerEventHandlers);document.addEventListener("unload",gwd.actions.events.deregisterEventHandlers)</script>
  <script data-source="gwdtaparea_min.js" data-version="7" data-exports-type="gwd-taparea">(function(){/*

How to fix this error so the clicks work again on the Ads Banner? Please don't reply with a
var clickTag = "https://www.google.com/";

solution because it seems that the clickTag var should be dynamic.

Link to post
Share on other sites
1 hour ago, Krishnapriya Ravi said:

Hi,

Do you deliver this third party tag via Revive adserver third party HTML?In that case only macro will be supported.If you use inside revive third party html use this {clickurl}macro.

Hi, 

Thanks for your reply,

No, this tag is used only on the website and this google animated banner.

This is from revive documentation :
https://documentation.revive-adserver.com/display/DOCS/HTML5+banners

Destination URL

A destination URL must always be provided and the banner must use clickTag, as per the IAB's HTML5 for Digital Advertising v2.0 guide.

Revive Adserver will always call the banner using the format:

/index.html?clickTag={REVIVE_ADSERVER_CLICK_URL}

where {REVIVE_ADSERVER_CLICK_URL} is replaced with the appropriate URL to the Revive Adserver ck.php script to ensure that click-tracking is correctly performed.

Revive will also automatically add JS clickTAG parsing functionality from the URL if it finds a JS variable (with any value) in the uploaded banner:

<script>
...
var clickTag = '';
...
</script>
Edited by mmasmoudi
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...