---
title: "Create advertiser defined events"
method: POST
path: "/ad_accounts/{ad_account_id}/advertiser_defined_events"
tags: ["conversions"]
---

# Create advertiser defined events

`POST /ad_accounts/{ad_account_id}/advertiser_defined_events`

Map advertiser defined events to standard events for the given ad account.

## Path parameters

- `ad_account_id` string, required

## Request body

- AdvertiserDefinedEventsCreateRequest — Request body for creating or updating advertiser defined events
  - `items` AdvertiserDefinedEventInput[], required — List of advertiser defined events to create or update
    - `mapped_conversion_type` 'SIGNUP' | 'ADD_TO_CART' | 'LEAD' | 'CHECKOUT' | 'SUBSCRIBE' | 'ADD_TO_WISHLIST' | 'ADD_PAYMENT_INFO' | 'INITIATE_CHECKOUT' | 'CONTACT' | 'CUSTOMIZE_PRODUCT' | 'FIND_LOCATION' | 'SCHEDULE' | 'SUBMIT_APPLICATION' | 'START_TRIAL' | 'PAGE_VISIT' | 'VIEW_CATEGORY' | 'VIEW_CONTENT' | 'SEARCH' | 'WATCH_VIDEO', required — Pinterest standard event types that a custom event can be mapped to. Restricted to event types that are valid ads optimization goals.
    - `name` string, required — Raw string name of the event

## Response `200`

The request has succeeded.

- object
  - `items` AdvertiserDefinedEventProcessingRecord[], required
    - `exceptions` string[] — List of exception messages if the operation failed
    - `name` string, required — Name of the advertiser defined event
    - `status` string, required — Processing status (success or failure)

## Other responses

- `400` — The request could not be understood by the server due to unexpected data.
- `401` — Authentication is required and has either failed or not been provided.
- `403` — The request was valid, but the server is refusing action. The user might not have the necessary permissions for a resource.
- `404` — The requested resource could not be found on this server.
- `429` — The user has sent too many requests in a given amount of time and is being rate limited.
- `default` — An unexpected error response.

---

[API](https://skmtc.net/pinterest/apis/pinterest-rest-api.md) · [All operations](https://skmtc.net/pinterest/apis/pinterest-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/pinterest/pinterest-rest-api/revisions/b698c180678a/schema)
