Advertiser object
Example
{
"id": "21",
"name": "Any advertiser",
"url": "http://advertiser.domain/",
"timezone": "Europe/Moscow",
"default_dsp_commission": "35",
"currency": "USD",
"prepayment_mode": "false",
"hide_billing": "true",
"credit": 10000,
"max_budget": 4707.27
}
| Attribute | Description | Type | Values | Default value |
|---|---|---|---|---|
| max_budget | Max budget, available for advertiser | integer | 0.. | 0 |
manage_campaigns_commissions | Activates managing DSP/Agency commissions at campaign level | boolean | false, true | |
hide_billing | Activating/hiding financial info in UI | boolean | false, true | |
credit | ||||
max_budget |
Campaign (Display)
Example
{
"name": "Test campaign!",
"advertiser_id": 27,
"test-field": "test",
"starts": "2013-11-12 00:00:00",
"ends": "2014-03-09 22:59:59",
"currency": "USD",
"creatives_type": "plain",
"landing_page": "http://getintent.com",
"disabled": true,
"budget": 1000,
"financing": {
"type": "max_cpm",
"price": 3.5
},
"commissions": {
"agency": "0",
"dsp": "10"
},
"group_id": 0,
"was_enabled": 1421915484,
"targeting": {
"geo": {
"countries": [
"US"
],
"regions": [
"US/FL",
"US/PA",
"US/NJ"
],
"cities": [
"Jersey City",
"Houston"
],
"dma_code": [
"500",
"502"
],
"zip_code": [
"10010"
]
},
"segments": [
1009,
1048,
1050,
1071
],
"categories": [
"iab2",
"iab2-1",
"iab2-2",
"iab2-3",
"iab2-12"
],
"frequency_capping": {
"hour": 4,
"day": 10,
"week": 30
},
"weekdays": [
"1",
"2",
"3",
"4",
"5",
"6",
"7"
],
"time": [
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9",
"10",
"11",
"12",
"13",
"14",
"15",
"16",
"17",
"18",
"19",
"20",
"21",
"22",
"23",
"0"
],
"ssps": [
"goog",
"bsw.rubicon",
"bsw.pubmatic"
],
"page_language": [
"en"
],
"devices": [
"DESKTOP",
"SMARTPHONE",
"TABLET"
],
"positions": [
"above",
"below",
"unknown"
],
"operating_systems": [
"IOS",
"ANDROID",
"WINDOWS",
"LINUX",
"MACOS",
"OTHER",
"WINDOWS_PHONE"
],
"browsers": [
"FIREFOX",
"IE",
"EDGE",
"OPERA",
"YANDEX",
"CHROME",
"SAFARI",
"ANDROID_BROWSER",
"OTHER"
]
},
"daily_budget": 12,
"site_id": 42,
"creatives": [
210,
3013,
3014,
3015,
3016,
3017,
3018,
3019,
3020,
3021,
3022,
3023,
3024
]
}
Campaign (In-App)
{
"name": "In app campaign",
"advertiser_id": "26",
"starts": "2015-01-02 21:00:00",
"ends": "2015-01-11 20:59:59",
"group_id": "181",
"currency": "USD",
"budget": "3000",
"financing": {
"type": "max_cpm",
"price": "3.25"
},
"targeting": {
"devices": [
"SMARTPHONE"
],
"geo": {
"regions": [
"77",
"78"
]
},
"mobile": {
"application_category": [
"Business",
"IT&Gadgets",
"Education&Science",
"Reference"
]
},
"frequency_capping": {
"day": "10",
"week": "30"
},
"operating_systems": [
"IOS"
]
},
"creatives_type": "plain",
"landing_page": "https://...",
"was_enabled": 1420453290,
"disabled": true,
"commissions": {
"agency": 0,
"dsp": "15"
},
"for_mobile_device": "true",
"negative_targeting": {
"mobile": {
"application": [
"555717978",
"866990710",
"799442576"
]
}
},
"creatives": [
"6869",
"6870",
"6871",
"6872",
"6873",
"6874",
"6875",
"6876"
]
}
Campaigns group object
Example
{
"id": "1",
"name": "Test",
"advertiser_id": "2",
"budget_limit": "100000.00"
}
Domains list
Example
{
"name": "Test list",
"advertiser_id": 27,
"domains": [
"yandex.ru",
"google.com",
"yahoo.com"
]
}
Creative
Standard Creative Example
{
"name": "1220849983_p9290052.jpg",
"advertiser_id": 27,
"creative_type": "plain",
"url": "cdn.adhigh.net/media/1424168069-1220849983_p9290052.jpg",
"size": "700x525",
"alternative_creative_id": "false"
}
Dynamic Creative Example
{
"name": "240 for show",
"advertiser_id": 27,
"creative_type": "dynamic_creatives",
"site_logo": "cdn.adhigh.net/media/1432213856-logo.png",
"size": "240x400",
"snippets": [
169
]
}
Third-party Creative Example
{
"name": "Test_rtbmedia",
"advertiser_id": 27,
"creative_type": "3rd_party_creatives",
"size": "300x250",
"HTML": "<iframe src=\"http://localnetmarketer.com/ads/frame/300x250/722647/ad.html?t=142986782&click=[[CLICK_PREFIX_ENCODED]]\" style=\"border:0;width:300px;height:250px\"></iframe>\n\n",
"ssl_compliant": "false",
"click_tracking": "false"
}
Native Creative Example
{
"name": "http://whoabella.com/whoabella-connected-s1e16-with-change-comes-challenge",
"advertiser_id": 27,
"creative_type": "native_creatives",
"landing_page": "http://whoabella.com/monitordtr.php?i=pp.s1&url=http://whoabella.com/whoabella-connected-s1e16-with-change-comes-challenge/?utm_source=getintent&utm_medium=referral&utm_campaign=3bluemedia_camp1_cv1",
"assets": [
{
"type": "img",
"url": "nm.contextweb.com/media/1434570383-connected_cast.jpg",
"image_type": 3,
"size": "300x260"
},
{
"type": "title",
"text": "Check Out Latest Episode Of 'Connected'"
},
{
"type": "data",
"data_type": 1,
"value": "Whoa Bella!"
},
{
"type": "data",
"data_type": 2,
"value": "We've been rooting for Rosie's career to take off for a long time. Anyone can see that she's crazy talented, gorgeous and really freakin' deserves her big break and the sooner the better.\n\n"
}
]
}
Site object
Example
{
"name": "http://test.com",
"advertiser_id": 27,
"click_control": "false",
"feed_url": "http://names.ru/bitrix/catalog_export/rtb.xml"
}
Segment
Standard Segment Example
{
"name": "Test",
"advertiser_id": 27,
"available_to_all": false,
"type": "standard",
"terms": [
{
"type": "site_visitor",
"values": [
198
],
"times": 1,
"days": 30,
"negative": false
}
]
}
Third-party Segment Example
{
"name": "AmberData/Продукты питания/Молочные продукты",
"available_to_all": true,
"type": "3rdparty",
"3rd_party_id": "vi_316104",
"price": 25,
"currency": "RUB"
}
Snippet
Example
{
"name": "standard_240x400",
"js": "createGIADelement = function(element) {\n var item = document.createElement(\"div\");\n item.setAttribute(\"class\",\"__gi_item\");\n var link = document.createElement(\"a\");\n item.appendChild(link);\n link.setAttribute(\"href\",element['url']);\n link.setAttribute(\"target\",\"_blank\");\n var image = document.createElement(\"img\");\n link.appendChild(image);\n image.setAttribute(\"src\",element['picture']);\n var desc = document.createElement(\"div\");\n link.appendChild(desc);\n desc.setAttribute(\"class\",\"__gi_desc\");\n desc.appendChild(document.createTextNode(element['name']));\n var price = document.createElement(\"div\");\n link.appendChild(price);\n price.setAttribute(\"class\",\"__gi_price\");\n price.appendChild(document.createTextNode(element['price'] + \" \" + element['currencySymbol']));\n\n return item;\n}\n\ncreateGIADlogo = function(logoImg) {\n var logo = document.createElement(\"div\");\n if (logoImg && logoImg!==\"\"){\n logo.setAttribute(\"class\",\"__gi_header\");\n var link = document.createElement(\"a\");\n logo.appendChild(link);\n link.setAttribute(\"href\",\"[[LANDING_PAGE]]\");\n link.setAttribute(\"target\",\"_blank\");\n var sp = document.createElement(\"span\");\n link.appendChild(sp);\n var image = document.createElement(\"img\");\n sp.appendChild(image);\n image.setAttribute(\"src\", logoImg);\n }\n return logo;\n}\n\nvar domain = (typeof __GetI_domain) == \"undefined\" ? \"px.adhigh.net\" : __GetI_domain;\nvar src = ('https:' == document.location.protocol ? 'https://' : 'http://') + domain + '/ad240x400.css';\ndocument.write(\"<link rel='stylesheet' type='text/css' href='\"+src+\"'/>\");\n\nvar container = document.createElement(\"div\");\ncontainer.setAttribute(\"class\",\"_gi_ad_240x400\");\ndocument.getElementById(elementId).appendChild(container);\nvar siteLogo = \"[[SITE_LOGO]]\";\nif (siteLogo){\n siteLogo = ('https:' == document.location.protocol ? 'https://' : 'http://') + siteLogo; \t \n}\ncontainer.appendChild(createGIADlogo(siteLogo));\nfor(var i=0; i<products.length && i<4; i++) {\n container.appendChild(createGIADelement(products[i]));\n}"
}