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

# MGID

> Adding MGID's Cost Integration

Thanks to ClickFlare's API integration with MGID, you'll be able to track the cost of your campaigns, content, and widgets (publishers) directly from ClickFlare, making their tracking and optimization easier than ever before.

In this article, we'll go over the step-by-step process of setting up the API Cost Integration with MGID.

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

* An active MGID Account
* An active ClickFlare Account
* Your MGID Credentials

Begin the process by:

1. Go to the **Integrations** tab.
2. In the *Cost Tracking Integrations* section, click on **Add Integration**.

   <img src="https://mintcdn.com/clickflare/HWEFUWc8ESwPCjai/images/help-center/05-integrations/02-cost-tracking-integrations/09-mgid-01.png?fit=max&auto=format&n=HWEFUWc8ESwPCjai&q=85&s=eecb8f3c7d31e62278955e4cab64eb31" alt="In the Cost Tracking Integrations section, click on Add Integration" width="1902" height="678" data-path="images/help-center/05-integrations/02-cost-tracking-integrations/09-mgid-01.png" />
3. Select **MGID**

   <img src="https://mintcdn.com/clickflare/HWEFUWc8ESwPCjai/images/help-center/05-integrations/02-cost-tracking-integrations/09-mgid-02.png?fit=max&auto=format&n=HWEFUWc8ESwPCjai&q=85&s=90e82b901c80356b7756020258abd3b6" alt="MGID" width="1598" height="763" data-path="images/help-center/05-integrations/02-cost-tracking-integrations/09-mgid-02.png" />
4. Paste the **Email,** **Password, Client API ID,** and **Access Token** of your MGID account, and select a Timezone.

   <img src="https://mintcdn.com/clickflare/HWEFUWc8ESwPCjai/images/help-center/05-integrations/02-cost-tracking-integrations/09-mgid-03.png?fit=max&auto=format&n=HWEFUWc8ESwPCjai&q=85&s=e2fd0ea2146ea957a18afce7288ab304" alt="Paste the Email, Password, Client API ID, and Access Token of your MGID account, and select a Timezone" width="789" height="476" data-path="images/help-center/05-integrations/02-cost-tracking-integrations/09-mgid-03.png" />

   <Info>
     **Note**: Make sure to select the same timezone you have on MGID. Failing to do so may result in cost discrepancies.
   </Info>

<img src="https://mintcdn.com/clickflare/HWEFUWc8ESwPCjai/images/help-center/05-integrations/02-cost-tracking-integrations/09-mgid-04.png?fit=max&auto=format&n=HWEFUWc8ESwPCjai&q=85&s=58fbf39002229a4134249bbda40dffd2" alt="Note: Make sure to select the same timezone you have on MGID. Failing to do so may result in cost discrepancies" width="1879" height="633" data-path="images/help-center/05-integrations/02-cost-tracking-integrations/09-mgid-04.png" />

<img src="https://mintcdn.com/clickflare/HWEFUWc8ESwPCjai/images/help-center/05-integrations/02-cost-tracking-integrations/09-mgid-05.png?fit=max&auto=format&n=HWEFUWc8ESwPCjai&q=85&s=fb161ae314cc2c074c4027e2b37592d8" alt="Note: Make sure to select the same timezone you have on MGID. Failing to do so may result in cost discrepancies (2)" width="1085" height="519" data-path="images/help-center/05-integrations/02-cost-tracking-integrations/09-mgid-05.png" />

***

Optional Step - Specify the traffic source you want to assign to this cost integration
to.

<img src="https://mintcdn.com/clickflare/HWEFUWc8ESwPCjai/images/help-center/05-integrations/02-cost-tracking-integrations/09-mgid-06.png?fit=max&auto=format&n=HWEFUWc8ESwPCjai&q=85&s=96020ec0ddcd5696e0fd1a97f7962895" alt="MGID (2)" width="1618" height="1128" data-path="images/help-center/05-integrations/02-cost-tracking-integrations/09-mgid-06.png" />

You can skip this step if you want. You can always add the cost integration later on, directly from the traffic source.

<Info>
  **Important note:** Make sure to select the correct traffic source. Adding the cost integration to the wrong traffic source may result in not having the cost pulled at all inside ClickFlare.
</Info>

✅ Congratulations, you’ve just finalized the cost integration of **MGID** in **ClickFlare**. From now on, you’ll be able to see the cost of your campaigns directly from ClickFlare.
