Сравнение версий

Ключ

  • Эта строка добавлена.
  • Эта строка удалена.
  • Изменено форматирование.

...

Блок кода
languagejs
titleExample
linenumberstrue
        {
            "id": "21",
            "name": "Any advertiser",
            "url": "http://advertiser.domain/",
			"manage_campaigns_commissions": "true",
			"default_agency_commission": "15",            
			"default_dsp_commission": "35",
            "currency": "USD",
            "prepayment_mode": "false",
            "hide_billing": "true",
            "credit": 10000,
			"max_budget": 4707.			"max_budget": 4707.27
		}

Advertiser attributes

AttributeRequiredTypeDescription
nameyesstringAdvertiser name
urlnostringAdvertiser domain
default_dsp_commissionyesfloatDefault DSP commission for any advertiser campaign
default_agency_commission

yes

floatDefault agency commission for any advertiser campaign
currencynostringAdvertiser currency
hide_billingnobooleanActivating/hiding financial info in UI
manage_campaigns_commissionsnobooleanActivates managing DSP/Agency commissions at campaign level (UI)
creditnofloatAdvertiser overspend limit

Campaign

Browser campaign

currencynostringAdvertiser currency

Campaign

Browser campaign

Блок кода
Блок кода
languagejs
titleExample
linenumberstrue
{
	"name": "Test campaign!",
	"advertiser_id": 27,
	"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
	},
	"commissionsgroup_id": {
		"agency": "0"0,
		"dsp": "10"
	},
	"group_id": 0,
	"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"
		]
	},
	"negative_targeting": {
		"domains_lists": [
			"6"
		]
	},
	"daily_budget": 12,
	"site_id": 42,
	"creatives": [
		210,
		3013,
		3014,
		3015,
		3016,
		3017,
		3018,
		3019,
		3020,
		3021,
		3022,
		3023,
		3024
	]
}

In-App campaign

		3022,
		3023,
		3024
	]
}

In-App campaign

