> ## Documentation Index
> Fetch the complete documentation index at: https://clickflare.com/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

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

<img src="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" alt="Under RSOC, click Add Integration" width="255" height="342" data-path="images/help-center/05-integrations/05-rsoc-integrations/15-admedia-integration-guide-01.png" />

<img src="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" alt="Under RSOC, click Add Integration (2)" width="1629" height="184" data-path="images/help-center/05-integrations/05-rsoc-integrations/15-admedia-integration-guide-02.png" />

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

<Info>
  Note: Have your AdMedia authentication info ready before proceeding to connect it with ClickFlare.
</Info>

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

<img src="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" alt="To learn how to add a custom conversion in ClickFlare, follow our article here" width="817" height="397" data-path="images/help-center/05-integrations/05-rsoc-integrations/15-admedia-integration-guide-03.png" />

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

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

<Info>
  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
</Info>

**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:

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

Click

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

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

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

<img src="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" alt="Note: using the above postbacks assumes that you have already added the custom conversions for the events &#x22;search&#x22; and…" width="1154" height="254" data-path="images/help-center/05-integrations/05-rsoc-integrations/15-admedia-integration-guide-04.png" />

### Related Resources:

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