Upload members to a Customer Match audience by sending an
[`IngestAudienceMembersRequest`](https://developers.google.com/data-manager/api/reference/rest/v1/audienceMembers/ingest).

To configure and send the request, complete the following steps:

1. Set the `termsOfService` field to a
   [`TermsOfService`](https://developers.google.com/data-manager/api/reference/rest/v1/audienceMembers/ingest#termsofservice)
   message with `customerMatchTermsOfServiceStatus` set to `ACCEPTED` to
   confirm that the `operatingAccount` accepted the
   [Customer Match terms of service](https://support.google.com/adspolicy/answer/6299717).

2. On each [`AudienceMember`](https://developers.google.com/data-manager/api/reference/rest/v1/AudienceMember) in the
   `audienceMembers` list, set the data field based on the type of data the
   upload contains:

   - If the upload contains contact information, set the
     `compositeData` field to a
     [`CompositeData`](https://developers.google.com/data-manager/api/reference/rest/v1/AudienceMember#compositedata) object, and
     set its `userData` field to a [`UserData`](https://developers.google.com/data-manager/api/reference/rest/v1/UserData)
     object. Add a separate entry in the `userIdentifiers` list for each
     identifier for the audience member.

     While `https://developers.google.com/data-manager/api/reference/rest/v1/AudienceMember#FIELDS.user_data`
     is still supported, we recommend using
     `https://developers.google.com/data-manager/api/reference/rest/v1/AudienceMember#FIELDS.composite_data`
     to ensure your integration is prepared for future improvements. See [Composite
     data](https://developers.google.com/data-manager/api/devguides/audiences/send-audience-members#composite-data) for details.

     <br />

   - If the upload contains mobile IDs, set the `mobileData` field to a
     [`MobileData`](https://developers.google.com/data-manager/api/reference/rest/v1/MobileData) message.
     Add a separate entry in the `mobileIds` list for each mobile ID for the
     audience member.

3. Send Customer Match data using the steps in
   [Send audience members](https://developers.google.com/data-manager/api/devguides/audiences/send-audience-members).

## Sample audience members

The following examples show how to structure an
[`AudienceMember`](https://developers.google.com/data-manager/api/reference/rest/v1/AudienceMember) object for each type of member
data. Every `AudienceMember` in a single request must have the
[same type of ID data](https://developers.google.com/data-manager/api/reference/rest/v1/AudienceMember#FIELDS.oneof_data) set
(`compositeData`, `mobileData`):

### Contact information

    {
      "compositeData": {
        "userData": {
          "userIdentifiers": [
            {
              "emailAddress": "07e2f1394b0ea80e2adca010ea8318df697001a005ba7452720edda4b0ce57b3"
            },
            {
              "phoneNumber": "59d82f53a4fb9f3a3cd16e8b92bc41908db7a8bc3c90e292ef99fe19260292d1"
            }
          ]
        }
      }
    }

### Mobile IDs

    {
      "mobileData": {
        "mobileIds": [
          "123e4567-e89b-12d3-a456-426614174000"
        ]
      }
    }