Блок кода
languagejs
      {
Блок кода
languagejs
      {
            "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",
            "budgetname": "3000",
In            "financing": {
   app campaign",
             "typeadvertiser_id": "max_cpm26",
                "pricestarts": "3.25"2015-01-02 21:00:00",
            }"ends": "2015-01-11 20:59:59",
            "targetinggroup_id": {"181",
            "currency": "USD",
     "devices": [
        "budget": "3000",
            "SMARTPHONEfinancing": {
                ] "type": "max_cpm",
	                "geoprice": {"3.25"
            },
            "regionstargeting": [{
                        "77","devices": [
                        "78SMARTPHONE"
                ],
	    ]
            "geo": {
   },
                "mobile": {
					"application_category"regions": [
                        "Business77",
                        "IT&Gadgets78",
                    ]
     "Education&Science",
           },
                "Referencemobile": {
					"application_category": [
                   ]     "Business",
                }        "IT&Gadgets",
                 "frequency_capping": {
       "Education&Science",
                       "day": "10Reference",
                    "week": "30"]
                },
                "operatingfrequency_systemscapping": [{
                    "IOS""day": "10",
                ]
    "week": "30"
                },
                "creativesoperating_typesystems": "plain",
[
                 "landing_page": "https://...",   "IOS"
            "disabled": true,
     ]
       "commissions": {
    },
            "agencycreatives_type": 0"plain",
                "dsp"landing_page": "15"https://...",
            }"disabled": true,
            "for_mobile_device": "true",
            "negative_targeting": {
                "mobile": {
                    "application": [
                        "555717978",
                        "866990710",
                        "799442576"
                    ]
                }
            },
            "creatives": [
                "6869",
                "6870",
                "6871",
                "6872",
                "6873",
                "6874",
                "6875",
                "6876"
            ]
        }

...

AttributeRequiredTypeDescription
nameyesstringCampaign name
currencyyesstringISO-4217 currency code
startsyes
YYYY-MM-DD HH:MM:SS formatted string
Campaign start time (UTC)
endsyes
YYYY-MM-DD HH:MM:SS formatted string
Campaign end time (UTC)
for_mobile_devicenobooleanIs in-app campaign (default false)
group_idnointegerCampaign groupId in case campaign is sharing budget with other campaigns
creative_typeyesstring

Campaign creative type, enum value

"plain"/"3rd_party_creatives"/"dynamic_creatives""video"/"native_creatives"

budgetyesfloatCampaign budget
disablednobooleanActivates/stops campaign (default false)
financingyesobjectCampaign pricing model
landing_pageyesstringDeclared campaign landing page URL
daily_budget
nofloatCampaign budget limit
site_idnointegerCampaign related site object
creativesyesarray of integersCampaign creatives
targetingyesobjectCampaign positive targetings
array of integersCampaign creatives
targetingyesobjectCampaign positive targetings
negative_targetingnoobjectCampaign negative targetings
fp_switch
nostring

Fillrate predictor

"on" - enabled

"off" - disabled

"inherit" - inherit fillrate predictor state from advertiser

budget_pacing
nostringCampaign budget pacing. Values: "DAILY", "CAMPAIGN" (default "CAMPAIGN").negative_targetingnoobjectCampaign negative targetings


Campaign Financing

 

AttributeRequiredTypeDescription
typeyesstringType of financing: fixed_cpm, max_cpm, target_cpc, target_cpmv, fixed_cpc, target_cpa
priceyesstringPrice value.
dynamic_pricesnoarray of objectDynamic pricing Micro Bidding configuration. See table below for object description.

...

TargetingTypeDescription
geoobjectPlaceholder for geo targetings

geo.countries

array of stringsCountry codes

geo.regions

array of stringsCountry region codes

geo.cities

array of stringsCities

geo.dma_code

array of stringsDMA codes

geo.zip_code

array of stringsZip codes
segmentsarray of stringsUser segment targeting
segments_allarray of stringsUser segment targeting - all at once
categoriesarray of stringsIAB content category targeting
frequency_capping
objectFrequency capping
    frequency_capping.week
integerImpressions per week (optional)
    frequency_capping.day
integerImpressions per day (optional)
    frequency_capping.hour
integerImpressions per hour (optional)
weekdays
array of integersWeekday targeting: 1(Monday)..7(Sunday)
time
array of integersHour targeting: 0..23
sspsarray of stringsSSP targeting
page_languagearray of stringsBrowser language
devices
array of strings

Device targeting: "DESKTOP","SMARTPHONE","TABLET"

positions
array of stringsPosition: "above","below","unknown"
operating_systems
array of strings

Operating systems targeting: "IOS","ANDROID","WINDOWS","LINUX","MACOS","OTHER","WINDOWS_PHONE"

browsers
array of strings

Browser targeting: "FIREFOX","IE","EDGE","OPERA","YANDEX","CHROME","SAFARI","ANDROID_BROWSER","OTHER"

domainsarray of stringsExcluded domains (usually for negative targeting only)
domains_listsarray of integersDomain list ID targeting (usually for negative targeting only)

...

Блок кода
languagejs
titleExample
linenumberstrue
        {
            "id": "5",
            "name": "testDynamicCreativeSnippetJS",
            "advertiser_id": "45",
            "js": "var s = '<div style=\"padding: 6px 10px 0px 15px;border: 1px solid black;border-radius: 10px;\"'; for(var i=0; i<products.length && i<3; i++) {   var product=products[i]; s += '<p style=\"margin-top: 0px;\"><a href=\"' + product['url'] + '\"><img class=\"productImg\" src=\"' + product['picture'] + '\"/><br>' + product['name'] + ' <br> ' + product['price'] + ' руб.</a><br>'; } s+='</div>'; document.getElementById(elementId).innerHTML += s;",
            "css": "#creative_[[FUNCTION_NAME]] { border: 0px solid black; font-size: 10pt; font-family: Geneva, Arial, Helvetica, sans-serif; padding: 10px; } #creative_[[FUNCTION_NAME]] .productImg{width:100px;height:80px;}"
        }