openapi: 3.0.3 info: version: 5.13.0 title: Pinterest Conversion API description: This is the description of your API. contact: name: Pinterest, Inc. url: https://developers.pinterest.com/ license: name: MIT url: https://spdx.org/licenses/MIT termsOfService: https://developers.pinterest.com/terms/ servers: - url: https://api.pinterest.com/v5 tags: - name: Conversion paths: /ad_accounts/{ad_account_id}/conversion_tags: get: summary: Get conversion tags description: List conversion tags associated with an ad account. operationId: conversion_tags/list security: - pinterest_oauth2: - ads:read x-ratelimit-category: ads_read parameters: - $ref: '#/components/parameters/path_ad_account_id' - $ref: '#/components/parameters/query_filter_deleted' responses: '200': content: application/json: schema: $ref: '#/components/schemas/ConversionTagListResponse' description: Success default: content: application/json: schema: $ref: '#/components/schemas/Error' description: Unexpected error tags: - Conversion x-sandbox: disabled post: x-sandbox: disabled summary: Create conversion tag description: 'Create a conversion tag, also known as Pinterest tag, with the option to enable enhanced match.
The Pinterest Tag tracks actions people take on the ad account s website after they view the ad account''s ad on Pinterest. The advertiser needs to customize this tag to track conversions. For more information, see: Set up the Pinterest tag Pinterest Tag Enhanced match' operationId: conversion_tags/create security: - pinterest_oauth2: - ads:write x-ratelimit-category: ads_write parameters: - $ref: '#/components/parameters/path_ad_account_id' requestBody: content: application/json: schema: $ref: '#/components/schemas/ConversionTagCreate' description: Conversion Tag to create required: true responses: '200': content: application/json: schema: $ref: '#/components/schemas/ConversionTagResponse' description: Success default: content: application/json: schema: $ref: '#/components/schemas/Error' description: Unexpected error tags: - Conversion /ad_accounts/{ad_account_id}/conversion_tags/ocpm_eligible: get: summary: Get Ocpm eligible conversion tags description: Get Ocpm eligible conversion tag events for an ad account. security: - pinterest_oauth2: - ads:read x-ratelimit-category: ads_read operationId: ocpm_eligible_conversion_tags/get parameters: - $ref: '#/components/parameters/path_ad_account_id' x-sandbox: disabled responses: '200': description: Success content: application/json: schema: $ref: '#/components/schemas/ConversionTagsOcpmEligibleResponse' default: description: Unexpected errors content: application/json: schema: $ref: '#/components/schemas/Error' tags: - Conversion /ad_accounts/{ad_account_id}/conversion_tags/page_visit: get: summary: Get page visit conversion tags description: Get all page visit conversion tag events for an ad account. operationId: page_visit_conversion_tags/get security: - pinterest_oauth2: - ads:read x-ratelimit-category: ads_read x-sandbox: disabled parameters: - $ref: '#/components/parameters/path_ad_account_id' - $ref: '#/components/parameters/query_page_size' - $ref: '#/components/parameters/query_order' - $ref: '#/components/parameters/query_bookmark' responses: '200': content: application/json: schema: allOf: - $ref: '#/components/schemas/Paginated' - type: object properties: items: type: array items: $ref: '#/components/schemas/ConversionEventResponse' description: Success default: content: application/json: schema: $ref: '#/components/schemas/Error' description: Unexpected error tags: - Conversion /ad_accounts/{ad_account_id}/conversion_tags/{conversion_tag_id}: get: x-sandbox: disabled summary: Get conversion tag description: Get information about an existing conversion tag. operationId: conversion_tags/get security: - pinterest_oauth2: - ads:read x-ratelimit-category: ads_read parameters: - $ref: '#/components/parameters/path_ad_account_id' - $ref: '#/components/parameters/path_conversion_tag_id' responses: '200': content: application/json: schema: $ref: '#/components/schemas/ConversionTagResponse' description: Success default: content: application/json: schema: $ref: '#/components/schemas/Error' description: Unexpected error tags: - Conversion components: parameters: query_page_size: name: page_size description: Maximum number of items to include in a single page of the response. See documentation on Pagination for more information. in: query required: false schema: type: integer minimum: 1 maximum: 250 default: 25 path_conversion_tag_id: description: Id of the conversion tag. in: path example: '2617998078212' explode: false name: conversion_tag_id required: true schema: pattern: ^\d+$ maxLength: 18 type: string style: simple query_bookmark: name: bookmark description: Cursor used to fetch the next page of items in: query required: false schema: type: string query_filter_deleted: name: filter_deleted description: Filter out deleted tags. in: query required: false schema: type: boolean example: true default: false path_ad_account_id: name: ad_account_id description: Unique identifier of an ad account. in: path required: true schema: type: string pattern: ^\d+$ maxLength: 18 query_order: description: 'The order in which to sort the items returned: ASCENDING or DESCENDING by ID. Note that higher-value IDs are associated with more-recently added items.' in: query name: order required: false schema: type: string example: ASCENDING enum: - ASCENDING - DESCENDING schemas: EntityStatus: type: string description: Entity status example: ACTIVE enum: - ACTIVE - PAUSED - ARCHIVED - DRAFT - DELETED_DRAFT EnhancedMatchStatusType: description: The enhanced match status of the tag enum: - UNKNOWN - NOT_VALIDATED - VALIDATING_IN_PROGRESS - VALIDATION_COMPLETE - null example: VALIDATION_COMPLETE nullable: true title: EnhancedMatchStatusType type: string ConversionEventResponse: title: ConversionEventResponse type: object properties: conversion_event: type: string $ref: '#/components/schemas/ConversionTagType' conversion_tag_id: title: conversion_tag_id description: Id of the tag. type: string pattern: ^\d+$ example: '2614324385652' ad_account_id: title: ad_account_id description: Id of the ad account. type: string pattern: ^\d+$ example: '549757463328' created_time: title: created_time description: Creation date in epoch format. type: integer example: 1564768710 Error: title: Error type: object properties: code: type: integer message: type: string required: - code - message ConversionTagType: title: ConversionTagType description: conversion tag type type: string enum: - PAGE_LOAD - UNKNOWN - INITIALIZED - PAGE_VISIT - SIGNUP - CHECKOUT - CUSTOM - VIEW_CATEGORY - SEARCH - ADD_TO_CART - WATCH_VIDEO - LEAD - APP_INSTALL - WEB_SESSION - EXTERNAL_MEASUREMENT example: PAGE_LOAD ConversionTagResponse: type: object allOf: - $ref: '#/components/schemas/ConversionTagCommon' title: ConversionTagResponse ConversionTagListResponse: type: object properties: items: type: array items: $ref: '#/components/schemas/ConversionTagResponse' ConversionTagCommon: type: object properties: ad_account_id: description: Ad account ID. example: '549755885175' title: ad_account_id type: string code_snippet: description: Tag code snippet. example: