curl \
-H "Authorization: Bearer API_KEY" \
-X GET "https://api.ayrshare.com/api/ads/reddit/interests?search=tech"
{
"status": "success",
"kind": "interests",
"results": [
{ "id": "2707000000101", "name": "Technology", "kind": "interests" },
{ "id": "2707000000102", "name": "Tech News", "kind": "interests" }
],
"meta": {
"pagination": { "hasMore": false }
}
}
{
"action": "request",
"status": "error",
"code": 101,
"message": "Missing or incorrect parameters. Please verify with the docs. https://www.ayrshare.com/docs/apis",
"details": "Targeting search needs a query of 1 to 100 characters."
}
Reddit Ads
Інтереси
Шукайте рекламні інтереси Reddit за назвою, до 25 збігів, і отримайте ID інтересів для targeting.interests під час просування допису Reddit.
GET
/
ads
/
reddit
/
interests
curl \
-H "Authorization: Bearer API_KEY" \
-X GET "https://api.ayrshare.com/api/ads/reddit/interests?search=tech"
{
"status": "success",
"kind": "interests",
"results": [
{ "id": "2707000000101", "name": "Technology", "kind": "interests" },
{ "id": "2707000000102", "name": "Tech News", "kind": "interests" }
],
"meta": {
"pagination": { "hasMore": false }
}
}
{
"action": "request",
"status": "error",
"code": 101,
"message": "Missing or incorrect parameters. Please verify with the docs. https://www.ayrshare.com/docs/apis",
"details": "Targeting search needs a query of 1 to 100 characters."
}
Знаходьте інтереси Reddit для націлювання. Надсилайте
id кожного вибраного інтересу в targeting.interests, коли просуваєте допис.
searchшукає збіг у будь-якій частині назви інтересу без урахування регістру.- Повертається до 25 збігів на одній сторінці.
meta.pagination.hasMoreзавждиfalse. - Відсутній, порожній або довший за 100 символів
searchповертаєcode: 101.
Параметри заголовка
Параметри запиту
curl \
-H "Authorization: Bearer API_KEY" \
-X GET "https://api.ayrshare.com/api/ads/reddit/interests?search=tech"
{
"status": "success",
"kind": "interests",
"results": [
{ "id": "2707000000101", "name": "Technology", "kind": "interests" },
{ "id": "2707000000102", "name": "Tech News", "kind": "interests" }
],
"meta": {
"pagination": { "hasMore": false }
}
}
{
"action": "request",
"status": "error",
"code": 101,
"message": "Missing or incorrect parameters. Please verify with the docs. https://www.ayrshare.com/docs/apis",
"details": "Targeting search needs a query of 1 to 100 characters."
}