back to all technical resources

In cases where an HTML ad has associated content, Impact can host images, JavaScript and/or CSS files. Hosting on Impact offers the ability to make changes to ads without additional internal technical resources.

Prerequisites:

Prior to uploading the files, verify that

1. the HTML contains at least one absolute link (landing page):

<a href=”http://test.com”>

2. several dynamic tokens are available in table format in the UI

Upload files

Under Update Files, click Choose Files and upload all the files referenced in the HTML. Once the files are uploaded, the HTML will update to include a new {file:} token for each file. For example, image.png will update to {file:image.png} .

Note: Only Images, JavaScript, CSS and font files are permitted for uploading. The max file size is 1MB for all file types.

Tip: To upload multiple files on a Mac, hold down the Command Key (⌘) when selecting files.

Content Ads Examples

Example 1

<script id="widget123" affiliate-link="http://campaign.7eer.net/c/{irpid}/{iradid}/{ircid}" src="http://www.Mysite.com/widget-ir.js?size=120x60"
type="text/javascript">

When a partner logs into their Impact account and pulls the ad code, the affiliate links populate with unique IDs. For example:

<script id="widget123" affiliate-link="http://campaign.7eer.net/c/111111/222222/333" src="http://www.mysite.com/widget-ir.js?size=120x60"
type="text/javascript">

The script creates an ad enabling you to select or enter text. On click (submit), you are redirected to the advertiser’s page using the tracking link for this specific partner (extracted from the affiliate-link parameter in the ad). For example, if you want to redirect the user to:

http://advertiser.com?parameter1=value1parameter2=value2

Upon click, the redirect should be:

http://campaign.7eer.net/c/111111/222222/333?u=http:%3A%2F%2Fadvertiser.com?p.parameter1=value1&p.parameter2=value2

Where value1 and value2 are the selections/text entered in the banner which need passed to the advertiser’s site as query string parameters.

Example 2

The code snippets below are examples of content ads.

<!--Start of content ad -->  <a id="myUniqueLinkId" target="_blank">Click here (updated via Javascript to http://test.com/?u=http%3A%2F%2Fgoogle.com)

<-- Place this in the content Ad --> 

<script type="text/javascript"> var clickTag = "http://test.com"; 

//Usually looks like this 

//var clickTag = "{domain}/c/{irpid}/{iradid}/{ircid}"; 

//

 //but for the demo we make it some absolute URL - test.com>

</script>

<!--<script type="text/javascript" src="ad_script.js"> --> 

<script> 

//this can either be inlined like this or loaded via the script tag above via ad_script.js 

var finalDestination = clickTag + "?u=" + "http%3A%2F%2Fgoogle.com"; 

document.getElementById("myUniqueLinkId").setAttribute('href',);> 

</script>

<!-- Needed for the Ads validator-->

<noscript><a href="http://example.com">Click here>

back to all technical resources