This function is intended for receiving offer's URLs details
URL
http://[platform_URL]/api/manager/get-offer-urls
Input Parameters
Field Name | Required | Description |
---|---|---|
api-key | Yes | Ask your Admin for API activation. API Key could be found on your Profile page. |
AdditionalUrl[offer_id] | Yes | Offer ID, which you need to get URLs for |
Output Parameters
Field Name | Description |
---|---|
id | Offer Url ID |
offer_id | Parent Offer ID |
auto_approve | Auto approve value (always 1) |
copy_subids | Value for Sub IDs copying (1 - Copy, 2 - Do not copy) |
name | URL title |
type | URL type (1 - Available for Affiliates, 2 - Receive % of Traffic, 5 - Offer with % of traffic) |
url | The actual URL (for type 1, 2) |
status | Status (1 - Active, 2 - Inactive) |
percent | The percent value (for type 2, 5) |
rotation_offer_id | The Offer ID for rotation (for type 5) |
Sample
Request
https://demo.scaleo-up.com/api/manager/get-offer-urls?api-key=9eb500a476603546a779e6418117ef0403aa3f64&AdditionalUrl[offer_id]=10
Response
[
{
"id": 0,
"offer_id": "10",
"auto_approve": "1",
"copy_subids": "1",
"name": "Main Landing Page URL",
"url": "http://www.cheese.com/?oid={offer_id}&aid={affiliate_id}",
"type": "0",
"percent": "0",
"status": "1",
"rotation_offer_id": ""
},
{
"id": "1",
"offer_id": "10",
"name": "URL for Good Affiliates",
"url": "https://www.google.com.ua/?oid={offer_id}",
"type": "1",
"percent": "0",
"status": "1",
"rotation_offer_id": "0",
"auto_approve": "1",
"copy_subids": "1"
},
{
"id": "2",
"offer_id": "10",
"name": "Try This Offer",
"url": "",
"type": "5",
"percent": "25",
"status": "1",
"rotation_offer_id": "1",
"auto_approve": "1",
"copy_subids": "0"
},
{
"id": "3",
"offer_id": "10",
"name": "And google everywhere",
"url": "https://www.google.com/?oid={offer_id}",
"type": "2",
"percent": "12",
"status": "2",
"rotation_offer_id": "1",
"auto_approve": "1",
"copy_subids": "1"
}
]