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

Ключ

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

...

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
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 configuration. See table below for object description.


Campaign Dynamic Financing

AttributeRequiredTypeDescription
idyesnumberUnique ID
priceyesnumberPrice for the current set of features.
featuresyesobjectFeatures for the current price
features.sspnostringSSP name feature. Example: "adx"
features.browsernostringBrowser name feature. Values: FIREFOX, IE, EDGE, OPERA, YANDEX, ANDROID_BROWSER, CHROME, SAFARI, FACEBOOK_APP
features.devicenostringDevice type feature. Values: UNKNOWN, SMARTPHONE, TABLET, DESKTOP, SMART_TV, GAME_CONSOLE
features.domainnostringDomain feature. Example: "*.google.com", "facebook.com"
features.app_idnostringApplication ID feature. Example: "com.instagram.android", "389801252"
features.sizenostringCreative Size feature. Example: "320x240"
features.osnostringOperating System feature. IOS, ANDROID, WINDOWS, LINUX, MACOS, OTHER, WINDOWS_PHONE, BLACKBERRY

Example

Блок кода
languagejs
titleDynamic Financing JSON Example
linenumberstrue
"financing": {
		"type": "max_cpm",
		"price": "3",
		"dynamic_prices": [
			{
				"id": 1,
				"price": 5,
				"features": {
					"ssp": "bsw.brx"
				}
			},
			{
				"id": 2,
				"price": 6,
				"features": {
					"ssp": "bsw.vi",
					"domain": "*.google.com"
				}
			},
			{
				"id": 3,
				"price": 10,
				"features": {
					"ssp": "adx",
					"device": "SMARTPHONE",
					"domain": "cnn.com"
				}
			}
		]
	}

 


Campaign targetings

Campaign can have both positive and negative targetings, negative targeting features set is customisable.

...

Блок кода
languagejs
titleNative Creative Example
linenumberstrue
{
	"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"
		}
	]
}

Native Video Examples

...


Блок кода
languagejs
titleNative Video Plain Example
linenumberstrue
 {
	"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": "video",
        	"file": {
          		"url": "http://cdn.liverail.com/adasset4/1331/229/7969/me.mp4",
          		"file_size" : 1280000,
          		"size": "640x480"
        	},
        	"duration": 7,
        	"required": true
      }
	]
}

...

AttributeRequiredTypeDescription
nameyesstringCreative name
advertiser_idyesintegerAdvertiser Id
creative_typeyesstring

Creative type, enum value:

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

landing_page
nostringLanding page URL (with macros)
assetsnoarray of objectsNative creative assets

asset.type

yesstring

Asset type, enum value:

"img","title","data","video"

asset.data_type

yesinteger

IAB data asset type

 


Site object

Блок кода
languagejs
titleExample
linenumberstrue
{
	"name": "http://test.com",
	"advertiser_id": 27,
	"click_control": "false",
	"feed_url": "http://names.ru/bitrix/catalog_export/rtb.xml"
}

...

AttributeRequiredTypeDescription
nameyesstringCreative name
advertiser_idnointegerAdvertiser Id
typeyesstring

Segment type, enum value:

"standard"/"3rd_party"

3rd_party_id
nostring3rd party segment Id
pricenofloatSegment price (CPM)
currency

 

nostringSegment currency
termsnoobjectSegment rules

...