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."
}