> For the complete documentation index, see [llms.txt](https://help.impact.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.impact.com/brand/what-would-you-like-to-learn-about/platform-features/ads/manage-ads/test-a-dynamic-content-ad.md).

# 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.

{% stepper %}
{% step %}

## Share to partner account

1. From the left navigation menu, select ![](https://4048883401-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2Fgit-blob-230534471fef5f40808e921e41ee44e4a06ded03%2Fe6cb9548999afdc1ed3ce4942e4cb5b45b5cecbd323267aac2a7cd1915fccc09.svg?alt=media) **\[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**.

<div data-with-frame="true"><figure><img src="https://4048883401-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2FvvrhYMCmtKuUpvVMu6HD%2FScreenshot%202026-05-08%20at%2011.00.50.png?alt=media&amp;token=363283dd-5885-400d-a21e-b9bf06e308bf" alt="" width="375"><figcaption></figcaption></figure></div>
{% endstep %}

{% step %}

## 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.
     {% endstep %}

{% step %}

## Troubleshoot validation errors

You may see the following error messages when [creating or updating](https://help.impact.com/brand/what-would-you-like-to-learn-about/platform-features/ads/create-an-asset.md) 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=`. |
| {% endstep %}                     |                                                                                                                                                                                                    |
| {% endstepper %}                  |                                                                                                                                                                                                    |

## 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](#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`

<details>

<summary>Example code</summary>

```html
<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>
```

</details>

<details>

<summary>Dynamic token reference</summary>

| 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.            |

</details>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://help.impact.com/brand/what-would-you-like-to-learn-about/platform-features/ads/manage-ads/test-a-dynamic-content-ad.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
