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
兴趣
按关键词搜索 Snapchat 兴趣类别,获取可在 Snapchat 推广中定位的兴趣 ID。
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."
}
按关键词搜索 Snapchat 兴趣类别。推广 Snap时,将你想要的每个兴趣的
id 发送到 targeting.interests 中。
- Snapchat 的兴趣即其 Snap Lifestyle Categories,例如“Bargain Hunters”或“Beauty Mavens”。
- 搜索会匹配名称中包含你的搜索词的任何兴趣。不区分大小写。
- 响应最多返回 25 个匹配的兴趣,全部在一页中。请使用更具体的词来缩小列表。
- 结果来自 Snapchat 的美国类别列表。
- 每个结果都有
id、name和path。path显示该兴趣在 Snapchat 类别树中的位置。
请求头参数
查询参数
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."
}