{ "action": "request", "status": "error", "code": 101, "message": "Missing or incorrect parameters. Please verify with the docs. https://www.ayrshare.com/docs/apis", "details": "ratio is not a recognised field."}
{ "action": "request", "status": "error", "code": 101, "message": "Missing or incorrect parameters. Please verify with the docs. https://www.ayrshare.com/docs/apis", "details": "Creating a custom audience needs the Custom Audience terms accepted on ad account act_123456789. A person with a role on the account accepts them at https://business.facebook.com/ads/manage/customaudiences/tos/?act=123456789"}
{ "action": "ads", "status": "error", "code": 369, "message": "Unable to create the audience. Please try again.", "details": "Meta's reason"}
Facebook Ads
Створити аудиторію
Створіть користувацьку аудиторію Facebook з відвідувачів, залучених людей, lookalike чи списку клієнтів, щоб включати чи виключати її під час просування.
{ "action": "request", "status": "error", "code": 101, "message": "Missing or incorrect parameters. Please verify with the docs. https://www.ayrshare.com/docs/apis", "details": "ratio is not a recognised field."}
{ "action": "request", "status": "error", "code": 101, "message": "Missing or incorrect parameters. Please verify with the docs. https://www.ayrshare.com/docs/apis", "details": "Creating a custom audience needs the Custom Audience terms accepted on ad account act_123456789. A person with a role on the account accepts them at https://business.facebook.com/ads/manage/customaudiences/tos/?act=123456789"}
{ "action": "ads", "status": "error", "code": 369, "message": "Unable to create the audience. Please try again.", "details": "Meta's reason"}
Створює користувацьку аудиторію в рекламному акаунті Facebook. Підтримуються чотири типи, які обирають через type:
website: люди, яких піксель Meta зафіксував на вашому сайті.
engagement: люди, які взаємодіяли зі сторінкою Facebook, акаунтом Instagram або відео.
lookalike: люди, схожі на аудиторію, яка у вас уже є.
customerList: ваш власний список людей, який ви наповнюєте хешованими ідентифікаторами через Учасники аудиторії.
Нова аудиторія повертається в audience у тому самому форматі, що й в Аудиторіях, зі status.ready: false. Meta наповнює її протягом наступних годин; отримайте список, щоб побачити, коли status.ready стане true, а потім використовуйте її id в targeting.audiences або targeting.excludedAudiences, коли просуваєте допис.
Перш ніж створювати чи використовувати будь-яку аудиторію, людина з роллю в рекламному акаунті має один раз прийняти умови Custom Audience від Meta за адресою https://business.facebook.com/ads/manage/customaudiences/tos/?act=<ad account id>. Ayrshare не може прийняти їх за вас. Доти цей endpoint повертає 400 з code: 101, а details називає акаунт і сторінку, де приймають умови. Рекламні акаунти показують у tosAccepted.customAudienceTos, чи прийнято умови.
Meta не дозволяє схожі аудиторії в рекламі житла, працевлаштування або фінансових послуг. Просування в одній із цих спеціальних категорій реклами може включати або виключати аудиторії сайту, взаємодії та списку клієнтів, але не схожу аудиторію.
Параметри заголовка
Параметри тіла запиту
Кожен type приймає такі параметри:
string
обов'язково
Рекламний акаунт, у якому створюється аудиторія, з рекламних акаунтів, з префіксом act_ або без нього.
string
обов'язково
Назва, що відображається в Ads Manager.
string
обов'язково
website, engagement, lookalike або customerList. Кожен тип приймає лише власні поля, наведені нижче. Поле іншого типу повертає 400 з code: 101, що називає це поле.
string
Нове унікальне значення, наприклад UUID, для кожної нової аудиторії. Якщо ви повторите запит із тим самим ключем, Ayrshare поверне першу відповідь із позначкою idempotentReplayed: true і не створить другу аудиторію. Ключ можна натомість надіслати в заголовку Idempotency-Key; якщо надсилаєте обидва, вони мають збігатися. Повторне використання ключа з іншим запитом або поки перший запит ще виконується повертає 409. 503 означає, що ключ не вдалося зарезервувати і нічого не створено: повторіть спробу пізніше з тим самим ключем.
Аудиторії сайту
string
обов'язково
Піксель Meta, події якого формують аудиторію.
number
обов'язково
Скільки днів відвідувач залишається в аудиторії після останнього візиту, від 1 до 180.
array
Враховувати лише візити на URL, що містять один із цих рядків, наприклад ["/pricing"].
string
Враховувати лише відвідувачів, які викликали цю подію пікселя, наприклад Purchase або назву власної події. Не вказуйте, щоб рахувати кожен візит.
Аудиторії взаємодії
string
обов'язково
Де відбулася взаємодія: page (сторінка Facebook), instagram (акаунт Instagram) або video.
array
обов'язково
Ідентифікатори сторінок, акаунтів Instagram або відео, на яких рахується взаємодія, у вигляді рядків.
string
обов'язково
Врахована взаємодія. Значення є власними назвами Meta, і вони залежать від source:
Будь-яке інше значення повертає 400 з code: 101 і переліком значень для цього джерела.
number
обов'язково
Скільки днів людина залишається в аудиторії після останньої взаємодії: від 1 до 730 для page та instagram, від 1 до 365 для video.
Схожі аудиторії
string
обов'язково
Аудиторія, на яку мають бути схожі люди, з Аудиторій. Meta потрібно щонайменше 100 людей у ній.
number
обов'язково
Розмір схожої аудиторії як цілий відсоток людей у країнах, на які таргетується просування: від 1 (найближча відповідність) до 20 (найширше охоплення).
boolean
Дозволяє Meta брати вихідних людей з інших країн, коли в країні їх замало. За замовчуванням false.
Схожа аудиторія не має власної країни: люди беруться з країн, указаних у targeting.locations просування. Надсилання country повертає 400 з code: 101. Meta наповнює схожу аудиторію кілька годин.
Аудиторії списку клієнтів
string
за замовчуванням:"USER_PROVIDED_ONLY"
Звідки взялися дані списку, у термінах Meta: USER_PROVIDED_ONLY (люди надали їх вам), PARTNER_PROVIDED_ONLY (партнер надав їх вам) або BOTH_USER_AND_PARTNER_PROVIDED.
Список клієнтів спочатку порожній. Додавайте людей через Учасники аудиторії. Хешовані ідентифікатори залишаються персональними даними: прочитайте цю сторінку, перш ніж завантажувати список.
{ "action": "request", "status": "error", "code": 101, "message": "Missing or incorrect parameters. Please verify with the docs. https://www.ayrshare.com/docs/apis", "details": "ratio is not a recognised field."}
{ "action": "request", "status": "error", "code": 101, "message": "Missing or incorrect parameters. Please verify with the docs. https://www.ayrshare.com/docs/apis", "details": "Creating a custom audience needs the Custom Audience terms accepted on ad account act_123456789. A person with a role on the account accepts them at https://business.facebook.com/ads/manage/customaudiences/tos/?act=123456789"}
{ "action": "ads", "status": "error", "code": 369, "message": "Unable to create the audience. Please try again.", "details": "Meta's reason"}
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Ayrshare Docs","colors":{"primary":"#2266C2","light":"#4985D8","dark":"#1A4E9A"},"logo":{"light":"https://mintcdn.com/ayrshare-docs/7bWzjvNjeuvs-M3N/images/logos/ayrshare-docs-logo-light.svg?fit=max\u0026auto=format\u0026n=7bWzjvNjeuvs-M3N\u0026q=85\u0026s=8d23367f493d06599eecbbfa2b6325cf","dark":"https://mintcdn.com/ayrshare-docs/7bWzjvNjeuvs-M3N/images/logos/ayrshare-docs-logo-dark.svg?fit=max\u0026auto=format\u0026n=7bWzjvNjeuvs-M3N\u0026q=85\u0026s=77590acef2781d2fec9a1b14b6e09b73","href":"https://www.ayrshare.com/docs"},"favicon":"https://mintcdn.com/ayrshare-docs/dKBti0xVDJrOZ19f/images/logos/icon-docs.png?fit=max\u0026auto=format\u0026n=dKBti0xVDJrOZ19f\u0026q=85\u0026s=9704762afaad78a9cfdd90a20cb1d253","api":{"playground":{"display":"simple"},"examples":{"languages":["bash","javascript","python","php","go","java"]},"mdx":{"auth":{"method":"bearer"},"server":"https://api.ayrshare.com/api"}},"appearance":{"default":"dark"},"background":{"decoration":"gradient"},"navbar":{"links":[{"href":"https://www.ayrshare.com/blog","label":"Blog"}],"primary":{"type":"button","label":"Dashboard","href":"https://app.ayrshare.com"}},"footer":{"socials":{"github":"https://github.com/ayrshare","x":"https://x.com/ayrshare","bluesky":"https://bsky.app/profile/ayrshare.com","facebook":"https://www.facebook.com/Ayrshare","linkedin":"https://www.linkedin.com/company/ayrshare","youtube":"https://www.youtube.com/@ayrshare"}},"seo":{"indexing":"navigable"},"styling":{"codeblocks":"system","latex":true},"integrations":{"gtm":{"tagId":"GTM-P23WG8W"},"plausible":{"domain":"docs.ayrshare.com"}},"contextual":{"options":["copy","chatgpt","claude","perplexity","cursor","vscode"],"display":"header"},"navigation":{"languages":[{"language":"en","href":"introduction"},{"language":"es","href":"es/introduction"},{"language":"cn","hidden":true,"href":"cn/introduction"},{"language":"zh","hidden":true,"href":"zh/introduction"},{"language":"pt-BR","href":"pt-BR/introduction"},{"language":"fr","href":"fr/introduction"},{"language":"de","href":"de/introduction"},{"language":"vi","href":"vi/introduction"},{"language":"ja","href":"ja/introduction"},{"language":"uk","href":"uk/introduction"},{"language":"hi","href":"hi/introduction"},{"language":"ar","href":"ar/introduction"},{"language":"zh-Hans","href":"zh-Hans/introduction"},{"language":"zh-Hant","href":"zh-Hant/introduction"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"ayrshare-docs","hasAudioNarration":false,"actualSubdomain":"ayrshare-docs","customDomains":["www.ayrshare.com"],"gitSource":{"type":"github","owner":"ayrshare","repo":"ayrshare_3","deployBranch":"docs-prod","contentDirectory":"apps/mintlify","isPrivate":true,"mountPath":"","label":"","_id":"6aec8a4b6de9d64b11a45855"},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6b0942a415c0c13290fce258","clientVersion":"0.0.4340","searchFilterCounts":[{"language":"en","tag":"Documentation","count":262},{"language":"ar","tag":"Documentation","count":262},{"language":"de","tag":"Documentation","count":262},{"language":"es","tag":"Documentation","count":262},{"language":"fr","tag":"Documentation","count":262},{"language":"hi","tag":"Documentation","count":262},{"language":"ja","tag":"Documentation","count":262},{"language":"pt-BR","tag":"Documentation","count":262},{"language":"uk","tag":"Documentation","count":262},{"language":"vi","tag":"Documentation","count":262},{"language":"zh-Hans","tag":"Documentation","count":262},{"language":"zh-Hant","tag":"Documentation","count":262},{"language":"en","tag":"API Endpoints","count":183},{"language":"ar","tag":"API Endpoints","count":183},{"language":"de","tag":"API Endpoints","count":183},{"language":"es","tag":"API Endpoints","count":183},{"language":"fr","tag":"API Endpoints","count":183},{"language":"hi","tag":"API Endpoints","count":183},{"language":"ja","tag":"API Endpoints","count":183},{"language":"pt-BR","tag":"API Endpoints","count":183},{"language":"uk","tag":"API Endpoints","count":183},{"language":"vi","tag":"API Endpoints","count":183},{"language":"zh-Hans","tag":"API Endpoints","count":183},{"language":"zh-Hant","tag":"API Endpoints","count":183},{"language":"en","tag":"Help Center","count":126},{"language":"ar","tag":"Help Center","count":126},{"language":"de","tag":"Help Center","count":126},{"language":"es","tag":"Help Center","count":126},{"language":"fr","tag":"Help Center","count":126},{"language":"hi","tag":"Help Center","count":126},{"language":"ja","tag":"Help Center","count":126},{"language":"pt-BR","tag":"Help Center","count":126},{"language":"uk","tag":"Help Center","count":126},{"language":"vi","tag":"Help Center","count":126},{"language":"zh-Hans","tag":"Help Center","count":126},{"language":"zh-Hant","tag":"Help Center","count":126},{"language":"en","tag":"Ads","count":43},{"language":"ar","tag":"Ads","count":43},{"language":"de","tag":"Ads","count":43},{"language":"es","tag":"Ads","count":43},{"language":"fr","tag":"Ads","count":43},{"language":"hi","tag":"Ads","count":43},{"language":"ja","tag":"Ads","count":43},{"language":"pt-BR","tag":"Ads","count":43},{"language":"uk","tag":"Ads","count":43},{"language":"vi","tag":"Ads","count":43},{"language":"zh-Hans","tag":"Ads","count":43},{"language":"zh-Hant","tag":"Ads","count":43},{"language":"en","tag":"Additional","count":41},{"language":"ar","tag":"Additional","count":41},{"language":"de","tag":"Additional","count":41},{"language":"es","tag":"Additional","count":41},{"language":"fr","tag":"Additional","count":41},{"language":"hi","tag":"Additional","count":41},{"language":"ja","tag":"Additional","count":41},{"language":"pt-BR","tag":"Additional","count":41},{"language":"uk","tag":"Additional","count":41},{"language":"vi","tag":"Additional","count":41},{"language":"zh-Hans","tag":"Additional","count":41},{"language":"zh-Hant","tag":"Additional","count":41},{"language":"en","tag":"Technical Support","count":40},{"language":"ar","tag":"Technical Support","count":40},{"language":"de","tag":"Technical Support","count":40},{"language":"es","tag":"Technical Support","count":40},{"language":"fr","tag":"Technical Support","count":40},{"language":"hi","tag":"Technical Support","count":40},{"language":"ja","tag":"Technical Support","count":40},{"language":"pt-BR","tag":"Technical Support","count":40},{"language":"uk","tag":"Technical Support","count":40},{"language":"vi","tag":"Technical Support","count":40},{"language":"zh-Hans","tag":"Technical Support","count":40},{"language":"zh-Hant","tag":"Technical Support","count":40},{"language":"en","tag":"Post","count":22},{"language":"ar","tag":"Post","count":22},{"language":"de","tag":"Post","count":22},{"language":"es","tag":"Post","count":22},{"language":"fr","tag":"Post","count":22},{"language":"hi","tag":"Post","count":22},{"language":"ja","tag":"Post","count":22},{"language":"pt-BR","tag":"Post","count":22},{"language":"uk","tag":"Post","count":22},{"language":"vi","tag":"Post","count":22},{"language":"zh-Hans","tag":"Post","count":22},{"language":"zh-Hant","tag":"Post","count":22},{"language":"en","tag":"Dashboard","count":21},{"language":"ar","tag":"Dashboard","count":21},{"language":"de","tag":"Dashboard","count":21},{"language":"es","tag":"Dashboard","count":21},{"language":"fr","tag":"Dashboard","count":21},{"language":"hi","tag":"Dashboard","count":21},{"language":"ja","tag":"Dashboard","count":21},{"language":"pt-BR","tag":"Dashboard","count":21},{"language":"uk","tag":"Dashboard","count":21},{"language":"vi","tag":"Dashboard","count":21},{"language":"zh-Hans","tag":"Dashboard","count":21},{"language":"zh-Hant","tag":"Dashboard","count":21},{"language":"en","tag":"Product","count":16},{"language":"ar","tag":"Product","count":16},{"language":"de","tag":"Product","count":16},{"language":"es","tag":"Product","count":16},{"language":"fr","tag":"Product","count":16},{"language":"hi","tag":"Product","count":16},{"language":"ja","tag":"Product","count":16},{"language":"pt-BR","tag":"Product","count":16},{"language":"uk","tag":"Product","count":16},{"language":"vi","tag":"Product","count":16},{"language":"zh-Hans","tag":"Product","count":16},{"language":"zh-Hant","tag":"Product","count":16},{"language":"en","tag":"Facebook Ads","count":15},{"language":"ar","tag":"Facebook Ads","count":15},{"language":"de","tag":"Facebook Ads","count":15},{"language":"es","tag":"Facebook Ads","count":15},{"language":"fr","tag":"Facebook Ads","count":15},{"language":"hi","tag":"Facebook Ads","count":15},{"language":"ja","tag":"Facebook Ads","count":15},{"language":"pt-BR","tag":"Facebook Ads","count":15},{"language":"uk","tag":"Facebook Ads","count":15},{"language":"vi","tag":"Facebook Ads","count":15},{"language":"zh-Hans","tag":"Facebook Ads","count":15},{"language":"zh-Hant","tag":"Facebook Ads","count":15}]},"assistantConfig":{},"basePath":"/docs","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":".center{display:block;margin-left:auto;margin-right:auto;max-width:100%;height:auto}.welcome-banner{margin-left:auto;margin-right:auto;max-width:100%;height:auto;border-radius:12px}.custom-bullets{padding-left:0}.custom-bullets li{position:relative;padding-left:1.5em;margin-bottom:0.75em;list-style-type:none;line-height:1.4}.custom-bullets li::before{content:\"\\2022\";color:#2266c2;position:absolute;left:0.5em;top:0}.custom-bullets li:last-child{margin-bottom:0}.custom-bullets li>*{margin-top:0;margin-bottom:0}ul ul{margin-left:20px}.custom-bullets li::after,.custom-bullets li::before{border:none!important;background:none!important}.button{background-color:#2266c2;color:#fff;padding:16px 24px;border-radius:8px;border:none;transition-duration:0.2s;margin-top:100px}.button:hover{background-color:#133e76;color:white}.button2{background-color:#fff;color:#2266c2;padding:16px 24px;border-radius:8px;border:1px solid #2266c2;transition-duration:0.2s}.button2:hover{background-color:#133e76;color:white}.video-container{width:100%;max-width:560px;margin:0 auto}.video-container iframe{width:100%;height:auto;aspect-ratio:16 / 9}.plan-tag-light{font-family:\"JetBrains Mono\", monospace;display:inline-block;padding:2px 6px;border-radius:4px;font-size:12px;color:#ffffff;background-color:#16171b;margin-right:10px}.plan-tag-dark{font-family:\"JetBrains Mono\", monospace;display:inline-block;padding:2px 6px;border-radius:4px;font-size:12px;color:#3f4144;background-color:#b7b9bb;margin-right:10px}@media (min-width: 768px){.video-container{display:flex;justify-content:center;align-items:center}}code{font-size:0.96em;line-height:1.7em}dialog.ayr-playground{padding:0;border:none;background:transparent;width:min(1100px, calc(100vw - 32px));max-width:none;max-height:calc(100vh - 48px);max-height:calc(100dvh - 48px);margin:auto;overflow-y:auto}dialog.ayr-playground::backdrop{background:rgb(3 7 18 / 0.6);backdrop-filter:blur(2px)}.ayr-playground-card{--ayr-border: rgb(3 7 18 / 0.1);--ayr-muted-bg: rgb(3 7 18 / 0.03);border:1px solid var(--ayr-border);border-radius:16px;background:rgb(var(--background-light));box-shadow:0 24px 48px -12px rgb(0 0 0 / 0.35)}.dark .ayr-playground-card{--ayr-border: rgb(255 255 255 / 0.1);--ayr-muted-bg: rgb(255 255 255 / 0.04);background:rgb(var(--background-dark))}.ayr-playground-header{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;padding:1rem 1rem 0.75rem 1.25rem}.ayr-playground-close{flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:8px;color:rgb(107 114 128)}.ayr-playground-close:hover{background:var(--ayr-muted-bg);color:inherit}.ayr-playground-request{display:flex;align-items:stretch;gap:0.75rem;padding:0 1.25rem 1rem;border-bottom:1px solid var(--ayr-border)}.ayr-playground-url{display:flex;flex:1;min-width:0;align-items:center;gap:0.75rem;min-height:44px;padding:0 0.875rem;border:1px solid var(--ayr-border);border-radius:10px;background:var(--ayr-muted-bg)}.ayr-playground-send{flex-shrink:0;padding:0 1.25rem;border-radius:10px}.ayr-playground-url code{padding:0;border:none;background:none}.ayr-playground-method{flex-shrink:0;padding:0.125rem 0.5rem;border-radius:6px;background:rgb(34 197 94 / 0.15);color:rgb(21 128 61);font-size:0.75rem;font-weight:700}.dark .ayr-playground-method{color:rgb(74 222 128)}.ayr-playground-body{display:grid;gap:1.75rem;padding:1.25rem}@media (min-width: 768px){.ayr-playground-body{grid-template-columns:minmax(0, 5fr) minmax(0, 7fr)}}.ayr-playground-fields,.ayr-playground-output{display:flex;flex-direction:column;gap:1.5rem;min-width:0}.ayr-playground-section-title{display:flex;align-items:center;gap:0.5rem;margin-bottom:0.75rem;font-size:0.75rem;font-weight:600;letter-spacing:0.05em;text-transform:uppercase;color:rgb(107 114 128)}.ayr-playground-output .code-block,.ayr-playground-output .code-group{margin-top:0;margin-bottom:0}.ayr-playground-status{padding:0.0625rem 0.5rem;border-radius:9999px;font-size:0.75rem;letter-spacing:normal;text-transform:none}.ayr-playground-status.is-ok{background:rgb(34 197 94 / 0.15);color:rgb(21 128 61)}.ayr-playground-status.is-error{background:rgb(239 68 68 / 0.15);color:rgb(185 28 28)}.dark .ayr-playground-status.is-ok{color:rgb(74 222 128)}.dark .ayr-playground-status.is-error{color:rgb(248 113 113)}.ayr-playground-empty{padding:1.5rem 1rem;border:1px dashed var(--ayr-border);border-radius:12px;text-align:center;font-size:0.875rem;color:rgb(107 114 128)}.ayr-playground-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border:0}.dark .ayr-playground-section-title,.dark .ayr-playground-empty,.dark .ayr-playground-close{color:rgb(156 163 175)}.dark .ayr-playground-close:hover{color:inherit}"}]}
{"page":{"pagePath":"uk/apis/ads/facebook/create-audience","slug":"/uk/apis/ads/facebook/create-audience","pageMetadata":{"title":"Створити аудиторію","description":"Створіть користувацьку аудиторію Facebook з відвідувачів, залучених людей, lookalike чи списку клієнтів, щоб включати чи виключати її під час просування.","api":"POST /ads/facebook/audiences","href":"/uk/apis/ads/facebook/create-audience"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Створіть користувацьку аудиторію Facebook з відвідувачів, залучених людей, lookalike чи списку клієнтів, щоб включати чи виключати її під час просування.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];const PlansAvailable=({plans=[],maxPackRequired})=>{const{Note}=_provideComponents()||{};if(!Note)_missingMdxReference(`Note`,true);let displayPlans=plans;if(plans\u0026\u0026plans.length===1){const lowerCasePlan=plans[0].toLowerCase();if(lowerCasePlan===`business`){displayPlans=[`Launch`,`Business`,`Enterprise`]}else if(lowerCasePlan===`premium`){displayPlans=[`Premium`,`Launch`,`Business`,`Enterprise`]}}return _jsxs(Note,{children:[`Available on `,displayPlans.length===1?`the `:``,displayPlans.join(`, `).replace(/\\b\\w/g,l=>l.toUpperCase()),` `,displayPlans.length>1?`plans`:`plan`,`.`,maxPackRequired\u0026\u0026_jsx(`span`,{onClick:()=>window.open(`https://www.ayrshare.com/docs/additional/maxpack`,`_self`),className:`mint-flex mint-items-center mint-mt-2 mint-cursor-pointer`,children:_jsx(`span`,{className:`mint-px-1.5 mint-py-0.5 mint-rounded mint-text-sm`,style:{backgroundColor:`#C264B6`,color:`white`,fontSize:`12px`},children:`Max Pack required`})})]})};const HeaderAPI=({noProfileKey,profileKeyRequired})=>{const _components={a:`a`,..._provideComponents()},{ParamField}=_components;if(!ParamField)_missingMdxReference(`ParamField`,true);return _jsxs(_Fragment,{children:[_jsxs(ParamField,{header:`Authorization`,type:`string`,required:true,children:[_jsx(_components.a,{href:`/apis/overview#authorization`,children:`API Key`}),` of the Primary Profile.`,_jsx(`br`,{}),_jsx(`br`,{}),`Format: `,_jsx(`code`,{children:`Authorization: Bearer API_KEY`})]}),!noProfileKey\u0026\u0026(profileKeyRequired?_jsxs(ParamField,{header:`Profile-Key`,type:`string`,required:true,children:[_jsx(_components.a,{href:`/apis/overview#profile-key-format`,children:`Profile Key`}),` of a User Profile.`,_jsx(`br`,{}),_jsx(`br`,{}),`Format: `,_jsx(`code`,{children:`Profile-Key: PROFILE_KEY`})]}):_jsxs(ParamField,{header:`Profile-Key`,type:`string`,children:[_jsx(_components.a,{href:`/apis/overview#profile-key-format`,children:`Profile Key`}),` of a User Profile.`,_jsx(`br`,{}),_jsx(`br`,{}),`Format: `,_jsx(`code`,{children:`Profile-Key: PROFILE_KEY`})]}))]})};function _createMdxContent(props){const _components={a:`a`,code:`code`,p:`p`,..._provideComponents(),...props.components},{Heading,Note,ParamField,Warning,_MdxComponentBoundary}=_components;if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!Warning)_missingMdxReference(`Warning`,true);if(!_MdxComponentBoundary)_missingMdxReference(`_MdxComponentBoundary`,true);return _jsxs(_Fragment,{children:[_jsx(_MdxComponentBoundary,{name:`PlansAvailable`,children:_jsx(PlansAvailable,{plans:[`premium`],maxPackRequired:false})}),`\n`,_jsxs(_components.p,{children:[`Створює користувацьку аудиторію в рекламному акаунті Facebook. Підтримуються чотири типи, які обирають через `,_jsx(_components.code,{children:`type`}),`:`]}),`\n`,_jsxs(`ul`,{className:`custom-bullets`,children:[_jsxs(`li`,{children:[_jsx(_components.code,{children:`website`}),`: люди, яких піксель Meta зафіксував на вашому сайті.`]}),_jsxs(`li`,{children:[_jsx(_components.code,{children:`engagement`}),`: люди, які взаємодіяли зі сторінкою Facebook, акаунтом Instagram або відео.`]}),_jsxs(`li`,{children:[_jsx(_components.code,{children:`lookalike`}),`: люди, схожі на аудиторію, яка у вас уже є.`]}),_jsxs(`li`,{children:[_jsx(_components.code,{children:`customerList`}),`: ваш власний список людей, який ви наповнюєте хешованими ідентифікаторами через `,_jsx(_components.a,{href:`/apis/ads/facebook/audience-members`,children:`Учасники аудиторії`}),`.`]})]}),`\n`,_jsxs(_components.p,{children:[`Нова аудиторія повертається в `,_jsx(_components.code,{children:`audience`}),` у тому самому форматі, що й в `,_jsx(_components.a,{href:`/apis/ads/facebook/get-audiences`,children:`Аудиторіях`}),`, зі `,_jsx(_components.code,{children:`status.ready: false`}),`. Meta наповнює її протягом наступних годин; отримайте список, щоб побачити, коли `,_jsx(_components.code,{children:`status.ready`}),` стане `,_jsx(_components.code,{children:`true`}),`, а потім використовуйте її `,_jsx(_components.code,{children:`id`}),` в `,_jsx(_components.code,{children:`targeting.audiences`}),` або `,_jsx(_components.code,{children:`targeting.excludedAudiences`}),`, коли `,_jsx(_components.a,{href:`/apis/ads/facebook/boost-post#audiences`,children:`просуваєте допис`}),`.`]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`Перш ніж створювати чи використовувати будь-яку аудиторію, людина з роллю в рекламному акаунті має один раз прийняти умови Custom Audience від Meta за адресою `,_jsx(_components.code,{children:`https://business.facebook.com/ads/manage/customaudiences/tos/?act=\u003cad account id>`}),`. Ayrshare не може прийняти їх за вас. Доти цей endpoint повертає `,_jsx(_components.code,{children:`400`}),` з `,_jsx(_components.code,{children:`code: 101`}),`, а `,_jsx(_components.code,{children:`details`}),` називає акаунт і сторінку, де приймають умови. `,_jsx(_components.a,{href:`/apis/ads/facebook/get-ad-accounts`,children:`Рекламні акаунти`}),` показують у `,_jsx(_components.code,{children:`tosAccepted.customAudienceTos`}),`, чи прийнято умови.`]})}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`Meta не дозволяє схожі аудиторії в рекламі житла, працевлаштування або фінансових послуг. Просування в одній із цих `,_jsx(_components.a,{href:`/apis/ads/facebook/boost-post#param-special-ad-categories`,children:`спеціальних категорій реклами`}),` може включати або виключати аудиторії сайту, взаємодії та списку клієнтів, але не схожу аудиторію.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`header-parameters`,children:`Параметри заголовка`}),`\n`,_jsx(_MdxComponentBoundary,{name:`HeaderAPI`,children:_jsx(HeaderAPI,{})}),`\n`,_jsx(Heading,{level:`2`,id:`body-parameters`,children:`Параметри тіла запиту`}),`\n`,_jsxs(_components.p,{children:[`Кожен `,_jsx(_components.code,{children:`type`}),` приймає такі параметри:`]}),`\n`,_jsx(ParamField,{body:`accountId`,type:`string`,required:true,id:`param-account-id`,children:_jsxs(_components.p,{children:[`Рекламний акаунт, у якому створюється аудиторія, з `,_jsx(_components.a,{href:`/apis/ads/facebook/get-ad-accounts`,children:`рекламних акаунтів`}),`, з префіксом `,_jsx(_components.code,{children:`act_`}),` або без нього.`]})}),`\n`,_jsx(ParamField,{body:`name`,type:`string`,required:true,id:`param-name`,children:_jsx(_components.p,{children:`Назва, що відображається в Ads Manager.`})}),`\n`,_jsx(ParamField,{body:`type`,type:`string`,required:true,id:`param-type`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`website`}),`, `,_jsx(_components.code,{children:`engagement`}),`, `,_jsx(_components.code,{children:`lookalike`}),` або `,_jsx(_components.code,{children:`customerList`}),`. Кожен тип приймає лише власні поля, наведені нижче. Поле іншого типу повертає `,_jsx(_components.code,{children:`400`}),` з `,_jsx(_components.code,{children:`code: 101`}),`, що називає це поле.`]})}),`\n`,_jsx(ParamField,{body:`idempotencyKey`,type:`string`,id:`param-idempotency-key`,children:_jsxs(_components.p,{children:[`Нове унікальне значення, наприклад UUID, для кожної нової аудиторії. Якщо ви повторите запит із тим самим ключем, Ayrshare поверне першу відповідь із позначкою `,_jsx(_components.code,{children:`idempotentReplayed: true`}),` і не створить другу аудиторію. Ключ можна натомість надіслати в заголовку `,_jsx(_components.code,{children:`Idempotency-Key`}),`; якщо надсилаєте обидва, вони мають збігатися. Повторне використання ключа з іншим запитом або поки перший запит ще виконується повертає `,_jsx(_components.code,{children:`409`}),`. `,_jsx(_components.code,{children:`503`}),` означає, що ключ не вдалося зарезервувати і нічого не створено: повторіть спробу пізніше з тим самим ключем.`]})}),`\n`,_jsx(Heading,{level:`3`,id:`website`,children:`Аудиторії сайту`}),`\n`,_jsx(ParamField,{body:`pixelId`,type:`string`,required:true,id:`param-pixel-id`,children:_jsx(_components.p,{children:`Піксель Meta, події якого формують аудиторію.`})}),`\n`,_jsx(ParamField,{body:`retentionDays`,type:`number`,required:true,id:`param-retention-days`,children:_jsx(_components.p,{children:`Скільки днів відвідувач залишається в аудиторії після останнього візиту, від 1 до 180.`})}),`\n`,_jsx(ParamField,{body:`urlContains`,type:`array`,id:`param-url-contains`,children:_jsxs(_components.p,{children:[`Враховувати лише візити на URL, що містять один із цих рядків, наприклад `,_jsx(_components.code,{children:`[\"/pricing\"]`}),`.`]})}),`\n`,_jsx(ParamField,{body:`event`,type:`string`,id:`param-event`,children:_jsxs(_components.p,{children:[`Враховувати лише відвідувачів, які викликали цю подію пікселя, наприклад `,_jsx(_components.code,{children:`Purchase`}),` або назву власної події. Не вказуйте, щоб рахувати кожен візит.`]})}),`\n`,_jsx(Heading,{level:`3`,id:`engagement`,children:`Аудиторії взаємодії`}),`\n`,_jsx(ParamField,{body:`source`,type:`string`,required:true,id:`param-source`,children:_jsxs(_components.p,{children:[`Де відбулася взаємодія: `,_jsx(_components.code,{children:`page`}),` (сторінка Facebook), `,_jsx(_components.code,{children:`instagram`}),` (акаунт Instagram) або `,_jsx(_components.code,{children:`video`}),`.`]})}),`\n`,_jsx(ParamField,{body:`sourceIds`,type:`array`,required:true,id:`param-source-ids`,children:_jsx(_components.p,{children:`Ідентифікатори сторінок, акаунтів Instagram або відео, на яких рахується взаємодія, у вигляді рядків.`})}),`\n`,_jsxs(ParamField,{body:`event`,type:`string`,required:true,id:`param-event-1`,children:[_jsxs(_components.p,{children:[`Врахована взаємодія. Значення є власними назвами Meta, і вони залежать від `,_jsx(_components.code,{children:`source`}),`:`]}),_jsxs(`ul`,{className:`custom-bullets`,children:[_jsxs(`li`,{children:[_jsx(_components.code,{children:`page`}),`: `,_jsx(_components.code,{children:`page_engaged`}),`, `,_jsx(_components.code,{children:`page_visited`}),`, `,_jsx(_components.code,{children:`page_liked`}),`, `,_jsx(_components.code,{children:`page_messaged`}),`, `,_jsx(_components.code,{children:`page_cta_clicked`}),`, `,_jsx(_components.code,{children:`page_or_post_save`}),`, `,_jsx(_components.code,{children:`page_post_interaction`})]}),_jsxs(`li`,{children:[_jsx(_components.code,{children:`instagram`}),`: `,_jsx(_components.code,{children:`ig_business_profile_all`}),`, `,_jsx(_components.code,{children:`ig_business_profile_engaged`}),`, `,_jsx(_components.code,{children:`ig_business_profile_visit`}),`, `,_jsx(_components.code,{children:`ig_business_profile_ad_saved`}),`, `,_jsx(_components.code,{children:`ig_user_messaged_business`}),`, `,_jsx(_components.code,{children:`ig_ad_like`}),`, `,_jsx(_components.code,{children:`ig_ad_comment`}),`, `,_jsx(_components.code,{children:`ig_ad_share`}),`, `,_jsx(_components.code,{children:`ig_ad_save`}),`, `,_jsx(_components.code,{children:`ig_ad_cta_click`}),`, `,_jsx(_components.code,{children:`ig_ad_carousel_swipe`}),`, `,_jsx(_components.code,{children:`ig_organic_like`}),`, `,_jsx(_components.code,{children:`ig_organic_comment`}),`, `,_jsx(_components.code,{children:`ig_organic_share`}),`, `,_jsx(_components.code,{children:`ig_organic_save`}),`, `,_jsx(_components.code,{children:`ig_organic_swipe`}),`, `,_jsx(_components.code,{children:`ig_organic_carousel_swipe`})]}),_jsxs(`li`,{children:[_jsx(_components.code,{children:`video`}),`: `,_jsx(_components.code,{children:`video_watched`}),`, `,_jsx(_components.code,{children:`video_completed`}),`, `,_jsx(_components.code,{children:`video_view_10s`}),`, `,_jsx(_components.code,{children:`video_view_15s`}),`, `,_jsx(_components.code,{children:`video_view_25_percent`}),`, `,_jsx(_components.code,{children:`video_view_50_percent`}),`, `,_jsx(_components.code,{children:`video_view_75_percent`})]})]}),_jsxs(_components.p,{children:[`Будь-яке інше значення повертає `,_jsx(_components.code,{children:`400`}),` з `,_jsx(_components.code,{children:`code: 101`}),` і переліком значень для цього джерела.`]})]}),`\n`,_jsx(ParamField,{body:`retentionDays`,type:`number`,required:true,id:`param-retention-days-1`,children:_jsxs(_components.p,{children:[`Скільки днів людина залишається в аудиторії після останньої взаємодії: від 1 до 730 для `,_jsx(_components.code,{children:`page`}),` та `,_jsx(_components.code,{children:`instagram`}),`, від 1 до 365 для `,_jsx(_components.code,{children:`video`}),`.`]})}),`\n`,_jsx(Heading,{level:`3`,id:`lookalike`,children:`Схожі аудиторії`}),`\n`,_jsx(ParamField,{body:`seedAudienceId`,type:`string`,required:true,id:`param-seed-audience-id`,children:_jsxs(_components.p,{children:[`Аудиторія, на яку мають бути схожі люди, з `,_jsx(_components.a,{href:`/apis/ads/facebook/get-audiences`,children:`Аудиторій`}),`. Meta потрібно щонайменше 100 людей у ній.`]})}),`\n`,_jsx(ParamField,{body:`ratio`,type:`number`,required:true,id:`param-ratio`,children:_jsx(_components.p,{children:`Розмір схожої аудиторії як цілий відсоток людей у країнах, на які таргетується просування: від 1 (найближча відповідність) до 20 (найширше охоплення).`})}),`\n`,_jsx(ParamField,{body:`allowInternationalSeeds`,type:`boolean`,id:`param-allow-international-seeds`,children:_jsxs(_components.p,{children:[`Дозволяє Meta брати вихідних людей з інших країн, коли в країні їх замало. За замовчуванням `,_jsx(_components.code,{children:`false`}),`.`]})}),`\n`,_jsxs(_components.p,{children:[`Схожа аудиторія не має власної країни: люди беруться з країн, указаних у `,_jsxs(_components.a,{href:`/apis/ads/facebook/boost-post`,children:[_jsx(_components.code,{children:`targeting.locations`}),` просування`]}),`. Надсилання `,_jsx(_components.code,{children:`country`}),` повертає `,_jsx(_components.code,{children:`400`}),` з `,_jsx(_components.code,{children:`code: 101`}),`. Meta наповнює схожу аудиторію кілька годин.`]}),`\n`,_jsx(Heading,{level:`3`,id:`customer-list`,children:`Аудиторії списку клієнтів`}),`\n`,_jsx(ParamField,{body:`customerFileSource`,type:`string`,default:`USER_PROVIDED_ONLY`,id:`param-customer-file-source`,children:_jsxs(_components.p,{children:[`Звідки взялися дані списку, у термінах Meta: `,_jsx(_components.code,{children:`USER_PROVIDED_ONLY`}),` (люди надали їх вам), `,_jsx(_components.code,{children:`PARTNER_PROVIDED_ONLY`}),` (партнер надав їх вам) або `,_jsx(_components.code,{children:`BOTH_USER_AND_PARTNER_PROVIDED`}),`.`]})}),`\n`,_jsxs(_components.p,{children:[`Список клієнтів спочатку порожній. Додавайте людей через `,_jsx(_components.a,{href:`/apis/ads/facebook/audience-members`,children:`Учасники аудиторії`}),`. Хешовані ідентифікатори залишаються персональними даними: прочитайте цю сторінку, перш ніж завантажувати список.`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{PlansAvailable,HeaderAPI,default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"codeStyling":"system","config":{},"pageMetadata":{"title":"Створити аудиторію","description":"Створіть користувацьку аудиторію Facebook з відвідувачів, залучених людей, lookalike чи списку клієнтів, щоб включати чи виключати її під час просування.","api":"POST /ads/facebook/audiences","href":"/uk/apis/ads/facebook/create-audience"}}},"mdxSourceWithNoJs":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];const PlansAvailable=()=>null;const HeaderAPI=()=>null;function _createMdxContent(props){const _components={a:`a`,code:`code`,p:`p`,pre:`pre`,span:`span`,..._provideComponents(),...props.components},{CodeBlock,Heading,Note,ParamField,RequestExample,ResponseExample,Warning,_MdxComponentBoundary}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!RequestExample)_missingMdxReference(`RequestExample`,true);if(!ResponseExample)_missingMdxReference(`ResponseExample`,true);if(!Warning)_missingMdxReference(`Warning`,true);if(!_MdxComponentBoundary)_missingMdxReference(`_MdxComponentBoundary`,true);return _jsxs(_Fragment,{children:[_jsx(_MdxComponentBoundary,{name:`PlansAvailable`,children:_jsx(PlansAvailable,{plans:[`premium`],maxPackRequired:false})}),`\n`,_jsxs(_components.p,{children:[`Створює користувацьку аудиторію в рекламному акаунті Facebook. Підтримуються чотири типи, які обирають через `,_jsx(_components.code,{children:`type`}),`:`]}),`\n`,_jsxs(`ul`,{className:`custom-bullets`,children:[_jsxs(`li`,{children:[_jsx(_components.code,{children:`website`}),`: люди, яких піксель Meta зафіксував на вашому сайті.`]}),_jsxs(`li`,{children:[_jsx(_components.code,{children:`engagement`}),`: люди, які взаємодіяли зі сторінкою Facebook, акаунтом Instagram або відео.`]}),_jsxs(`li`,{children:[_jsx(_components.code,{children:`lookalike`}),`: люди, схожі на аудиторію, яка у вас уже є.`]}),_jsxs(`li`,{children:[_jsx(_components.code,{children:`customerList`}),`: ваш власний список людей, який ви наповнюєте хешованими ідентифікаторами через `,_jsx(_components.a,{href:`/apis/ads/facebook/audience-members`,children:`Учасники аудиторії`}),`.`]})]}),`\n`,_jsxs(_components.p,{children:[`Нова аудиторія повертається в `,_jsx(_components.code,{children:`audience`}),` у тому самому форматі, що й в `,_jsx(_components.a,{href:`/apis/ads/facebook/get-audiences`,children:`Аудиторіях`}),`, зі `,_jsx(_components.code,{children:`status.ready: false`}),`. Meta наповнює її протягом наступних годин; отримайте список, щоб побачити, коли `,_jsx(_components.code,{children:`status.ready`}),` стане `,_jsx(_components.code,{children:`true`}),`, а потім використовуйте її `,_jsx(_components.code,{children:`id`}),` в `,_jsx(_components.code,{children:`targeting.audiences`}),` або `,_jsx(_components.code,{children:`targeting.excludedAudiences`}),`, коли `,_jsx(_components.a,{href:`/apis/ads/facebook/boost-post#audiences`,children:`просуваєте допис`}),`.`]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`Перш ніж створювати чи використовувати будь-яку аудиторію, людина з роллю в рекламному акаунті має один раз прийняти умови Custom Audience від Meta за адресою `,_jsx(_components.code,{children:`https://business.facebook.com/ads/manage/customaudiences/tos/?act=\u003cad account id>`}),`. Ayrshare не може прийняти їх за вас. Доти цей endpoint повертає `,_jsx(_components.code,{children:`400`}),` з `,_jsx(_components.code,{children:`code: 101`}),`, а `,_jsx(_components.code,{children:`details`}),` називає акаунт і сторінку, де приймають умови. `,_jsx(_components.a,{href:`/apis/ads/facebook/get-ad-accounts`,children:`Рекламні акаунти`}),` показують у `,_jsx(_components.code,{children:`tosAccepted.customAudienceTos`}),`, чи прийнято умови.`]})}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`Meta не дозволяє схожі аудиторії в рекламі житла, працевлаштування або фінансових послуг. Просування в одній із цих `,_jsx(_components.a,{href:`/apis/ads/facebook/boost-post#param-special-ad-categories`,children:`спеціальних категорій реклами`}),` може включати або виключати аудиторії сайту, взаємодії та списку клієнтів, але не схожу аудиторію.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`header-parameters`,children:`Параметри заголовка`}),`\n`,_jsx(_MdxComponentBoundary,{name:`HeaderAPI`,children:_jsx(HeaderAPI,{})}),`\n`,_jsx(Heading,{level:`2`,id:`body-parameters`,children:`Параметри тіла запиту`}),`\n`,_jsxs(_components.p,{children:[`Кожен `,_jsx(_components.code,{children:`type`}),` приймає такі параметри:`]}),`\n`,_jsx(ParamField,{body:`accountId`,type:`string`,required:true,id:`param-account-id`,children:_jsxs(_components.p,{children:[`Рекламний акаунт, у якому створюється аудиторія, з `,_jsx(_components.a,{href:`/apis/ads/facebook/get-ad-accounts`,children:`рекламних акаунтів`}),`, з префіксом `,_jsx(_components.code,{children:`act_`}),` або без нього.`]})}),`\n`,_jsx(ParamField,{body:`name`,type:`string`,required:true,id:`param-name`,children:_jsx(_components.p,{children:`Назва, що відображається в Ads Manager.`})}),`\n`,_jsx(ParamField,{body:`type`,type:`string`,required:true,id:`param-type`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`website`}),`, `,_jsx(_components.code,{children:`engagement`}),`, `,_jsx(_components.code,{children:`lookalike`}),` або `,_jsx(_components.code,{children:`customerList`}),`. Кожен тип приймає лише власні поля, наведені нижче. Поле іншого типу повертає `,_jsx(_components.code,{children:`400`}),` з `,_jsx(_components.code,{children:`code: 101`}),`, що називає це поле.`]})}),`\n`,_jsx(ParamField,{body:`idempotencyKey`,type:`string`,id:`param-idempotency-key`,children:_jsxs(_components.p,{children:[`Нове унікальне значення, наприклад UUID, для кожної нової аудиторії. Якщо ви повторите запит із тим самим ключем, Ayrshare поверне першу відповідь із позначкою `,_jsx(_components.code,{children:`idempotentReplayed: true`}),` і не створить другу аудиторію. Ключ можна натомість надіслати в заголовку `,_jsx(_components.code,{children:`Idempotency-Key`}),`; якщо надсилаєте обидва, вони мають збігатися. Повторне використання ключа з іншим запитом або поки перший запит ще виконується повертає `,_jsx(_components.code,{children:`409`}),`. `,_jsx(_components.code,{children:`503`}),` означає, що ключ не вдалося зарезервувати і нічого не створено: повторіть спробу пізніше з тим самим ключем.`]})}),`\n`,_jsx(Heading,{level:`3`,id:`website`,children:`Аудиторії сайту`}),`\n`,_jsx(ParamField,{body:`pixelId`,type:`string`,required:true,id:`param-pixel-id`,children:_jsx(_components.p,{children:`Піксель Meta, події якого формують аудиторію.`})}),`\n`,_jsx(ParamField,{body:`retentionDays`,type:`number`,required:true,id:`param-retention-days`,children:_jsx(_components.p,{children:`Скільки днів відвідувач залишається в аудиторії після останнього візиту, від 1 до 180.`})}),`\n`,_jsx(ParamField,{body:`urlContains`,type:`array`,id:`param-url-contains`,children:_jsxs(_components.p,{children:[`Враховувати лише візити на URL, що містять один із цих рядків, наприклад `,_jsx(_components.code,{children:`[\"/pricing\"]`}),`.`]})}),`\n`,_jsx(ParamField,{body:`event`,type:`string`,id:`param-event`,children:_jsxs(_components.p,{children:[`Враховувати лише відвідувачів, які викликали цю подію пікселя, наприклад `,_jsx(_components.code,{children:`Purchase`}),` або назву власної події. Не вказуйте, щоб рахувати кожен візит.`]})}),`\n`,_jsx(Heading,{level:`3`,id:`engagement`,children:`Аудиторії взаємодії`}),`\n`,_jsx(ParamField,{body:`source`,type:`string`,required:true,id:`param-source`,children:_jsxs(_components.p,{children:[`Де відбулася взаємодія: `,_jsx(_components.code,{children:`page`}),` (сторінка Facebook), `,_jsx(_components.code,{children:`instagram`}),` (акаунт Instagram) або `,_jsx(_components.code,{children:`video`}),`.`]})}),`\n`,_jsx(ParamField,{body:`sourceIds`,type:`array`,required:true,id:`param-source-ids`,children:_jsx(_components.p,{children:`Ідентифікатори сторінок, акаунтів Instagram або відео, на яких рахується взаємодія, у вигляді рядків.`})}),`\n`,_jsxs(ParamField,{body:`event`,type:`string`,required:true,id:`param-event-1`,children:[_jsxs(_components.p,{children:[`Врахована взаємодія. Значення є власними назвами Meta, і вони залежать від `,_jsx(_components.code,{children:`source`}),`:`]}),_jsxs(`ul`,{className:`custom-bullets`,children:[_jsxs(`li`,{children:[_jsx(_components.code,{children:`page`}),`: `,_jsx(_components.code,{children:`page_engaged`}),`, `,_jsx(_components.code,{children:`page_visited`}),`, `,_jsx(_components.code,{children:`page_liked`}),`, `,_jsx(_components.code,{children:`page_messaged`}),`, `,_jsx(_components.code,{children:`page_cta_clicked`}),`, `,_jsx(_components.code,{children:`page_or_post_save`}),`, `,_jsx(_components.code,{children:`page_post_interaction`})]}),_jsxs(`li`,{children:[_jsx(_components.code,{children:`instagram`}),`: `,_jsx(_components.code,{children:`ig_business_profile_all`}),`, `,_jsx(_components.code,{children:`ig_business_profile_engaged`}),`, `,_jsx(_components.code,{children:`ig_business_profile_visit`}),`, `,_jsx(_components.code,{children:`ig_business_profile_ad_saved`}),`, `,_jsx(_components.code,{children:`ig_user_messaged_business`}),`, `,_jsx(_components.code,{children:`ig_ad_like`}),`, `,_jsx(_components.code,{children:`ig_ad_comment`}),`, `,_jsx(_components.code,{children:`ig_ad_share`}),`, `,_jsx(_components.code,{children:`ig_ad_save`}),`, `,_jsx(_components.code,{children:`ig_ad_cta_click`}),`, `,_jsx(_components.code,{children:`ig_ad_carousel_swipe`}),`, `,_jsx(_components.code,{children:`ig_organic_like`}),`, `,_jsx(_components.code,{children:`ig_organic_comment`}),`, `,_jsx(_components.code,{children:`ig_organic_share`}),`, `,_jsx(_components.code,{children:`ig_organic_save`}),`, `,_jsx(_components.code,{children:`ig_organic_swipe`}),`, `,_jsx(_components.code,{children:`ig_organic_carousel_swipe`})]}),_jsxs(`li`,{children:[_jsx(_components.code,{children:`video`}),`: `,_jsx(_components.code,{children:`video_watched`}),`, `,_jsx(_components.code,{children:`video_completed`}),`, `,_jsx(_components.code,{children:`video_view_10s`}),`, `,_jsx(_components.code,{children:`video_view_15s`}),`, `,_jsx(_components.code,{children:`video_view_25_percent`}),`, `,_jsx(_components.code,{children:`video_view_50_percent`}),`, `,_jsx(_components.code,{children:`video_view_75_percent`})]})]}),_jsxs(_components.p,{children:[`Будь-яке інше значення повертає `,_jsx(_components.code,{children:`400`}),` з `,_jsx(_components.code,{children:`code: 101`}),` і переліком значень для цього джерела.`]})]}),`\n`,_jsx(ParamField,{body:`retentionDays`,type:`number`,required:true,id:`param-retention-days-1`,children:_jsxs(_components.p,{children:[`Скільки днів людина залишається в аудиторії після останньої взаємодії: від 1 до 730 для `,_jsx(_components.code,{children:`page`}),` та `,_jsx(_components.code,{children:`instagram`}),`, від 1 до 365 для `,_jsx(_components.code,{children:`video`}),`.`]})}),`\n`,_jsx(Heading,{level:`3`,id:`lookalike`,children:`Схожі аудиторії`}),`\n`,_jsx(ParamField,{body:`seedAudienceId`,type:`string`,required:true,id:`param-seed-audience-id`,children:_jsxs(_components.p,{children:[`Аудиторія, на яку мають бути схожі люди, з `,_jsx(_components.a,{href:`/apis/ads/facebook/get-audiences`,children:`Аудиторій`}),`. Meta потрібно щонайменше 100 людей у ній.`]})}),`\n`,_jsx(ParamField,{body:`ratio`,type:`number`,required:true,id:`param-ratio`,children:_jsx(_components.p,{children:`Розмір схожої аудиторії як цілий відсоток людей у країнах, на які таргетується просування: від 1 (найближча відповідність) до 20 (найширше охоплення).`})}),`\n`,_jsx(ParamField,{body:`allowInternationalSeeds`,type:`boolean`,id:`param-allow-international-seeds`,children:_jsxs(_components.p,{children:[`Дозволяє Meta брати вихідних людей з інших країн, коли в країні їх замало. За замовчуванням `,_jsx(_components.code,{children:`false`}),`.`]})}),`\n`,_jsxs(_components.p,{children:[`Схожа аудиторія не має власної країни: люди беруться з країн, указаних у `,_jsxs(_components.a,{href:`/apis/ads/facebook/boost-post`,children:[_jsx(_components.code,{children:`targeting.locations`}),` просування`]}),`. Надсилання `,_jsx(_components.code,{children:`country`}),` повертає `,_jsx(_components.code,{children:`400`}),` з `,_jsx(_components.code,{children:`code: 101`}),`. Meta наповнює схожу аудиторію кілька годин.`]}),`\n`,_jsx(Heading,{level:`3`,id:`customer-list`,children:`Аудиторії списку клієнтів`}),`\n`,_jsx(ParamField,{body:`customerFileSource`,type:`string`,default:`USER_PROVIDED_ONLY`,id:`param-customer-file-source`,children:_jsxs(_components.p,{children:[`Звідки взялися дані списку, у термінах Meta: `,_jsx(_components.code,{children:`USER_PROVIDED_ONLY`}),` (люди надали їх вам), `,_jsx(_components.code,{children:`PARTNER_PROVIDED_ONLY`}),` (партнер надав їх вам) або `,_jsx(_components.code,{children:`BOTH_USER_AND_PARTNER_PROVIDED`}),`.`]})}),`\n`,_jsxs(_components.p,{children:[`Список клієнтів спочатку порожній. Додавайте людей через `,_jsx(_components.a,{href:`/apis/ads/facebook/audience-members`,children:`Учасники аудиторії`}),`. Хешовані ідентифікатори залишаються персональними даними: прочитайте цю сторінку, перш ніж завантажувати список.`]}),`\n`,_jsxs(RequestExample,{children:[_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`5`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`5`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`-H `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Authorization: Bearer API_KEY\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`-H `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`-X `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://api.ayrshare.com/api/ads/facebook/audiences`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`-d `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'{\"accountId\": \"1234567890\", \"name\": \"Site visitors 30d\", \"type\": \"website\", \"pixelId\": \"987654321098765\", \"retentionDays\": 30, \"urlContains\": [\"/pricing\"]}'`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`JavaScript`,numberOfLines:`22`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`22`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` API_KEY`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"API_KEY\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`fetch`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://api.ayrshare.com/api/ads/facebook/audiences\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` method:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"POST\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` headers:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\" `Bearer \"}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`API_KEY`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"`\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"application/json\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` body:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` JSON`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`stringify`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"accountId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"1234567890\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Site visitors 30d\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"website\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"pixelId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"987654321098765\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"retentionDays\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 30`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"urlContains\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"/pricing\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` })`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` })`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` .`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`then`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`((`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`res`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`=>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` res`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`json`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`())`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` .`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`then`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`((`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`json`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`=>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`json`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`))`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` .`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`catch`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`error`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`Python`,numberOfLines:`17`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`17`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` requests`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`headers `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'Authorization'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'Bearer API_KEY'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'Content-Type'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'application/json'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`payload `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"accountId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"1234567890\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Site visitors 30d\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"website\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"pixelId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"987654321098765\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"retentionDays\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`30`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"urlContains\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"/pricing\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`r `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` requests.post(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'https://api.ayrshare.com/api/ads/facebook/audiences'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`json`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`payload, `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`headers`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`headers)`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`print`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(r.json())`})]}),`\n`]})})})]}),`\n`,_jsxs(ResponseExample,{children:[_jsx(CodeBlock,{filename:`200: Success`,numberOfLines:`11`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`11`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"success\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"audience\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"23851234567890123\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Site visitors 30d\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"website\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"size\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"ready\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`300`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"description\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"This audience is still being populated.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"created\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-10-29T10:05:00.000Z\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`400: Field from another type`,numberOfLines:`7`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`7`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"action\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"request\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`101`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Missing or incorrect parameters. Please verify with the docs. https://www.ayrshare.com/docs/apis\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"details\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"ratio is not a recognised field.\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`400: Terms not accepted`,numberOfLines:`7`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`7`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"action\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"request\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`101`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Missing or incorrect parameters. Please verify with the docs. https://www.ayrshare.com/docs/apis\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"details\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Creating a custom audience needs the Custom Audience terms accepted on ad account act_123456789. A person with a role on the account accepts them at https://business.facebook.com/ads/manage/customaudiences/tos/?act=123456789\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`400: Meta refused the request`,numberOfLines:`7`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`7`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"action\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"ads\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`369`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Unable to create the audience. Please try again.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"details\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Meta's reason\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{PlansAvailable,HeaderAPI,default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"codeStyling":"system","config":{},"pageMetadata":{"title":"Створити аудиторію","description":"Створіть користувацьку аудиторію Facebook з відвідувачів, залучених людей, lookalike чи списку клієнтів, щоб включати чи виключати її під час просування.","api":"POST /ads/facebook/audiences","href":"/uk/apis/ads/facebook/create-audience"}}}},"mdxExtracts":{"tableOfContents":[{"title":"Параметри заголовка","slug":"header-parameters","depth":2,"children":[]},{"title":"Параметри тіла запиту","slug":"body-parameters","depth":2,"children":[{"title":"Аудиторії сайту","slug":"website","depth":3,"children":[]},{"title":"Аудиторії взаємодії","slug":"engagement","depth":3,"children":[]},{"title":"Схожі аудиторії","slug":"lookalike","depth":3,"children":[]},{"title":"Аудиторії списку клієнтів","slug":"customer-list","depth":3,"children":[]}]}],"codeExamples":{"request":{"type":"RequestExample","children":[{"filename":"cURL","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"shellscript\">\u003ccode language=\"shellscript\" numberOfLines=\"5\">\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#DCDCAA\">curl\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">-H \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Authorization: Bearer API_KEY\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">-H \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Content-Type: application/json\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">-X \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">POST\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> https://api.ayrshare.com/api/ads/facebook/audiences\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">-d \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">'{\"accountId\": \"1234567890\", \"name\": \"Site visitors 30d\", \"type\": \"website\", \"pixelId\": \"987654321098765\", \"retentionDays\": 30, \"urlContains\": [\"/pricing\"]}'\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"JavaScript","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"javascript\">\u003ccode language=\"javascript\" numberOfLines=\"22\">\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">const\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#4FC1FF\"> API_KEY\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"API_KEY\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">;\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">fetch\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"https://api.ayrshare.com/api/ads/facebook/audiences\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> method:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"POST\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> headers:\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Authorization\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> `Bearer \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#569CD6\">${\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#4FC1FF\">API_KEY\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#569CD6\">}\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">`\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Content-Type\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"application/json\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> body:\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#4FC1FF\"> JSON\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">stringify\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">({\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"accountId\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"1234567890\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"name\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Site visitors 30d\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"type\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"website\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"pixelId\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"987654321098765\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"retentionDays\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">:\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\"> 30\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"urlContains\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">:\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> [\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"/pricing\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> ]\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> })\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> })\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> .\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">then\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">((\u003c/span>\u003cspan style=\"color:#953800;--shiki-dark:#9CDCFE\">res\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">) \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">=>\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> res\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">json\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">())\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> .\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">then\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">((\u003c/span>\u003cspan style=\"color:#953800;--shiki-dark:#9CDCFE\">json\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">) \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">=>\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> console\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">log\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">json\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">))\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> .\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">catch\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">console\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">error\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">);\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"Python","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"python\">\u003ccode language=\"python\" numberOfLines=\"17\">\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\">import\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> requests\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">headers \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">'Authorization'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">'Bearer API_KEY'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">'Content-Type'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">'application/json'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">payload \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"accountId\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"1234567890\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"name\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Site visitors 30d\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"type\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"website\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"pixelId\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"987654321098765\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"retentionDays\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">30\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"urlContains\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: [\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"/pricing\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> ]\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">r \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> requests.post(\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">'https://api.ayrshare.com/api/ads/facebook/audiences'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#953800;--shiki-dark:#9CDCFE\">json\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">payload, \u003c/span>\u003cspan style=\"color:#953800;--shiki-dark:#9CDCFE\">headers\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">headers)\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#DCDCAA\">print\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(r.json())\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]},"response":{"type":"ResponseExample","children":[{"filename":"200: Success","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"11\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"status\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"success\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"audience\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"23851234567890123\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"name\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Site visitors 30d\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"type\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"website\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"size\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">null\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"status\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: { \u003c/span>\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\">\"ready\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">false\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\">\"code\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">300\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\">\"description\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"This audience is still being populated.\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"created\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"2026-10-29T10:05:00.000Z\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"400: Field from another type","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"7\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"action\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"request\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"status\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"error\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"code\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">101\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"message\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Missing or incorrect parameters. Please verify with the docs. https://www.ayrshare.com/docs/apis\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"details\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"ratio is not a recognised field.\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"400: Terms not accepted","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"7\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"action\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"request\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"status\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"error\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"code\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">101\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"message\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Missing or incorrect parameters. Please verify with the docs. https://www.ayrshare.com/docs/apis\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"details\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Creating a custom audience needs the Custom Audience terms accepted on ad account act_123456789. A person with a role on the account accepts them at https://business.facebook.com/ads/manage/customaudiences/tos/?act=123456789\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"400: Meta refused the request","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"7\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"action\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"ads\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"status\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"error\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"code\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">369\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"message\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Unable to create the audience. Please try again.\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"details\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Meta's reason\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]}},"endpoint":{"title":"Створити аудиторію","path":"/ads/facebook/audiences","servers":[{"url":"https://api.ayrshare.com/api"}],"method":"post","request":{"security":[{"title":"Bearer Auth","parameters":{"header":{"Authorization":{"type":"http","scheme":"bearer","description":"Bearer authentication header of the form `Bearer \u003ctoken>`, where `\u003ctoken>` is your auth token."}},"query":{},"cookie":{}}}],"parameters":{"query":{},"header":{},"cookie":{},"path":{}},"body":{"application/json":{"schemaArray":[{"type":"object","properties":{"accountId":[{"type":"string","description":"Рекламний акаунт, у якому створюється аудиторія, з рекламних акаунтів , з префіксом `act_` або без нього.","required":true}],"name":[{"type":"string","description":"Назва, що відображається в Ads Manager.","required":true}],"type":[{"type":"string","description":"`website` , `engagement` , `lookalike` або `customerList` . Кожен тип приймає лише власні поля, наведені нижче. Поле іншого типу повертає `400` з `code: 101` , що називає це поле.","required":true}],"idempotencyKey":[{"type":"string","description":"Нове унікальне значення, наприклад UUID, для кожної нової аудиторії. Якщо ви повторите запит із тим самим ключем, Ayrshare поверне першу відповідь із позначкою `idempotentReplayed: true` і не створить другу аудиторію. Ключ можна натомість надіслати в заголовку `Idempotency-Key` ; якщо надсилаєте обидва, вони мають збігатися. Повторне використання ключа з іншим запитом або поки перший запит ще виконується повертає `409` . `503` означає, що ключ не вдалося зарезервувати і нічого не створено: повторіть спробу пізніше з тим самим ключем."}],"pixelId":[{"type":"string","description":"Піксель Meta, події якого формують аудиторію.","required":true}],"retentionDays":[{"type":"number","description":"Скільки днів людина залишається в аудиторії після останньої взаємодії: від 1 до 730 для `page` та `instagram` , від 1 до 365 для `video` .","required":true}],"urlContains":[{"type":"array","items":[{"type":"object","properties":{}}],"description":"Враховувати лише візити на URL, що містять один із цих рядків, наприклад `[\"/pricing\"]` ."}],"event":[{"type":"string","description":"Врахована взаємодія. Значення є власними назвами Meta, і вони залежать від `source` : Будь-яке інше значення повертає `400` з `code: 101` і переліком значень для цього джерела.","required":true}],"source":[{"type":"string","description":"Де відбулася взаємодія: `page` (сторінка Facebook), `instagram` (акаунт Instagram) або `video` .","required":true}],"sourceIds":[{"type":"array","items":[{"type":"object","properties":{}}],"description":"Ідентифікатори сторінок, акаунтів Instagram або відео, на яких рахується взаємодія, у вигляді рядків.","required":true}],"seedAudienceId":[{"type":"string","description":"Аудиторія, на яку мають бути схожі люди, з Аудиторій . Meta потрібно щонайменше 100 людей у ній.","required":true}],"ratio":[{"type":"number","description":"Розмір схожої аудиторії як цілий відсоток людей у країнах, на які таргетується просування: від 1 (найближча відповідність) до 20 (найширше охоплення).","required":true}],"allowInternationalSeeds":[{"type":"boolean","description":"Дозволяє Meta брати вихідних людей з інших країн, коли в країні їх замало. За замовчуванням `false` ."}],"customerFileSource":[{"type":"string","description":"Звідки взялися дані списку, у термінах Meta: `USER_PROVIDED_ONLY` (люди надали їх вам), `PARTNER_PROVIDED_ONLY` (партнер надав їх вам) або `BOTH_USER_AND_PARTNER_PROVIDED` ."}]}}],"examples":{"example":{"value":{"accountId":"\u003cstring>","name":"\u003cstring>","type":"\u003cstring>","idempotencyKey":"\u003cstring>","pixelId":"\u003cstring>","retentionDays":123,"urlContains":[{}],"event":"\u003cstring>","source":"\u003cstring>","sourceIds":[{}],"seedAudienceId":"\u003cstring>","ratio":123,"allowInternationalSeeds":true,"customerFileSource":"\u003cstring>"}}}}}},"response":{},"deprecated":false}},"jsLinks":["/docs/_mintlify/custom/ayrshare-docs/80ea29d8530ebaa2/script.js","/docs/_mintlify/custom/ayrshare-docs/3e93073b19ca64e9/tools/maintainScroll.js"],"dynamicCss":".mint-mt-2 {\n margin-top: 0.5rem\n}\n.mint-flex {\n display: flex\n}\n.mint-cursor-pointer {\n cursor: pointer\n}\n.mint-items-center {\n align-items: center\n}\n.mint-rounded {\n border-radius: 0.25rem\n}\n.mint-px-1\\.5 {\n padding-left: 0.375rem;\n padding-right: 0.375rem\n}\n.mint-py-0\\.5 {\n padding-top: 0.125rem;\n padding-bottom: 0.125rem\n}\n.mint-text-sm {\n font-size: 0.875rem;\n line-height: 1.25rem\n}","subdomain":"ayrshare-docs","siteName":"Ayrshare Docs","title":"Створити аудиторію - Ayrshare Docs","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"en":{"href":"/apis/ads/facebook/create-audience","matchLevel":1},"es":{"href":"/es/apis/ads/facebook/create-audience","matchLevel":1},"cn":{"href":"/cn/apis/ads/facebook/create-audience","matchLevel":1,"hidden":true},"zh":{"href":"/zh/apis/ads/facebook/create-audience","matchLevel":1,"hidden":true},"pt-BR":{"href":"/pt-BR/apis/ads/facebook/create-audience","matchLevel":1},"fr":{"href":"/fr/apis/ads/facebook/create-audience","matchLevel":1},"de":{"href":"/de/apis/ads/facebook/create-audience","matchLevel":1},"vi":{"href":"/vi/apis/ads/facebook/create-audience","matchLevel":1},"ja":{"href":"/ja/apis/ads/facebook/create-audience","matchLevel":1},"uk":{"href":"/uk/apis/ads/facebook/create-audience","matchLevel":0},"hi":{"href":"/hi/apis/ads/facebook/create-audience","matchLevel":1},"ar":{"href":"/ar/apis/ads/facebook/create-audience","matchLevel":1},"zh-Hans":{"href":"/zh-Hans/apis/ads/facebook/create-audience","matchLevel":1},"zh-Hant":{"href":"/zh-Hant/apis/ads/facebook/create-audience","matchLevel":1}}},"lastModified":"2026-11-27T08:44:42.696Z","originalFileLocation":"uk/apis/ads/facebook/create-audience.mdx","locale":"uk"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"dark\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Створіть користувацьку аудиторію Facebook з відвідувачів, залучених людей, lookalike чи списку клієнтів, щоб включати чи виключати її під час просування.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Ayrshare Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/ayrshare-docs/tc_XJFteIEk_1d3D/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/docs/mintlify-assets/_mintlify/favicons/ayrshare-docs/tc_XJFteIEk_1d3D/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/ayrshare-docs/tc_XJFteIEk_1d3D/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/ayrshare-docs/tc_XJFteIEk_1d3D/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/ayrshare-docs/tc_XJFteIEk_1d3D/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/ayrshare-docs/tc_XJFteIEk_1d3D/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/ayrshare-docs/tc_XJFteIEk_1d3D/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/ayrshare-docs/tc_XJFteIEk_1d3D/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/ayrshare-docs/tc_XJFteIEk_1d3D/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Створити аудиторію - Ayrshare Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Створіть користувацьку аудиторію Facebook з відвідувачів, залучених людей, lookalike чи списку клієнтів, щоб включати чи виключати її під час просування.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Ayrshare Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://www.ayrshare.com/docs/uk/apis/ads/facebook/create-audience\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://ayrshare-docs.mintlify.site/docs/_mintlify/api/og/v2?division=Facebook+Ads\u0026amp;title=%D0%A1%D1%82%D0%B2%D0%BE%D1%80%D0%B8%D1%82%D0%B8+%D0%B0%D1%83%D0%B4%D0%B8%D1%82%D0%BE%D1%80%D1%96%D1%8E\u0026amp;description=%D0%A1%D1%82%D0%B2%D0%BE%D1%80%D1%96%D1%82%D1%8C+%D0%BA%D0%BE%D1%80%D0%B8%D1%81%D1%82%D1%83%D0%B2%D0%B0%D1%86%D1%8C%D0%BA%D1%83+%D0%B0%D1%83%D0%B4%D0%B8%D1%82%D0%BE%D1%80%D1%96%D1%8E+Facebook+%D0%B7+%D0%B2%D1%96%D0%B4%D0%B2%D1%96%D0%B4%D1%83%D0%B2%D0%B0%D1%87%D1%96%D0%B2%2C+%D0%B7%D0%B0%D0%BB%D1%83%D1%87%D0%B5%D0%BD%D0%B8%D1%85+%D0%BB%D1%8E%D0%B4%D0%B5%D0%B9%2C+lookalike+%D1%87%D0%B8+%D1%81%D0%BF%D0%B8%D1%81%D0%BA%D1%83+%D0%BA%D0%BB%D1%96%D1%94%D0%BD%D1%82%D1%96%D0%B2%2C+%D1%89%D0%BE%D0%B1+%D0%B2%D0%BA%D0%BB%D1%8E%D1%87%D0%B0%D1%82%D0%B8+%D1%87%D0%B8+%D0%B2%D0%B8%D0%BA%D0%BB%D1%8E%D1%87%D0%B0%D1%82%D0%B8+%D1%97%D1%97+%D0%BF%D1%96%D0%B4+%D1%87%D0%B0%D1%81+%D0%BF%D1%80%D0%BE%D1%81%D1%83%D0%B2%D0%B0%D0%BD%D0%BD%D1%8F.\u0026amp;theme=722a7095c53b95fd5a0669f2\u0026amp;signature=ac7d5974a675b6f25c55fe322c289fcef4a3af3d4c095b92f668daecee326fab\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Створити аудиторію - Ayrshare Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Створіть користувацьку аудиторію Facebook з відвідувачів, залучених людей, lookalike чи списку клієнтів, щоб включати чи виключати її під час просування.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://ayrshare-docs.mintlify.site/docs/_mintlify/api/og/v2?division=Facebook+Ads\u0026amp;title=%D0%A1%D1%82%D0%B2%D0%BE%D1%80%D0%B8%D1%82%D0%B8+%D0%B0%D1%83%D0%B4%D0%B8%D1%82%D0%BE%D1%80%D1%96%D1%8E\u0026amp;description=%D0%A1%D1%82%D0%B2%D0%BE%D1%80%D1%96%D1%82%D1%8C+%D0%BA%D0%BE%D1%80%D0%B8%D1%81%D1%82%D1%83%D0%B2%D0%B0%D1%86%D1%8C%D0%BA%D1%83+%D0%B0%D1%83%D0%B4%D0%B8%D1%82%D0%BE%D1%80%D1%96%D1%8E+Facebook+%D0%B7+%D0%B2%D1%96%D0%B4%D0%B2%D1%96%D0%B4%D1%83%D0%B2%D0%B0%D1%87%D1%96%D0%B2%2C+%D0%B7%D0%B0%D0%BB%D1%83%D1%87%D0%B5%D0%BD%D0%B8%D1%85+%D0%BB%D1%8E%D0%B4%D0%B5%D0%B9%2C+lookalike+%D1%87%D0%B8+%D1%81%D0%BF%D0%B8%D1%81%D0%BA%D1%83+%D0%BA%D0%BB%D1%96%D1%94%D0%BD%D1%82%D1%96%D0%B2%2C+%D1%89%D0%BE%D0%B1+%D0%B2%D0%BA%D0%BB%D1%8E%D1%87%D0%B0%D1%82%D0%B8+%D1%87%D0%B8+%D0%B2%D0%B8%D0%BA%D0%BB%D1%8E%D1%87%D0%B0%D1%82%D0%B8+%D1%97%D1%97+%D0%BF%D1%96%D0%B4+%D1%87%D0%B0%D1%81+%D0%BF%D1%80%D0%BE%D1%81%D1%83%D0%B2%D0%B0%D0%BD%D0%BD%D1%8F.\u0026amp;theme=722a7095c53b95fd5a0669f2\u0026amp;signature=ac7d5974a675b6f25c55fe322c289fcef4a3af3d4c095b92f668daecee326fab\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/docs/mintlify-assets/_mintlify/favicons/ayrshare-docs/tc_XJFteIEk_1d3D/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Ayrshare Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#2266C2\">\u003clink data-mint-head rel=\"canonical\" href=\"https://www.ayrshare.com/docs/uk/apis/ads/facebook/create-audience\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/docs/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/uk/apis/ads/facebook/create-audience.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"uk\" href=\"https://www.ayrshare.com/docs/uk/apis/ads/facebook/create-audience\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://www.ayrshare.com/docs/apis/ads/facebook/create-audience\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"es\" href=\"https://www.ayrshare.com/docs/es/apis/ads/facebook/create-audience\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"pt-BR\" href=\"https://www.ayrshare.com/docs/pt-BR/apis/ads/facebook/create-audience\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"fr\" href=\"https://www.ayrshare.com/docs/fr/apis/ads/facebook/create-audience\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"de\" href=\"https://www.ayrshare.com/docs/de/apis/ads/facebook/create-audience\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"vi\" href=\"https://www.ayrshare.com/docs/vi/apis/ads/facebook/create-audience\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"ja\" href=\"https://www.ayrshare.com/docs/ja/apis/ads/facebook/create-audience\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"hi\" href=\"https://www.ayrshare.com/docs/hi/apis/ads/facebook/create-audience\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"ar\" href=\"https://www.ayrshare.com/docs/ar/apis/ads/facebook/create-audience\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"zh-Hans\" href=\"https://www.ayrshare.com/docs/zh-Hans/apis/ads/facebook/create-audience\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"zh-Hant\" href=\"https://www.ayrshare.com/docs/zh-Hant/apis/ads/facebook/create-audience\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://www.ayrshare.com/docs/apis/ads/facebook/create-audience\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://www.ayrshare.com/#organization\",\"name\":\"Ayrshare Docs\",\"url\":\"https://www.ayrshare.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/ayrshare-docs/7bWzjvNjeuvs-M3N/images/logos/ayrshare-docs-logo-light.svg?fit=max\u0026auto=format\u0026n=7bWzjvNjeuvs-M3N\u0026q=85\u0026s=8d23367f493d06599eecbbfa2b6325cf\"}},{\"@type\":\"WebSite\",\"@id\":\"https://www.ayrshare.com/docs#website\",\"name\":\"Ayrshare Docs\",\"url\":\"https://www.ayrshare.com/docs\",\"publisher\":{\"@id\":\"https://www.ayrshare.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://www.ayrshare.com/docs/uk/apis/ads/facebook/create-audience#webpage\",\"url\":\"https://www.ayrshare.com/docs/uk/apis/ads/facebook/create-audience\",\"name\":\"Створити аудиторію\",\"description\":\"Створіть користувацьку аудиторію Facebook з відвідувачів, залучених людей, lookalike чи списку клієнтів, щоб включати чи виключати її під час просування.\",\"dateModified\":\"2026-11-27T08:44:42.696Z\",\"isPartOf\":{\"@id\":\"https://www.ayrshare.com/docs#website\"},\"breadcrumb\":{\"@id\":\"https://www.ayrshare.com/docs/uk/apis/ads/facebook/create-audience#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://www.ayrshare.com/docs/uk/apis/ads/facebook/create-audience#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"API Endpoints\",\"item\":\"https://www.ayrshare.com/docs/uk/apis/overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Ads\",\"item\":\"https://www.ayrshare.com/docs/uk/apis/ads/overview\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Facebook Ads\",\"item\":\"https://www.ayrshare.com/docs/uk/apis/ads/facebook/get-ad-accounts\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Створити аудиторію\",\"item\":\"https://www.ayrshare.com/docs/uk/apis/ads/facebook/create-audience\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://www.ayrshare.com/docs/uk/apis/ads/facebook/create-audience#apireference\",\"headline\":\"Створити аудиторію\",\"name\":\"Створити аудиторію\",\"description\":\"Створіть користувацьку аудиторію Facebook з відвідувачів, залучених людей, lookalike чи списку клієнтів, щоб включати чи виключати її під час просування.\",\"url\":\"https://www.ayrshare.com/docs/uk/apis/ads/facebook/create-audience\",\"mainEntityOfPage\":{\"@id\":\"https://www.ayrshare.com/docs/uk/apis/ads/facebook/create-audience#webpage\"},\"dateModified\":\"2026-11-27T08:44:42.696Z\",\"publisher\":{\"@id\":\"https://www.ayrshare.com/#organization\"},\"isPartOf\":{\"@id\":\"https://www.ayrshare.com/docs#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Ayrshare Docs\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Ayrshare Docs\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/docs/uk/apis/ads/facebook/create-audience.md","siteName":"Ayrshare Docs","nav":{"global":null,"languages":[{"language":"en","pages":[{"title":"en","href":"/apis/ads/facebook/create-audience"}]},{"language":"es","pages":[{"title":"es","href":"/es/apis/ads/facebook/create-audience"}]},{"language":"cn","hidden":true,"pages":[{"title":"cn","href":"/cn/apis/ads/facebook/create-audience","hidden":true}]},{"language":"zh","hidden":true,"pages":[{"title":"zh","href":"/zh/apis/ads/facebook/create-audience","hidden":true}]},{"language":"pt-BR","pages":[{"title":"pt-BR","href":"/pt-BR/apis/ads/facebook/create-audience"}]},{"language":"fr","pages":[{"title":"fr","href":"/fr/apis/ads/facebook/create-audience"}]},{"language":"de","pages":[{"title":"de","href":"/de/apis/ads/facebook/create-audience"}]},{"language":"vi","pages":[{"title":"vi","href":"/vi/apis/ads/facebook/create-audience"}]},{"language":"ja","pages":[{"title":"ja","href":"/ja/apis/ads/facebook/create-audience"}]},{"language":"uk","anchors":[{"anchor":"Documentation","icon":"code","groups":[{"group":"Get Started","pages":[{"title":"API Ayrshare для соціальних мереж","href":"/uk/introduction"},{"title":"Посібник швидкого старту","href":"/uk/quickstart"},{"group":"MCP Server","pages":[{"title":"MCP-сервер Ayrshare: керуйте API за допомогою AI-агентів","sidebarTitle":"Огляд","icon":"robot","href":"/uk/additional/mcp-action-server"},{"title":"Під'єднання до MCP Server","sidebarTitle":"Під'єднання і налаштування","icon":"plug","href":"/uk/additional/mcp-action-connect"},{"title":"Каталог інструментів MCP","sidebarTitle":"Каталог інструментів","icon":"list","href":"/uk/additional/mcp-action-tools"},{"title":"Claude Code Plugin","icon":"terminal","href":"/uk/additional/mcp-claude-code-plugin"},{"title":"n8n","icon":"diagram-project","href":"/uk/additional/mcp-n8n"},{"title":"Підключення соціальних акаунтів клієнтів","sidebarTitle":"Підключення клієнтів","icon":"user-plus","href":"/uk/additional/mcp-client-onboarding"},{"title":"Documentation MCP","sidebarTitle":"Documentation MCP","icon":"magnifying-glass","href":"/uk/additional/mcp-server"}]}]},{"group":"API Endpoints","pages":[{"title":"Огляд Ayrshare API","href":"/uk/apis/overview"},{"group":"GraphQL","pages":[{"title":"Огляд GraphQL API","href":"/uk/apis/graphql/overview"},{"title":"Використання GraphQL API","href":"/uk/apis/graphql/using-the-api"},{"title":"Помилки GraphQL","href":"/uk/apis/graphql/errors"},{"title":"Ліміти та білінг GraphQL","href":"/uk/apis/graphql/limits"},{"title":"Оголошення","href":"/uk/apis/graphql/ads"}]},{"group":"Ads","pages":[{"title":"Ads API: просування публікацій Meta і керування Google Ads","sidebarTitle":"Огляд Ads API","href":"/uk/apis/ads/overview"},{"title":"Рекламні кампанії","href":"/uk/apis/ads/campaigns"},{"group":"Facebook Ads","pages":[{"title":"Accounts","api":"GET /ads/facebook/accounts","href":"/uk/apis/ads/facebook/get-ad-accounts"},{"title":"Кампанії","api":"GET /ads/facebook/campaigns","href":"/uk/apis/ads/facebook/get-ad-campaigns"},{"title":"Просування допису","api":"POST /ads/facebook/boost","href":"/uk/apis/ads/facebook/boost-post"},{"title":"Просунуті оголошення","api":"GET /ads/facebook/ads","href":"/uk/apis/ads/facebook/get-boosted-ads"},{"title":"Історія","api":"GET /ads/facebook/history","href":"/uk/apis/ads/facebook/get-ad-history"},{"title":"Insights","api":"GET /ads/facebook/insights","href":"/uk/apis/ads/facebook/get-ad-insights"},{"title":"Інтереси","api":"GET /ads/facebook/interests","href":"/uk/apis/ads/facebook/get-ad-interests"},{"title":"Регіони","api":"GET /ads/facebook/regions","href":"/uk/apis/ads/facebook/get-ad-regions"},{"title":"Міста","api":"GET /ads/facebook/cities","href":"/uk/apis/ads/facebook/get-ad-cities"},{"title":"DSA-рекомендації","api":"GET /ads/facebook/dsaRecommendations","href":"/uk/apis/ads/facebook/get-dsa-recommendations"},{"title":"Оновити рекламу","api":"PUT /ads/facebook/ads","href":"/uk/apis/ads/facebook/put-ad-update"},{"title":"Аудиторії","description":"Список користувацьких аудиторій рекламного акаунта Facebook із типом, розміром і тим, чи може просування вже на них таргетуватися.","api":"GET /ads/facebook/audiences","href":"/uk/apis/ads/facebook/get-audiences"},{"title":"Створити аудиторію","api":"POST /ads/facebook/audiences","href":"/uk/apis/ads/facebook/create-audience"},{"title":"Видалити аудиторію","description":"Остаточно видаліть за ID користувацьку аудиторію рекламного акаунта Facebook, зокрема з Ads Manager. Спершу видаліть схожі аудиторії на її основі.","api":"DELETE /ads/facebook/audiences/{id}","href":"/uk/apis/ads/facebook/delete-audience"},{"title":"Учасники аудиторії","api":"POST /ads/facebook/audiences/{id}/users","href":"/uk/apis/ads/facebook/audience-members"}]},{"group":"Instagram Ads","pages":[{"title":"Accounts","api":"GET /ads/instagram/accounts","href":"/uk/apis/ads/instagram/get-ad-accounts"},{"title":"Кампанії","api":"GET /ads/instagram/campaigns","href":"/uk/apis/ads/instagram/get-ad-campaigns"},{"title":"Регіони","api":"GET /ads/instagram/regions","href":"/uk/apis/ads/instagram/get-ad-regions"},{"title":"Міста","api":"GET /ads/instagram/cities","href":"/uk/apis/ads/instagram/get-ad-cities"},{"title":"DSA-рекомендації","api":"GET /ads/instagram/dsaRecommendations","href":"/uk/apis/ads/instagram/get-dsa-recommendations"},{"title":"Просування допису","api":"POST /ads/instagram/boost","href":"/uk/apis/ads/instagram/boost-post"},{"title":"Просунуті оголошення","api":"GET /ads/instagram/ads","href":"/uk/apis/ads/instagram/get-boosted-ads"},{"title":"Історія","api":"GET /ads/instagram/history","href":"/uk/apis/ads/instagram/get-ad-history"},{"title":"Insights","api":"GET /ads/instagram/insights","href":"/uk/apis/ads/instagram/get-ad-insights"},{"title":"Інтереси","api":"GET /ads/instagram/interests","href":"/uk/apis/ads/instagram/get-ad-interests"},{"title":"Оновити рекламу","api":"PUT /ads/instagram/ads","href":"/uk/apis/ads/instagram/put-ad-update"},{"title":"Аудиторії","api":"GET /ads/instagram/audiences","href":"/uk/apis/ads/instagram/get-audiences"},{"title":"Створити аудиторію","api":"POST /ads/instagram/audiences","href":"/uk/apis/ads/instagram/create-audience"},{"title":"Видалити аудиторію","api":"DELETE /ads/instagram/audiences/{id}","href":"/uk/apis/ads/instagram/delete-audience"},{"title":"Учасники аудиторії","api":"POST /ads/instagram/audiences/{id}/users","href":"/uk/apis/ads/instagram/audience-members"}]},{"group":"Google Ads","pages":[{"title":"Accounts","api":"GET /ads/google/accounts","href":"/uk/apis/ads/google/get-ad-accounts"},{"title":"Пошукові кампанії Google","sidebarTitle":"Пошукові кампанії","api":"POST /ads/google/campaigns","href":"/uk/apis/ads/google/search-campaigns"},{"title":"Кампанії Google Performance Max","sidebarTitle":"Кампанії Performance Max","api":"POST /ads/google/campaigns","href":"/uk/apis/ads/google/performance-max-campaigns"},{"title":"Отримати кампанію","api":"GET /ads/google/campaigns/{id}","href":"/uk/apis/ads/google/get-campaign"},{"title":"Оновити кампанію","api":"PUT /ads/google/campaigns/{id}","href":"/uk/apis/ads/google/update-campaign"},{"title":"Insights","api":"GET /ads/google/insights","href":"/uk/apis/ads/google/get-ad-insights"}]},{"group":"TikTok Ads","pages":[{"title":"Просування допису","api":"POST /ads/tiktok/boost","href":"/uk/apis/ads/tiktok/boost"}]},{"group":"Boost on Behalf","pages":[{"title":"Просування дописів вашої команди","href":"/uk/apis/ads/delegations/boost-on-behalf"},{"title":"Створення делегувань просування","api":"POST /ads/delegations","href":"/uk/apis/ads/delegations/create-delegations"},{"title":"Отримання делегувань просування","api":"GET /ads/delegations","href":"/uk/apis/ads/delegations/get-delegations"},{"title":"Відкликання делегування просування","api":"DELETE /ads/delegations/:id","href":"/uk/apis/ads/delegations/delete-delegation"}]}]},{"group":"Analytics","pages":[{"title":"Analytics API: метрики постів, акаунтів і посилань","sidebarTitle":"Огляд Analytics API","href":"/uk/apis/analytics/overview"},{"title":"Аналітика публікації","api":"POST /analytics/post","href":"/uk/apis/analytics/post"},{"title":"Аналітика допису за Social ID","api":"POST /analytics/post","href":"/uk/apis/analytics/social-by-id"},{"title":"Аналітика в соціальній мережі","api":"POST /analytics/social","href":"/uk/apis/analytics/social"},{"title":"Плейлисти YouTube","api":"GET /analytics/youTubePlaylists","href":"/uk/apis/analytics/youtube-playlists"},{"title":"Кількість підписників Instagram онлайн","api":"GET /analytics/getInstagramOnlineFollowers","href":"/uk/apis/analytics/instagram-follower-count"}]},{"group":"Auto Schedule","pages":[{"title":"Огляд Auto Schedule","href":"/uk/apis/auto-schedule/overview"},{"title":"Налаштувати автоматичний розклад","api":"POST /auto-schedule/set","href":"/uk/apis/auto-schedule/set-schedule"},{"title":"Видалити автоматичний розклад","api":"DELETE /auto-schedule/delete","href":"/uk/apis/auto-schedule/delete-schedule"},{"title":"Список автопланувань","api":"GET /auto-schedule/list","href":"/uk/apis/auto-schedule/list-schedule"},{"title":"Отримати очікувані дописи автопланувальника","api":"GET /auto-schedule/pending","href":"/uk/apis/auto-schedule/pending-auto-schedule"}]},{"group":"Automations","tag":"BETA","pages":[{"title":"Огляд Automations API","href":"/uk/apis/automations/overview"},{"title":"Створити автоматизацію","api":"POST /automations","href":"/uk/apis/automations/create-automation"},{"title":"Список автоматизацій","api":"GET /automations","href":"/uk/apis/automations/list-automations"},{"title":"Отримати автоматизацію","api":"GET /automations/:id","href":"/uk/apis/automations/get-automation"},{"title":"Оновлення автоматизації","api":"PUT /automations/:id","href":"/uk/apis/automations/update-automation"},{"title":"Видалити автоматизацію","api":"DELETE /automations/:id","href":"/uk/apis/automations/delete-automation"},{"title":"Отримати активність автоматизації","api":"GET /automations/:id/activity","href":"/uk/apis/automations/get-activity"}]},{"group":"Brand","pages":[{"title":"Brand API: Дані публічних облікових записів і конкурентів","href":"/uk/apis/brand/overview"}]},{"group":"Comments","pages":[{"title":"Огляд Comments API","href":"/uk/apis/comments/overview"},{"title":"Опублікувати коментар","api":"POST /comments","href":"/uk/apis/comments/post-comment"},{"title":"Отримати коментарі","api":"GET /comments/:id","href":"/uk/apis/comments/get-comments"},{"title":"Видалення коментарів","api":"DELETE /comments/:id","href":"/uk/apis/comments/delete-comments"},{"title":"Відповідь на коментар","api":"POST /comments/reply/:commentId","href":"/uk/apis/comments/reply-to-comment"}]},{"group":"Feed","pages":[{"title":"Огляд RSS-стрічок","href":"/uk/apis/feeds/overview"},{"title":"Додати RSS-стрічку","api":"POST /feed","href":"/uk/apis/feeds/add-feed"},{"title":"Видалити RSS-стрічку","api":"DELETE /feed","href":"/uk/apis/feeds/delete-feed"},{"title":"Отримати RSS-стрічки","api":"GET /feed","href":"/uk/apis/feeds/get-feeds"},{"title":"Оновлення RSS-стрічки","api":"PUT /feed","href":"/uk/apis/feeds/update-feed"}]},{"group":"Generate","pages":[{"title":"Огляд Generate API","href":"/uk/apis/generate/overview"},{"title":"Генерування тексту поста","api":"POST /generate/post","href":"/uk/apis/generate/post-text"},{"title":"Переписування публікації","api":"POST /generate/rewrite","href":"/uk/apis/generate/rewrite-post"},{"title":"Транскрибувати відео","api":"POST /generate/transcription","href":"/uk/apis/generate/transcribe-video"},{"title":"Переклад поста","api":"POST /generate/translate","href":"/uk/apis/generate/translate-post"},{"title":"Генерація alt-тексту","api":"POST /generate/altText","href":"/uk/apis/generate/image-alt-text"},{"title":"Аналіз настроїв","api":"POST /generate/sentiment","href":"/uk/apis/generate/sentiment"}]},{"group":"Hashtags","pages":[{"title":"Огляд Hashtags API","href":"/uk/apis/hashtags/overview"},{"title":"Автохештеги","api":"POST /hashtags/auto","href":"/uk/apis/hashtags/auto-hashtags"},{"title":"Перевірка заборонених хештегів","api":"GET /hashtags/banned","href":"/uk/apis/hashtags/check-hashtags"},{"title":"Рекомендація хештегів","api":"GET /hashtags/recommend","href":"/uk/apis/hashtags/recommend-hashtags"},{"title":"Пошук хештегів","api":"GET /hashtags/search","href":"/uk/apis/hashtags/search-hashtags"}]},{"group":"History","pages":[{"title":"Огляд History API","href":"/uk/apis/history/overview"},{"title":"Історія дописів","api":"GET /history","href":"/uk/apis/history/get-history"},{"title":"Історія посту за ID","api":"GET /history/:id","href":"/uk/apis/history/get-history-id"},{"title":"Отримати історію постів для соціальної платформи","api":"GET /history/:platform","href":"/uk/apis/history/history-platform"},{"title":"Історія постів за Social ID","api":"GET /history/:socialId","href":"/uk/apis/history/history-social-id"}]},{"group":"Links","pages":[{"title":"Огляд Links API","href":"/uk/apis/links/overview"},{"title":"Створити коротке посилання","api":"POST /links","href":"/uk/apis/links/create-short-link"},{"title":"Оновити коротке посилання","api":"PUT /links/:id","href":"/uk/apis/links/update-short-link"},{"title":"Аналітика посилань","api":"GET /links/:id","href":"/uk/apis/links/link-analytics"}]},{"group":"Listening","pages":[{"title":"Listen API: моніторинг та згадки в соціальних мережах","href":"/uk/apis/listen/overview"},{"title":"Отримати дані бренду","api":"GET /brand/byUser","href":"/uk/apis/listen/brand-user"},{"group":"Search","pages":[{"title":"Пошук сторінок Facebook","api":"GET /brand/search/facebook","href":"/uk/apis/listen/search/fb-page-search"},{"title":"Пошук у LinkedIn","api":"GET /brand/search/linkedin","href":"/uk/apis/listen/search/linkedin-search"}]},{"group":"Keyword","pages":[{"title":"Пошук твітів за ключовим словом","api":"GET /listen/keyword","href":"/uk/apis/listen/keyword/search-tweets"}]}]},{"group":"Media","pages":[{"title":"Огляд Media API","href":"/uk/apis/media/overview"},{"title":"Завантаження зображення або відео","api":"POST /media/upload","href":"/uk/apis/media/upload-media"},{"title":"Завантаження великих медіафайлів","api":"GET /media/uploadUrl","href":"/uk/apis/media/upload-large-media"},{"title":"Перевірка існування Media URL","api":"POST /media/urlExists","href":"/uk/apis/media/verify-media-url"},{"title":"Отримати всі медіа з галереї","api":"GET /media","href":"/uk/apis/media/get-media-in-gallery"},{"title":"Змінити розмір зображення","api":"POST /media/resize","href":"/uk/apis/media/resize"},{"title":"Метадані медіафайлу","api":"GET /media/meta","href":"/uk/apis/media/get-media-metadata"},{"title":"Пошук аудіо Instagram","api":"GET /media/instagram/audio/search","href":"/uk/apis/media/search-instagram-audio"},{"title":"Метадані аудіо Instagram","api":"GET /media/instagram/audio/{audioId}","href":"/uk/apis/media/get-instagram-audio"}]},{"group":"Messages","pages":[{"title":"Огляд Messages API","href":"/uk/apis/messages/overview"},{"title":"Надсилання повідомлення","api":"POST /messages/:platform","href":"/uk/apis/messages/send-message"},{"title":"Отримати повідомлення","api":"GET /messages/:platform","href":"/uk/apis/messages/get-messages"},{"title":"Оновити повідомлення","api":"PUT /messages/:platform/:conversationId","href":"/uk/apis/messages/update-messages"},{"title":"Встановити автовідповідь","api":"POST /messages/autoresponse","href":"/uk/apis/messages/set-auto-response"},{"title":"Get Auto Response","api":"GET /messages/autoresponse","href":"/uk/apis/messages/get-auto-response"}]},{"group":"Post","pages":[{"title":"Огляд Post API","href":"/uk/apis/post/overview"},{"title":"Publish a Post API: Публікація в будь-яку соціальну мережу","api":"POST /post","href":"/uk/apis/post/post"},{"title":"Отримати допис","api":"GET /post/:id","href":"/uk/apis/post/get-post"},{"title":"Видалити публікацію","api":"DELETE /post","href":"/uk/apis/post/delete-post"},{"title":"Оновити допис","api":"PATCH /post","href":"/uk/apis/post/update-post"},{"title":"Повторити спробу публікації допису","api":"PUT /post/retry","href":"/uk/apis/post/retry-post"},{"title":"Copy a Post","api":"POST /post/copy","href":"/uk/apis/post/copy-post"},{"title":"Масова публікація","api":"POST /post/bulk","href":"/uk/apis/post/bulk-post"},{"group":"Social Networks","pages":[{"title":"Підтримувані соціальні мережі","href":"/uk/apis/post/social-networks/overview"},{"title":"Bluesky API","icon":"bluesky","href":"/uk/apis/post/social-networks/bluesky"},{"title":"Facebook Page API","icon":"facebook","href":"/uk/apis/post/social-networks/facebook"},{"title":"Google Business Profile API","icon":"google","href":"/uk/apis/post/social-networks/google"},{"title":"Instagram API","icon":"instagram","href":"/uk/apis/post/social-networks/instagram"},{"title":"LinkedIn API","icon":"linkedin","href":"/uk/apis/post/social-networks/linkedin"},{"title":"Pinterest API","icon":"pinterest","href":"/uk/apis/post/social-networks/pinterest"},{"title":"Reddit API","icon":"reddit","href":"/uk/apis/post/social-networks/reddit"},{"title":"Snapchat API","icon":"snapchat","href":"/uk/apis/post/social-networks/snapchat"},{"title":"Telegram API","icon":"telegram","href":"/uk/apis/post/social-networks/telegram"},{"title":"Threads API","icon":"threads","href":"/uk/apis/post/social-networks/threads"},{"title":"TikTok API","icon":"tiktok","href":"/uk/apis/post/social-networks/tiktok"},{"title":"X API","icon":"x-twitter","href":"/uk/apis/post/social-networks/x-twitter"},{"title":"YouTube API","icon":"youtube","href":"/uk/apis/post/social-networks/youtube"}]}]},{"group":"Profiles","pages":[{"title":"Огляд Profiles API","href":"/uk/apis/profiles/overview"},{"title":"Create a User Profile","api":"POST /profiles","href":"/uk/apis/profiles/create-profile"},{"title":"Видалення User Profile","api":"DELETE /profiles","href":"/uk/apis/profiles/delete-profile"},{"title":"Оновити User Profile","api":"PATCH /profiles","href":"/uk/apis/profiles/update-profile"},{"title":"Get User Profiles","api":"GET /profiles","href":"/uk/apis/profiles/get-profiles"},{"title":"Від'єднати соціальну мережу","api":"DELETE /profiles/social","href":"/uk/apis/profiles/unlink-social-network"},{"title":"Огляд соціального зв'язування","href":"/uk/apis/profiles/social-linking-overview"},{"title":"Створення Link Session","api":"POST /profiles/link-sessions","href":"/uk/apis/profiles/create-link-session"},{"title":"Отримання Link Session","api":"GET /profiles/link-sessions/{sessionId}","href":"/uk/apis/profiles/get-link-session"},{"title":"Відкликання Link Session","api":"DELETE /profiles/link-sessions/{sessionId}","href":"/uk/apis/profiles/revoke-link-session"},{"title":"Генерація URL для підключення (generateJWT)","api":"POST /profiles/generateJWT","deprecated":true,"href":"/uk/apis/profiles/generate-jwt"}]},{"group":"Reviews","pages":[{"title":"Reviews API Overview","href":"/uk/apis/reviews/overview"},{"title":"Отримання всіх відгуків","api":"GET /reviews","href":"/uk/apis/reviews/get-reviews"},{"title":"Отримати один відгук","api":"GET /reviews/:id","href":"/uk/apis/reviews/get-one-review"},{"title":"Відповідь на відгук","api":"POST /reviews","href":"/uk/apis/reviews/reply-review"},{"title":"Видалити відповідь на відгук","api":"DELETE /reviews","href":"/uk/apis/reviews/delete-review-reply"}]},{"group":"User","pages":[{"title":"Огляд User Profile API","href":"/uk/apis/user/overview"},{"title":"Деталі User Profile","api":"GET /user","href":"/uk/apis/user/profile-details"},{"title":"Pinterest Boards","api":"GET /user/details/pinterest","href":"/uk/apis/user/pinterest-board"},{"title":"Оновити користувача","api":"PATCH /user/:platform","href":"/uk/apis/user/update-user"},{"title":"Бізнес-профіль WhatsApp","api":"GET /user/details/whatsapp","href":"/uk/apis/user/whatsapp-profile"},{"title":"Пакетне отримання всіх","api":"GET /user/batch","href":"/uk/apis/user/batch-all-users"}]},{"group":"Utils","pages":[{"title":"Статус запиту на співавтора","api":"GET /post/collaborators/:id","href":"/uk/apis/utils/instagram-get-collaborator"},{"title":"Reddit Flair","api":"GET /post/redditFlair/:subreddit","href":"/uk/apis/utils/reddit-get-flair"},{"title":"User Lookups","api":"GET /user/lookups","href":"/uk/apis/utils/user-lookups"},{"group":"YouTube","pages":[{"title":"Категорії YouTube","api":"GET /post/youtubeCategories/:region","href":"/uk/apis/utils/youtube-categories"},{"title":"Set YouTube Watermark","api":"POST /post/youTubeWatermark","href":"/uk/apis/utils/set-youtube-watermark"},{"title":"Видалити водяний знак YouTube","api":"DELETE /post/youTubeWatermark","href":"/uk/apis/utils/remove-youtube-watermark"}]}]},{"group":"Validate","pages":[{"title":"Огляд Validate API","href":"/uk/apis/validate/overview"},{"title":"Валідація медіа","href":"/uk/apis/validate/validate-media"},{"title":"Перевірка довжини посту","api":"POST /validate/postLength","href":"/uk/apis/validate/check-post-length"},{"title":"Перевірка існування Subreddit","api":"GET /validate/redditExists/:subreddit","href":"/uk/apis/validate/check-subreddit"},{"title":"Модерація контенту","api":"POST /validate/moderation","href":"/uk/apis/validate/moderation"},{"title":"Валідація JSON","api":"POST /validate/json","href":"/uk/apis/validate/validate-json"},{"title":"Валідація допису","api":"POST /validate/post","href":"/uk/apis/validate/validate-post"}]},{"group":"Webhooks","pages":[{"title":"Огляд Webhooks","href":"/uk/apis/webhooks/overview"},{"title":"Дії Webhook","href":"/uk/apis/webhooks/actions"},{"title":"Реєстрація Webhook","api":"POST /hook/webhook","href":"/uk/apis/webhooks/register"},{"title":"Скасувати реєстрацію вебхука","api":"DELETE /hook/webhook","href":"/uk/apis/webhooks/unregister"},{"title":"Ротація секретного ключа підпису","api":"POST /hook/webhook/secret","href":"/uk/apis/webhooks/rotate-signing-secret"},{"title":"Список зареєстрованих вебхуків","api":"GET /hook/webhook","href":"/uk/apis/webhooks/list"},{"title":"Webhook History","api":"GET /hook/history","href":"/uk/apis/webhooks/history"}]}]},{"group":"Multiple Users","pages":[{"title":"Launch Plan: базовий multi-user Business план","href":"/uk/multiple-users/business-launch-overview"},{"title":"Огляд Business Plan","href":"/uk/multiple-users/business-plan-overview"},{"title":"Інтеграція користувачів","href":"/uk/multiple-users/user-integration"},{"title":"Інтеграція API для бізнесу","href":"/uk/multiple-users/api-integration-business"},{"title":"Віджет Ayrshare Connect","href":"/uk/multiple-users/connect-widget"},{"title":"Побудуйте власне спливаюче вікно зв'язування","href":"/uk/multiple-users/connect-direct-mode"},{"title":"Події завершення зв'язування","href":"/uk/multiple-users/link-completion-events"},{"title":"Керування кількома User Profiles","href":"/uk/multiple-users/manage-user-profiles"}]},{"group":"Dashboard","pages":[{"title":"Огляд Ayrshare Dashboard: керування публікацією в соцмережах","href":"/uk/dashboard/overview"},{"group":"Connect Social Accounts","pages":[{"title":"Під'єднайте свої облікові записи соціальних мереж","href":"/uk/dashboard/connect-social-accounts/overview"},{"title":"Прив'язка Bluesky","icon":"bluesky","href":"/uk/dashboard/connect-social-accounts/bluesky"},{"title":"Підключення Facebook","icon":"facebook","href":"/uk/dashboard/connect-social-accounts/facebook"},{"title":"Прив'язка Google Business Profile","icon":"google","href":"/uk/dashboard/connect-social-accounts/google-business"},{"title":"Instagram Linking","icon":"instagram","href":"/uk/dashboard/connect-social-accounts/instagram"},{"title":"Зв'язування LinkedIn","icon":"linkedin","href":"/uk/dashboard/connect-social-accounts/linkedin"},{"title":"Підключення Pinterest","icon":"pinterest","href":"/uk/dashboard/connect-social-accounts/pinterest"},{"title":"Підключення Reddit","icon":"reddit","href":"/uk/dashboard/connect-social-accounts/reddit"},{"title":"Підключення Snapchat","icon":"snapchat","href":"/uk/dashboard/connect-social-accounts/snapchat"},{"title":"Підключіть групу або канал Telegram до Ayrshare","icon":"telegram","href":"/uk/dashboard/connect-social-accounts/telegram"},{"title":"Threads Linking","icon":"threads","href":"/uk/dashboard/connect-social-accounts/threads"},{"title":"Підключення TikTok","icon":"tiktok","href":"/uk/dashboard/connect-social-accounts/tiktok"},{"title":"Налаштування власного X API Key","icon":"x-twitter","href":"/uk/dashboard/connect-social-accounts/x-twitter-byo-keys"},{"title":"Прив'язка X","icon":"x-twitter","href":"/uk/dashboard/connect-social-accounts/x-twitter"},{"title":"Підключення YouTube","icon":"youtube","href":"/uk/dashboard/connect-social-accounts/youtube"}]},{"title":"Як опублікувати допис у соціальних мережах","href":"/uk/dashboard/publish-post"},{"title":"Перегляд JSON","href":"/uk/dashboard/view-json"},{"title":"Відкликання доступу до соціальних мереж","href":"/uk/dashboard/revoke-access"},{"group":"RSS","pages":[{"title":"RSS, Substack та YouTube-стрічки","href":"/uk/dashboard/automated-rss-feeds"},{"title":"Знайти URL RSS-стрічки","href":"/uk/dashboard/find-rss"}]}]},{"group":"Additional","pages":[{"group":"What's New At Ayrshare","pages":[{"title":"Останні оновлення","href":"/uk/whatsnew/latest"},{"title":"Update Archive","href":"/uk/whatsnew/archive"},{"title":"Майбутні зміни API","mode":"wide","href":"/uk/whatsnew/upcoming-api-changes"}]},{"group":"Errors","pages":[{"title":"Огляд помилок","href":"/uk/errors/overview"},{"title":"HTTP Status Codes","href":"/uk/errors/errors-http"},{"title":"Коди помилок Ayrshare","href":"/uk/errors/errors-ayrshare"}]},{"title":"Max Pack","mode":"wide","href":"/uk/additional/maxpack"},{"group":"Media Guidelines","pages":[{"title":"Вимоги до зображень і відео в соціальних мережах","href":"/uk/media-guidelines/overview"},{"title":"Bluesky","icon":"bluesky","href":"/uk/media-guidelines/bluesky"},{"title":"Facebook Pages","icon":"facebook","href":"/uk/media-guidelines/facebook-pages"},{"title":"Google Business Profile","icon":"google","href":"/uk/media-guidelines/google-business-profile"},{"title":"Instagram","icon":"instagram","href":"/uk/media-guidelines/instagram"},{"title":"LinkedIn","icon":"linkedin","href":"/uk/media-guidelines/linkedin"},{"title":"Pinterest","icon":"pinterest","href":"/uk/media-guidelines/pinterest"},{"title":"Reddit","icon":"reddit","href":"/uk/media-guidelines/reddit"},{"title":"Snapchat","icon":"snapchat","href":"/uk/media-guidelines/snapchat"},{"title":"Telegram","icon":"telegram","href":"/uk/media-guidelines/telegram"},{"title":"Threads","icon":"threads","href":"/uk/media-guidelines/threads"},{"title":"TikTok","icon":"tiktok","href":"/uk/media-guidelines/tiktok"},{"title":"WhatsApp","icon":"whatsapp","href":"/uk/media-guidelines/whatsapp"},{"title":"X","icon":"x-twitter","href":"/uk/media-guidelines/x-twitter"},{"title":"YouTube","icon":"youtube","href":"/uk/media-guidelines/youtube"}]},{"group":"Packages \u0026 Guides","pages":[{"title":"Огляд SDK та посібників з інтеграції Ayrshare","mode":"wide","href":"/uk/packages-guides/overview"},{"title":"Airtable","href":"/uk/packages-guides/airtable"},{"title":"Bubble.io","href":"/uk/packages-guides/bubble"},{"title":"Flutter","href":"/uk/packages-guides/flutter"},{"title":"FlutterFlow","href":"/uk/packages-guides/flutterflow"},{"title":"Make","href":"/uk/packages-guides/make"},{"title":"n8n","href":"/uk/packages-guides/n8n"},{"title":"Node.js NPM","href":"/uk/packages-guides/nodejs"},{"title":"Notion","href":"/uk/packages-guides/notion"},{"title":"Python PyPI","href":"/uk/packages-guides/python"},{"title":"Retool","href":"/uk/packages-guides/retool"}]},{"title":"Стан системи","href":"/uk/additional/status"},{"group":"Testing \u0026 Verification","pages":[{"title":"Hurl","href":"/uk/testing/hurl"},{"title":"Кінцеві точки валідації","href":"/uk/testing/validation-endpoints"},{"title":"Postman","href":"/uk/testing/postman"},{"title":"Верифікація постів","href":"/uk/testing/post-verification"},{"title":"Перевірки перед публікацією","href":"/uk/testing/pre-publish-checks"}]},{"group":"ISO Codes","pages":[{"title":"Коди країн","href":"/uk/iso-codes/country"},{"title":"Коди мов","href":"/uk/iso-codes/language"}]}]}]},{"anchor":"Help Center","icon":"lightbulb","pages":[{"title":"Help Center","href":"/uk/help-center/overview"}]}]},{"language":"hi","pages":[{"title":"hi","href":"/hi/apis/ads/facebook/create-audience"}]},{"language":"ar","pages":[{"title":"ar","href":"/ar/apis/ads/facebook/create-audience"}]},{"language":"zh-Hans","pages":[{"title":"zh-Hans","href":"/zh-Hans/apis/ads/facebook/create-audience"}]},{"language":"zh-Hant","pages":[{"title":"zh-Hant","href":"/zh-Hant/apis/ads/facebook/create-audience"}]}]},"basePath":"","title":"Створити аудиторію - Ayrshare Docs","deploymentId":"dpl_3UWrZQodFHfxeNZNwJGtAN3LFPAW","buildId":"dpl_3UWrZQodFHfxeNZNwJGtAN3LFPAW","dynamics":["c2aa737661","2b790eda92","b0f84f53ff"],"chunks":["OpenApiReferenceProvider-CTHyyeRf.js","snippetPresets-BMdpRCxb.js","utils-65AYcjfi.js","style-to-object-BY3JEAdk.js","utils-CRPs3K4p.js","v4-DIgz8zy6.js","addUniqueKeysToSchema-CC8CXHAU.js","conditional-requirements-CFM0id0Q.js","cloneDeep-DnTPJyjR.js","_Uint8Array-DltIFDhI.js","isObject-FP1Yky1u.js","ApiExamples-BmEVj_uj.js","usePlaygroundInputsStore-5xBwOVka.js","shallow-QpQlGReT.js","isEqual-4QLmF2GJ.js","CodeSnippets-B0iGodOk.js","CodeSnippet-Cy-nvZF7.js","use-playground-group-access-BPfR0_D1.js","Page-Bq_BC2g4.js","api-description-markdown-DXw2P8dC.js","DynamicMarkdown-ml2SNL31.js","SectionHeading-D0OhyutH.js","MethodPill-CF74kDsA.js","getPastedJson-CALFOPz5.js","Check2Icon-cho9ghlh.js","axios-CsQoIw0U.js"]}