Hello, world!

This example introduces the fundamentals of loading content in ADK containers, all in one file.

Here is what the code does:

  1. Loads and configures the library. In this case we define a container called my-container which loads content from the builtin adk.hello provider.
  2. Creates a corresponding container element in the body which will display the loaded content.
  3. Attaches the library to the container element which causes the container to request content from the provider.
<!DOCTYPE html>
    <script>window.adk = window.adk || { cmd: [] }</script>
    <script async src="https://cdn.advisible.com/adk-1.10.5.js"></script>
        adk.cmd.push(function () {
                .addContainer('my-container', adk.container.config()
                .init(advisibleID) // use your Advisible ID here
    <div data-adk-container="my-container"></div>
        adk.cmd.push(function () {

Note. The init call in the code above has a parameter advisibleID that is not defined. If you do not yet have an Advisible ID, feel free to evaluate the library by just omitting the parameter.


The result may not look much. It's just a colored box not doing anything. However, in the following examples we will show you how the container abstraction opens a toolbox for making professional ad integrations.

But let's start with some refactoring.