Quantcast
Channel: Advertising - Tumult Forums
Viewing all articles
Browse latest Browse all 198

The correct way of adding Adform clickTAG with Hype

$
0
0

@FakePilot wrote:

The correct way of adding clickTAG for Adform in Hype (v3):

Add this script to Head HTML:

<script src="http://s1.adform.net/banners/scripts/rmb/Adform.DHTML.js"></script>

To lower file size for restrictions, remove the full, thin and pie scripts from the exported HTML folder.
Upload the thin script to an external server of your choice. Link to it from Head HTML instead:

<script src="http://your.external.server/projectname/js/HYPE-XXX.thin.min.js"></script>

Create a Rectangle as a button over your scene with Opacity set to 0%. Add an Action on Mouse Click.
Run Javascript. Create a new function called clickTAG():

	function clickTAG(hypeDocument, element, event) {
		window.open(dhtml.getVar('clickTAG', 'https://www.yourlink.com'), 
		dhtml.getVar('landingPageTarget', '_blank')
		);
	}

Create a manifest.json file next to your banner. See more info about this on Adform here*.
Zip it. Upload to Adform. Done!

*Update: Fixed link.

Posts: 8

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 198

Trending Articles