> Markdown versions of all pages of this connector library are available by appending `.md` to the page URL. For the full index of connectors, see [llms.txt](https://connectors.appmixer.com/llms.txt).

# appmixer.facebookbusiness.marketing.RemoveMembersInCSVFromAudience

- Component: `appmixer.facebookbusiness.marketing.RemoveMembersInCSVFromAudience`
- Kind: Action
- Version: 1.0.0
- Visibility: Public
- Connector: [appmixer.facebookbusiness 3.1.3](https://connectors.appmixer.com/connector/appmixer.facebookbusiness/3.1.3.md)
- Component page: <https://connectors.appmixer.com/connector/appmixer.facebookbusiness/3.1.3/component/appmixer.facebookbusiness.marketing.RemoveMembersInCSVFromAudience>

Remove customers in a CSV file from a custom audience.

## Input ports

### Port `in`

| Field | Type | Description |
| --- | --- | --- |
| Account ID (`accountId`) | select | Enter your Ad Account ID. |
| Custom Audience ID (`audienceId`) | select | Enter your Custom Audience ID. |
| File ID (`fileId`) | filepicker | Select a file or use a File ID returned from a previous step. |
| Schema (`schema`) | expression | Specify what type of information you will provide in the CSV file. The order of the columns is not important. |
| CSV Delimiter (`delimiter`) | text | The character used to separate the columns in the CSV file. Default is comma (,). |

## Output ports

### Port `out`

| Field | Type | Description |
| --- | --- | --- |
| Audience ID (`audience_id`) | string | - |
| Account ID (`account_id`) | string | - |
| Invalid Entry Samples (`invalid_entry_samples`) | array | - |
| Number of Invalid Entries (`num_invalid_entries`) | integer | - |
| Number of Entries (`num_total_entries`) | integer | - |

## Full metadata (component.json)

```json
{
  "name": "appmixer.facebookbusiness.marketing.RemoveMembersInCSVFromAudience",
  "author": "Appmixer <info@appmixer.com>",
  "description": "Remove customers in a CSV file from a custom audience.",
  "auth": {
    "service": "appmixer:facebookbusiness",
    "scope": [
      "ads_management"
    ]
  },
  "quota": {
    "manager": "appmixer:facebookbusiness",
    "resources": "requests",
    "scope": {
      "userId": "{{userId}}"
    }
  },
  "inPorts": [
    {
      "name": "in",
      "schema": {
        "type": "object",
        "properties": {
          "accountId": {
            "type": "string"
          },
          "audienceId": {
            "type": "string"
          },
          "fileId": {
            "type": "string"
          },
          "schema": {
            "type": "object"
          },
          "delimiter": {
            "type": "string"
          }
        },
        "required": [
          "audienceId",
          "fileId"
        ]
      },
      "inspector": {
        "inputs": {
          "accountId": {
            "type": "select",
            "label": "Account ID",
            "index": 1,
            "tooltip": "Enter your Ad Account ID.",
            "source": {
              "url": "/component/appmixer/facebookbusiness/marketing/GetAdAccounts?outPort=out",
              "data": {
                "properties": {
                  "isSource": true
                },
                "transform": "./GetAdAccounts#toSelectArray"
              }
            }
          },
          "audienceId": {
            "type": "select",
            "label": "Custom Audience ID",
            "index": 2,
            "tooltip": "Enter your Custom Audience ID.",
            "source": {
              "url": "/component/appmixer/facebookbusiness/marketing/GetCustomAudiences?outPort=out",
              "data": {
                "properties": {
                  "isSource": true
                },
                "transform": "./GetCustomAudiences#toSelectArray",
                "messages": {
                  "in/accountId": "inputs/in/accountId"
                }
              }
            }
          },
          "fileId": {
            "type": "filepicker",
            "index": 2,
            "label": "File ID",
            "tooltip": "Select a file or use a File ID returned from a previous step."
          },
          "schema": {
            "type": "expression",
            "levels": [
              "ADD"
            ],
            "index": 3,
            "label": "Schema",
            "tooltip": "Specify what type of information you will provide in the CSV file. The order of the columns is not important.",
            "fields": {
              "csvHeader": {
                "type": "text",
                "label": "CSV Header",
                "tooltip": "The name of the column in the CSV file. The column name is case insensitive."
              },
              "fbType": {
                "type": "select",
                "label": "Facebook Type",
                "tooltip": "The type of information in the column.",
                "options": [
                  {
                    "value": "EMAIL",
                    "label": "EMAIL (email address)"
                  },
                  {
                    "value": "PHONE",
                    "label": "PHONE (phone number)"
                  },
                  {
                    "value": "GEN",
                    "label": "GEN (gender - m|f)"
                  },
                  {
                    "value": "DOBY",
                    "label": "DOBY (birth year - YYYY)"
                  },
                  {
                    "value": "DOBM",
                    "label": "DOBM (birth month - MM - 01 to 12)"
                  },
                  {
                    "value": "DOBD",
                    "label": "DOBD (birthday - DD - 01 to 31)"
                  },
                  {
                    "value": "LN",
                    "label": "LN (last name)"
                  },
                  {
                    "value": "FN",
                    "label": "FN (first name)"
                  },
                  {
                    "value": "FI",
                    "label": "FI (first name initial)"
                  },
                  {
                    "value": "CT",
                    "label": "CT (city)"
                  },
                  {
                    "value": "ST",
                    "label": "ST (state - US 2-letter, Others lowercase)"
                  },
                  {
                    "value": "ZIP",
                    "label": "ZIP (zip code)"
                  },
                  {
                    "value": "COUNTRY",
                    "label": "COUNTRY (country code - 2-letter)"
                  },
                  {
                    "value": "MADID",
                    "label": "MADID (mobile advertiser ID)"
                  },
                  {
                    "value": "EXTERN_ID",
                    "label": "EXTERN_ID (your own ID)"
                  }
                ]
              }
            }
          },
          "delimiter": {
            "type": "text",
            "index": 4,
            "label": "CSV Delimiter",
            "defaultValue": ",",
            "tooltip": "The character used to separate the columns in the CSV file. Default is comma (,)."
          }
        }
      }
    }
  ],
  "outPorts": [
    {
      "name": "out",
      "options": [
        {
          "value": "audience_id",
          "label": "Audience ID",
          "schema": {
            "type": "string",
            "example": "23851234567890123"
          }
        },
        {
          "value": "account_id",
          "label": "Account ID",
          "schema": {
            "type": "string",
            "example": "act_123456789"
          }
        },
        {
          "value": "invalid_entry_samples",
          "label": "Invalid Entry Samples",
          "schema": {
            "type": "array",
            "example": []
          }
        },
        {
          "value": "num_invalid_entries",
          "label": "Number of Invalid Entries",
          "schema": {
            "type": "integer",
            "example": 0
          }
        },
        {
          "value": "num_total_entries",
          "label": "Number of Entries",
          "schema": {
            "type": "integer",
            "example": 150
          }
        }
      ]
    }
  ],
  "icon": "(data URI omitted)"
}
```
