For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to page URLs.
Skip to content
Starter EditionEssentials EditionPro EditionEnterprise Edition

Test a Dynamic Content Ad

After saving your content ad, you can test it to ensure the redirect path works as expected. The easiest way is to send the content ad to your test partner account.

1

Share to partner account

  1. From the left navigation menu, select [Engage] → Content → Ads.

  2. On the Ads screen, find your content ad in the list and select Share.

  3. On the Send Ads screen, find the Partner field and use the search box to add your test partner account.

  4. At the bottom of the screen, select Send Ads.

2

Test on partner account

  1. In a new browser (or incognito tab), sign in to your test partner account.

  2. From the top navigation menu, select Content → Assets.

  3. Select the ad and in the modal that appears, select Asset Code → Copy code.

    • In the code block, verify that your absolute link has changed into a tracking link.

3

Troubleshoot validation errors

You may see the following error messages when creating or updating your content ad. Here's what you can do to solve them:

Validation error
Explanation

“No replaceable links present”

impact.com cannot detect replaceable links in the Content field. Links must include protocol. Any links using http will be automatically converted to https.

“Ad name cannot be empty”

You must provide a name for your content ad in the Name field.

"URL on anchor is not absolute"

There's at least 1 link in Content that isn't absolute. Absolute links use the full path starting with http:// or https://. Check for syntax issues, such as spaces before or after href=.

Dynamic content ad example

In the Example code provided below, we have:

  • An HTML form with a textbox entry and "Submit" button

  • Embedded CSS to style the form independently of other content

  • A <div> container for the widget

  • JavaScript function that dynamically creates an impact.com tracking link and appends query string parameters

  • A <noscript> tag for the system to accept the script when it doesn’t have an outgoing link (Without this tag, we’d encounter an error when trying to upload this creative.)

    In practice, many of these elements can be hosted or embedded on your website—impact.com supports external HTML, CSS, and JavaScript files for dynamic content.

  • The JavaScript code generates a tracking URL using dynamic tokens and appends the search terms as query string parameters.

  • Since the content doesn’t have an absolute URL, we use {domain}, {irpid}, {iradid}, and {ircid} as dynamic tokens to generate a tracking link, which populates with the program’s tracking domain, partner ID, ad ID, and program ID values. See the dynamic token reference for every available token.

  • Once clicked, the customer will be routed through impact.com and then forwarded to the landing page—in this case, https://www.example.com

Example code
<style type="text/css">  
#search-widget-container 
{    font-family:"Verdana";
     padding:20px;     
     width:280px;    
     height:75px;
     margin:30px;
     background:#FFFFFF;
     border:1px solid #BBBDBF;
     border-radius:6px;
     box-shadow:5px 5px 2px rgba(0,0,0,0.1);   }   
     #submitbutton 
     {background:#fff;
     color:#3B91CF;
     font-weight:bold;
     font-size:12px;
     padding:5px:
     border-radius:6px;
     border:1px solid #3B91CF;
     cursor:pointer;   }   
    #submitbutton:hover {    
     background:#3B91CF;
     color:#fff;  }
     #searchbox {
      width:200px;
      margin:10px 10px 10px 0px;   }
</style>
<div id='search-widget-container'>
<img src="http://www.impactradius.com/wp-content/uploads/2014/05/impact-radius-logo.png" width="150px">  
<form><input name='searchTerm' 
   id='searchBox'
   type='text' 
   placeholder='Search The Website'>
    <input onClick="searchFunction()" 
     type='submit' 
     value='Submit'
     id='submitbutton'>
 </form>
</div>
<script type="text/javascript">
function searchFunction() {  
// Get the user-submitted value from the search box 
var searchTerm = document.getElementById("searchBox").value;  
var landingPage = "http://{domain}/c/{irpid}/{iradid}/{ircid}?p.searchTerm=";
// Append the searchTerm to the end of the landingPage
var completeURL = landingPage.concat(searchTerm);
// Send the customer to the complete final URL
window.location.href = completeURL;   } 
</script>
<noscript>
<a href=”http://www.example.com”>No script link</a>
</noscript>
Dynamic token reference
Token
Supported in
Description

{irpid}

Asset content / impression pixel

Populates with the partner's impact.com partner ID.

{iradid}

Asset content / impression pixel

Populates with the ad ID assigned to the ad.

{ircid}

Asset content / impression pixel

Populates with the impact.com program (or campaign) ID assigned to your program.

{subId1} - {subId3}

Asset content

Populates with the partner's SubId's value (used for tracking and reporting).

{sharedId}

Asset content

Populates with the partner's SharedId value for reporting.

{domain}

Asset content / impression pixel

Populates with the tracking domain for your program.

{timestamp}

Asset content

Populates with a timestamp (in Unix epoch format) when the ad is retrieved.

{randint}

Asset content / impression pixel

Populates with a randomly generated integer when the ad is retrieved.

Last updated

Was this helpful?