SSP-moderation (en)

🚧

Draft

The document is at the draft stage.

This document describes the moderation of creatives.

1.General information

SSP allows to show only proved creatives in order to eliminate the possibility of discrepancies between advertising materials and the publisher’s requirements. The process of obtaining permission to rotate the creatives is called moderation. During the moderation, the SSP checks if the creative meets all the requirements and if it is properly classified.

2. API

2.1. Sending for moderation

This method enables to transfer the creative and a part of the basic settings to the SSP.

URL Template for request sending
https://api.aray.com/dsp/moderation/?metod=add&dsp=DSPName&key=XXXX-XXXX-XXXX-XXXX

{
	"version": "1.1.0",
	"creative": {
		"crid": "{CREATIVE_ID}",
		"type": "banner",
		"subtype": 1,
		"IAB": "IAB2-1",
		"data": {
			"htmlbasesafe64": "PGh0bWw_PGltZz48L2ltZz48L2h0bWw_",
			"redirectURL": "https://example.com/",
			"finalURL": "https://google.com/"
		},
		"geo": ["ro", "hu"]
	}
}
{
	"version": "1.1.0",
	"creative": {
		"crid": "{CREATIVE_ID}",
		"type": "native",
		"subtype": 1,
		"IAB": "IAB2-1",
		"data": {
			"img": "https://example.com/img.png",
			"text": "example text",
			"redirectURL": "https://example.com/",
			"finalURL": "https://google.com/"
		},
		"geo": ["ro", "hu"]
	}
}

API Response

{
	"version": "1.1.0",
	"crid": "{CREATIVE_ID}",
	"status": {
		"result": "OK",
		"text": "creative was received"
	}
}
NameValueDescription
version1.1.0The current version of the API which the client is using. If the major versions are different, an error will be issued.
creativeobjectThe section where the creatives are described
NameValueDescription
crid{CREATIVE_ID}Identifier of the creative in the external DSP
typebannerCreative type
subtype1Creative subtype, “1” means an arbitrary html.
IABIAB2-1The IAB category classifies an advertiser and a company
dataobjectThis section describes creative data
geo"ro","hu"The list of countries in which this Ad will be demonstrated.
NameValueDescription
htmlbasesafe64Web safe banner code representation
imghttps://example.com/img.pngLink to the teaser image
textexample textTeaser text
redirectURLhttps://example.com/Link to domain present in DSP response
finalURLhttps://google.com/The final page address to which the user will be finally redirected.

2.1. Getting a creative status

{
	"version": "1.1.0",
	"crid": "{CREATIVE_ID}"
}
{
	"version": "1.1.0",
	"crid": "{CREATIVE_ID}",
	"status": {
		"result": "OK",
		"text": "approved",
		"exired": 1491549099
	}
}

3. Workflow

  1. For the work with the API the user needs a key which is available in the user account.
  2. The next step is sending of the creative for the moderation.
  3. After sending of the creative for moderation, it is possible to get its status, and when the status is "approved", the creative can run