---
title: "Meta Ads Select"
method: PATCH
path: "/v2/credentials/{credential_id}/meta-ads/selection"
tags: ["v2 - Meta Ads"]
---

# Meta Ads Select

`PATCH /v2/credentials/{credential_id}/meta-ads/selection`

## Request

- Base URL: `https://api.jubjubapp.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.jubjubapp.com/v2/credentials/{credential_id}/meta-ads/selection`
- Auth: HTTP bearer

Save the ad account, Page, Instagram account and pixel this
connection publishes ads through. Owner only; checked live against
what the token can see so a foreign account cannot be named.

## Path parameters

- `credential_id` string, required

## Headers

- `Authorization` string
- `X-JubJub-Service-Key` string
- `X-JubJub-Agent-Key` string
- `X-JubJub-Platform-Key` string
- `Origin` string
- `Referer` string
- `X-JubJub-Trial-Token` string

## Request body

- SelectionRequest
  - `ad_account_id` string, required: act_<id> or the bare id
  - `page_id` string, nullable
  - `instagram_actor_id` string, nullable
  - `pixel_id` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/jubjubapp/apis/jubjub-api.md) - [All operations](https://skmtc.dev/jubjubapp/apis/jubjub-api/llms.txt) - [OpenAPI document](https://skmtc.dev/jubjubapp/apis/jubjub-api/revisions/353157b296f2?raw)
