Defining a Service
A Service content item contains the following fields:
- Title
-
The name of the service.
- Service type
-
The type of service. Currently you can specify the following values:
- VAST
-
Select this for ad services that supply ads in the VAST (Video Ad Serving Template) format.
- Google IMA
-
Select this for ad services that supply ads using (Google Interactive Media Ads) APIs.
- Base URL
-
The base URL of the service (that is the URL without any parameters)
- Parameters
-
An array of parameter settings for the service. Add the parameters required by the service you are configuring. They are all assembled into a query string and appended to the Base URL to create a complete service request.
- Name
-
The name of a parameter required by the service you are configuring.
- Value
-
The value to be assigned to this parameter. You can specify this value using a mixture of literal text and JSTL expressions that will be replaced with dynamic values. Note that in addition to the usual
${section}
and${article}
objects, you also have access to the following special context objects:${sectionParams}
-
This object offers a shorthand means of accessing section parameters. You can access a section parameter called
x.y
, for example, with the expression${sectionParams.x.y}
. This is equivalent to${section.parameters['x.y']}
. ${mediaContent}
-
This object represents the video content item to be displayed.
- Fallback
-
A fallback value to be assigned to this parameter if Value evaluates to an empty string.
- Encode
-
Check this option if you want the value you have specified to be URL-encoded.
It also contains a Base Service relation on which you can drop another Service content item: the current Service will then inherit the base Service's settings. Local settings override inherited settings. This also applies to the contents of the Parameters array: a local parameter setting overrides an inherited parameter with the same name.
This inheritance mechanism makes it easy to create a set of similar Services that all inherit from the same base Service but have slightly different parameter settings.