Digital Governance
cancel
Showing results for 
Search instead for 
Did you mean: 

FAQs for DG

Ad Notice 2.0 FAQ: How do you Over-ride the Notice Position from the Tag?

How do you Over-ride the Notice Position from the Tag?

If you have a particular creative or campaign where the notice should appear in a different location than the original location that was set up for the notice, you can over-ride the location by passing in a value in the tag itself. The value to add to the JavaScript tag is position, and the accepted values are top-right, top-left, bottom-right, and bottom-left. To do this, you edit the tag to include the position variable. So if the notice generated by the tag console looked like:

<!--
Evidon tag
Campaign: ACME Corp: Coyote Campaign
Ad Size: 300x250
-->
<script type="text/javascript" src="http://c.evidon.com/durly.js#;ad_w=300;ad_h=250;coid=242;nid=20"></script>

You would edit it to instead look like:

<!--
Evidon tag
Campaign: ACME Corp: Coyote Campaign
Ad Size: 300x250
-->
<script type="text/javascript" src="http://c.evidon.com/durly.js#;ad_w=300;ad_h=250;coid=242;nid=20;position=top-left;"></script>

If you are using the ActionScript version of the tags, the variable name is "pos" to over-ride the positioning. Here are examples of the ActionScript tags, with the positioning variable included: 


ActionScript 3 Template:

import flash.display.Loader;
import flash.events.Event;
Security.allowDomain("http://c.evidon.com");
var EvidonNoticeParamsSmiley Surprisedbject = {cid:"<Company ID>", nid:"<Notice ID>", pos: "top-left", width: stage.width, height: stage.height, grad: 70};
var EvidonNoticeLoader:Loader = new Loader();
EvidonNoticeLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, EvidonNoticeLoaded);
EvidonNoticeLoader.load(new URLRequest("http://c.evidon.com/geo/f3/n.swf"));
function EvidonNoticeLoaded(e:Event) {
addChild(EvidonNoticeLoader);
MovieClip(EvidonNoticeLoader.getChildAt(0)).init(EvidonNoticeParams);
}

ActionScript 2 Template:

_root.createEmptyMovieClip("evidonNotice", this.getNextHighestDepth());
evidonLoader = new MovieClipLoader();
evidonLoader.loadClip("http://c.evidon.com/geo/f2/n.swf?cid=<Company ID>&nid=<Notice ID>&pos=top-left&opacity=80", "evidonNotice");

 

Labels (2)
Version history
Revision #:
1 of 1
Last update:
‎04-18-2019 01:16 PM
Updated by:
 
Contributors
Looking for more?
Ask in Discussions
Developers

Peer-to-peer support  and answers on developing CMS templates, modifying privacy scripts or building integrations.

Digital Experience Management

Find answers and ask questions on content management, personalization and targeting.

Digital Quality Management

Find answers and ask questions on WCAG and SEO quality management.

Digital Governance

Find answers and ask questions on consent and monitoring solutions.