curl \
-H "Authorization: Bearer API_KEY" \
-X GET "https://api.ayrshare.com/api/ads/snapchat/interests?search=beauty"
{
"status": "success",
"kind": "interests",
"results": [
{
"id": "SLC_2",
"name": "Beauty Mavens",
"path": "/Beauty/Beauty Mavens",
"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."
}
Snapchat Ads
Sở thích
Tìm danh mục sở thích của Snapchat theo từ khóa để lấy ID sở thích mà bạn có thể nhắm tới trong một lượt boost Snapchat.
GET
/
ads
/
snapchat
/
interests
curl \
-H "Authorization: Bearer API_KEY" \
-X GET "https://api.ayrshare.com/api/ads/snapchat/interests?search=beauty"
{
"status": "success",
"kind": "interests",
"results": [
{
"id": "SLC_2",
"name": "Beauty Mavens",
"path": "/Beauty/Beauty Mavens",
"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."
}
Tìm danh mục sở thích của Snapchat theo từ khóa. Gửi
id của mỗi sở thích bạn muốn trong targeting.interests khi bạn boost một Snap.
- Sở thích của Snapchat là các Snap Lifestyle Categories, chẳng hạn “Bargain Hunters” hoặc “Beauty Mavens”.
- Tìm kiếm khớp mọi sở thích có tên chứa từ khóa của bạn. Không phân biệt chữ hoa chữ thường.
- Phản hồi trả về tối đa 25 sở thích khớp, tất cả trên một trang. Dùng từ khóa cụ thể hơn để thu hẹp danh sách.
- Kết quả lấy từ danh sách danh mục của Snapchat cho Hoa Kỳ.
- Mỗi kết quả có
id,namevàpath.pathcho biết vị trí của sở thích trong cây danh mục của Snapchat.
Tham số Header
Tham số truy vấn
curl \
-H "Authorization: Bearer API_KEY" \
-X GET "https://api.ayrshare.com/api/ads/snapchat/interests?search=beauty"
{
"status": "success",
"kind": "interests",
"results": [
{
"id": "SLC_2",
"name": "Beauty Mavens",
"path": "/Beauty/Beauty Mavens",
"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."
}