> For the complete documentation index, see [llms.txt](https://docs.2checkout.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.2checkout.com/affiliate-network/affiliate-network/how-do-i-add-custom-categories-for-affiliates.md).

# How do I add custom categories for affiliates?

## Overview

Add and manage multiple custom categories for standalone affiliates or for batches of accounts, and use classifications to filter recipients of newsletter campaigns.

## Requirements&#x20;

This functionality is available only for active affiliate accounts from the [2Checkout Affiliate Network](https://secure.avangate.com/cpanel/affiliates.php).

{% hint style="danger" %}
**Important!** Use UTF-8 character encoding when creating and saving the CSV file with custom categories for your affiliates.
{% endhint %}

## How do I add custom categories and assign affiliates to them?

{% stepper %}
{% step %}

#### Open Active Relationships and add categories

* Navigate to [*Active Relationships*](https://secure.avangate.com/cpanel/relationships.php) under *Relationships* for the *Affiliate network*.
* Click **Add categories**.
  {% endstep %}

{% step %}

#### Download the CSV

* Download a list of all your active affiliates as a Comma Separated Values (CSV) file.
  {% endstep %}

{% step %}

#### Fill in categories in the CSV

* Under the header **Categories**, fill in one or multiple categories. Example:

| Not editable |             |               | Editable            |
| ------------ | ----------- | ------------- | ------------------- |
| IdAffiliate  | CompanyName | Homepage      | Categories          |
| 12344        | Affiliate   | Affiliate.com | Premium,Europe,XaaS |

{% hint style="danger" %}
**Important!** Use UTF-8 character encoding.
{% endhint %}

{% hint style="info" %}
The import process takes into account only data marked as editable in the table above. 2Checkout uses the remaining information to identify affiliates and does not import any changes you make to the values marked as not editable.
{% endhint %}

**Best practice**: When assigning an affiliate to multiple categories, make sure the CSV file includes inverted commas (") to mark the lists as a single value:

* IdAffiliate,CompanyName,Homepage,Categories
* 1234,Affiliate,Affiliate.com,"Premium,Europe,XaaS"
  {% endstep %}

{% step %}

#### Import the CSV

* Once you filled in custom categories in your CSV file, import it into the 2Checkout system.
* 2Checkout assigns the custom categories to your affiliates. You can access them:
  * By viewing the details page for a standalone affiliate.
  * By re-downloading the list of active affiliates following the steps above. The CSV file contains all custom categories you add to affiliates.
    {% endstep %}
    {% endstepper %}

## How do I manage/delete custom categories or unassigned affiliates?

1. Re-download the list of active affiliates following the steps above. The CSV file contains all custom categories you add to affiliates.
2. You can modify existing categories or add new ones and re-upload the resulting file.&#x20;

   <div data-gb-custom-block data-tag="hint" data-style="danger" class="hint hint-danger"><p><strong>Important!</strong> Use UTF-8 character encoding.</p></div>
3. To unassign affiliates from certain categories, simply delete the categories and re-import the file.

## Can I manage custom categories individually?

1. View the details page for standalone affiliate.
2. Click the red **X** to delete a category.
3. Use the **add category** field to add new categories. Don't forget to save any of the changes you make and separate multiple values with commas (,).

## How do I target specific affiliates when I send out newsletters?

1. Navigate to the [Affiliate Newsletter Management](https://secure.avangate.com/cpanel/affiliates_newsletter.php) area.
2. Select one or multiple categories of affiliates who will receive a newsletter from the **Category** field under **Compose Newsletter**. All custom categories you add into 2Checkout are available under this filter.

2Checkout sends out your newsletter only to affiliates assigned to the custom categories you select.


---

# 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 dynamically by asking a question.

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

```
GET https://docs.2checkout.com/affiliate-network/affiliate-network/how-do-i-add-custom-categories-for-affiliates.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 `build a script that syncs our docs to a CMS` 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.
