Testing

Advisible provides test ads that can be used to verify a native ad integration and ensure that ads are being requested and displayed properly. Test ads are global creatives that can be accessed using the preview functionality.

Query parameter

The structure of the adk_preview query parameter for test ads is:

global:code[-language][@adapterId[:sourceId][![!]maxItems]]

Common parameters

The following parameters are available when generating test ads for all containers:

code - tells the system which type of test ad to load. Available codes are:

language (optional) - tells the system which language to use for the test ad. The following languages are supported:

Placement parameters

The following parameters are available when generating test ads for containers using the adk.placement provider:

adapterId - specifies the adapter to use for fetching test ads. The following built-in adapters are available:

sourceId (optional) - identifies a specific placement source to test. If omitted, sources for the selected adapter are ordered according to their concurrency and priority group settings and tried until one responds with test ads.

maxItems (optional) - limits the number of items returned in placements that support multiple items. If omitted, the source's configured maximum is used. Prefix the number with ! to set a soft limit that respects the source setting, or !! to set a hard limit that forces the number of delivered items to the limit.

Landing page

True Native landing pages render a container using the adk.native.article provider, which requires a valid UUID for itemId. Therefore, when generating test ads, you need to provide a UUID that your ID extraction mechanism will recognize in the URL (read more about this in the Landing page guide). Any valid UUID, including the placeholder 00000000-0000-0000-0000-000000000000, will work. Note that this is separate from the adk_preview query parameter. Instead of manually constructing this URL, you can generate a native teaser test ad and click it to navigate to the landing page.

Examples

Content Display test ads:

global:generate@com.advisible.content-display

English version:

global:generate-en@com.advisible.content-display

If the placement is configured to allow video, you can test them by replacing generate with video, for example:

global:video@com.advisible.content-display