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:
generate- a standard test ad with generated content.video- a test ad that includes a video creative (if the placement supports video).article- returns an article that includes all supported body elements, which can be used to verify article body styling. Only valid for True Native scroll articles and landing pages.
language (optional) - tells the system which language to use for the test ad. The following languages are supported:
lorem- Lorem ipsum placeholder text (default)en- Englishsv- Swedish
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:
com.advisible.native.teaser- True Native teaserscom.advisible.native.article- True Native articlescom.advisible.content-display- Content Display teasers
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-displayEnglish version:
global:generate-en@com.advisible.content-displayIf the placement is configured to allow video, you can test them by replacing generate with video, for example:
global:video@com.advisible.content-display