This page describes API endpoints for viewing, editing, and creating Targeting rules for Affiliates.
GET
/backend/open-api/v1/users/affiliates/{affiliate_id}/targeting
Review all targeting rules of a selected affiliate.
Headers
Name | Value |
---|---|
Authorization | Bearer <token> |
Path parameters
Name | Type | Description | Required |
---|---|---|---|
affiliate_id |
Integer | ID of an affiliate. | ☑️ |
Response
{
"data": [
{
"id": 3860,
"name": "Only DC",
"description": "Created by API K at 06/12/24, 3:10 PM",
"pql": "country IN ['US'] AND regions IN ['DC']",
"is_active": true
}
],
"total": 2,
"per_page": 200,
"page": 1,
"pages": 1,
"source": [
{
"id": 450,
"name": "API Targeting"
}
]
}
POST
backend/open-api/v1/users/affiliates/{affiliate_id}/targeting
Create a new Targeting rule for an affiliate.
Headers
Name | Value |
---|---|
Content-Type | application/json |
Authorization | Bearer <token> |