campaignId
: a merchant campaign IDsiteId
: a publisher site ID[
{
"id": 1,
"name": "test",
"imageUrl": "http://google.com",
"description": "tteesstt",
"creatives": [
{
"id": 1704,
"width": 250,
"height": 250,
"imageUrl": "http://ad.accesstrade.co.id/274ad4786c3abca69fa097b85867d9a4/1704_250x250-real-accesstrade.jpg",
"imageLink": "<a href="http://click.st-dsbd-id.asean-accesstrade.net/adv.php?rk=0001bc000001" target="_blank"><img src="http://imp.st-dsbd-id.asean-accesstrade.net/img.php?rk=0001bc000001" border="0"/></a>"
},
{
"id": 1703,
"width": 250,
"height": 250,
"imageUrl": "https://s3-ap-southeast-1.amazonaws.com/images.accesstrade.co.id/274ad4786c3abca69fa097b85867d9a4/1703_at 250x250_20170126041921061.jpg",
"imageLink": "<a href="http://click.st-dsbd-id.asean-accesstrade.net/adv.php?rk=0001bb000001" target="_blank"><img src="http://imp.st-dsbd-id.asean-accesstrade.net/img.php?rk=0001bb000001" border="0"/></a>"
}
]
}
]
campaignId
: a merchant campaign IDsiteId
: a publisher site ID[
{
"id": 2352,
"text": "ACCESS TRADE",
"textLink": "<a href=\"http://click.accesstrade.co.id/adv.php?rk=00000m000002\">www.accesstrade.co.id<img src=\"http://imp.accesstrade.co.id/img.php?rk=00000m000002\" width=\"1\" height=\"1\" border=\"0\" alt=\"\" /></a>"
},
{
"id": 2353,
"text": "ACCESS TRADEEEE",
"textLink": "<a href=\"http://click.accesstrade.co.id/adv.php?rk=00000m000002\">www.accesstrade.co.id<img src=\"http://imp.accesstrade.co.id/img.php?rk=00000m000003\" width=\"1\" height=\"1\" border=\"0\" alt=\"\" /></a>"
}
]
campaignId
: a merchant campaign IDsiteId
: a publisher site ID{
"affiliateLink": "http://click.accesstrade.co.id/adv.php?rk=00000p000003"
}
}
#### Create Custom Creative
* POST /v1/publishers/me/sites/{siteId}/campaigns/{campaignId}/creatives/custom
* campaignId: a merchant campaign ID
* siteId: a publisher site ID
* [Publisher API Authentication required](/api/how-do-i-authenticate-publisher-api-requests.html)
* Request:
{ “landingUrl”: “http://landing.url.com”, “imageUrl”: “http://google.com”, “anchorText”: “google”, “name”: “test123”, “subIds”: [ { “name”: “test_sub_id_1”, “value”: “foo” }, { “name”: “test_sub_id_2”, “value”: “bar” } ] }
* Response:
* 200 OK
{ “id”: 2313, “name”: “test123”, “affiliateLink”: “https://click.accesstra.de/go/QhW1RSIK”, “textLink”: “<a href="http://click.accesstrade.co.id/adv.php?rk=00000m000002&test_sub_id_1=foo&test_sub_id_2=bar">google<img src="http://imp.accesstrade.co.id/img.php?rk=00000m000002" width="1" height="1" border="0" alt="" /></a>”, “imageLink”: “<a href="http://click.accesstrade.co.id/adv.php?rk=00000p000002&test_sub_id_1=foo&test_sub_id_2=bar" target="_blank"><img src="http://imp.accesstrade.co.id/img.php?rk=00000p000002" border="0"/></a>”, “isGoogleAdsUrlsVisible”: true } ```