> ## Documentation Index
> Fetch the complete documentation index at: /docs/llms.txt
> Use this file to discover all available pages before exploring further.

# AdMedia Integration Guide

> A step-by-step guide on how to integrate AdMedia to ClickFlare

![AdMedia Integration](https://mintcdn.com/clickflare/-hxylo6Vy01aj4op/images/integrations/covers/admedia.png?fit=max\&auto=format\&n=-hxylo6Vy01aj4op\&q=85\&s=3bc27bc61b39529efd65de0280336260)

Thanks to ClickFlare's API integration with AdMedia, you'll be able to have conversions and revenue pulled automatically into ClickFlare.

The revenue and conversions are pulled with a frequency of every hour for 3 days, from the moment that the conversion happens. So you're assured to have the most up-to-date revenue.

In this article, we'll go over the step-by-step process of setting up the integration with AdMedia.

**What you'll need for the integration:**

* An active ClickFlare Account.
* An active AdMedia Account.
* Your AdMedia authentication details (AID and Auth)

**Adding the AdMedia integration to ClickFlare**.

To add AdMedia integration to your ClickFlare account, begin by accessing the **Integrations Menu,** found in the *left sidebar Menu.*

* Under *RSOC*, click **Add Integration.**

![Under RSOC, click Add Integration](https://mintcdn.com/clickflare/KMcStLNr08QQtIjN/images/help-center/05-integrations/05-rsoc-integrations/15-admedia-integration-guide-01.png?fit=max\&auto=format\&n=KMcStLNr08QQtIjN\&q=85\&s=26f8cbaa6d638707fa8f33f108ab1e70)

![Under RSOC, click Add Integration (2)](https://mintcdn.com/clickflare/KMcStLNr08QQtIjN/images/help-center/05-integrations/05-rsoc-integrations/15-admedia-integration-guide-02.png?fit=max\&auto=format\&n=KMcStLNr08QQtIjN\&q=85\&s=42848bfc6214f585d06e12bc93b2fddb)

* Choose the AdMedia template
* Give your new integration a **Name**.

> [!NOTE]
>
> Note: Have your AdMedia authentication info ready before proceeding to connect it with ClickFlare.

* Under Accounts, click on **+ Connect Account.**
* Enter the account name, auth key, and click on **Save.**
* Move on to choosing the **custom conversion** you want to attribute the conversion event to.

  To learn how to add a custom conversion in ClickFlare, follow our article [here](/docs/en/settings/custom-conversions.md).

![To learn how to add a custom conversion in ClickFlare, follow our article here](https://mintcdn.com/clickflare/KMcStLNr08QQtIjN/images/help-center/05-integrations/05-rsoc-integrations/15-admedia-integration-guide-03.png?fit=max\&auto=format\&n=KMcStLNr08QQtIjN\&q=85\&s=c6736a5a9ac480d31d471b1f9ca8c284)

> [!NOTE]
>
> Note: In order for the integration to work, you have to send the **\{cf\_click\_id}** to the "**click\_id**" parameter (check the offer URL example below). That's why you're not giving the option to choose a subid, like for other Feeds.

* Lastly, click on **Save.**

  You’ll see the new integration appear under the Revenue Stream Integrations section.

**Offer URL template for AdMedia:**

This is how your AdMedia offer URL will look:

`https://7metasearcher.com/rdr.php?pubid=publisher_ID&q=KEYWORD&channel=CHANNEL_ID&click_id=cf_click_id`

> [!NOTE]
>
> Important Note: It's crucial to append "\&click\_id=\{cf\_click\_id}" to your offer URL. If you fail to do so, your postbacks will not fire, and ClickFlare will not pull any revenue from AdMedia

**Postback template for AdMedia**

Remember to include a postback in AdMedia to ensure correct tracking. Below are the postback templates for the "search" and "click" events:

Search:

```text theme={null}
https://your_tracking_domain.com/cf/cv?click_id=click_id&txid={timestamp}&param1={keyword}&param10={channel}&ct=search
```

Click

```text theme={null}
https://your_tracking_domain.com/cf/cv?click_id=click_id&txid={timestamp}&param1={keyword}&param10={channel}&ct=click
```

> [!NOTE]
>
> Important Note: Make sure to pass the *channel* information under param10. If you fail to do so, ClickFlare will not be able to pull the revenue.

> [!NOTE]
>
> Note: using the above postbacks assumes that you have already added the [custom conversions](/docs/en/settings/custom-conversions.md) for the events "search" and "click". If you haven't, you should add the event as shown in the image below:

![Note: using the above postbacks assumes that you have already added the custom conversions for the events "search" and…](https://mintcdn.com/clickflare/KMcStLNr08QQtIjN/images/help-center/05-integrations/05-rsoc-integrations/15-admedia-integration-guide-04.png?fit=max\&auto=format\&n=KMcStLNr08QQtIjN\&q=85\&s=863ffe6a925be4e067ed754d021ca985)

### Related Resources:

* [About RSOC](/docs/en/integrations/about-rsoc.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.