Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejs
titleSample ad unit configuration JSON
linenumberstrue
collapsetrue
{
  "configPattern": "_AU_",
  "config": {
    "default": {
      "video": {
        "enabled": true,
        "config": {
          "battrskipafter": [
            5,
            10
          ],
          "skipafter": 20,
          "maxduration": 5060,
          "skip": 1,
          "skipmin": 5,
          "minduration": 105,
          "playbackmethod": [
            1,
            2
          ],
          "clientconfig": {
            "timeouts": {
              "wrapperTagURI": 8000,
              "mediaFileURI": 9000
            }
          }
        }
      },
      "banner": {
        "enabled": true,
        "config": {
          "clientconfig": {
            "refreshinterval": 30
          }
        }
      }
    },
    "Slot1": {
      "banner": {
        "enabled": true,
        "config": {
          "clientconfig": {
            "refreshinterval": 60
          }
        }
      },
      "video": {
        "enabled": true,
        "config": {
          "battrminduration": [
            7,
            9
          ]15,
          "skipaftermaxduration": 1760,
          "maxdurationskip": 511,
          "skipskipmin": 110,
          "skipminskipafter": 1110,
          "playbackmethod": [
            5,
            6
          ],
          "clientconfig": {
            "timeouts": {
              "wrapperTagURI": 11000,
              "mediaFileURI": 12000
            }
          },
          "minduration": 13
        }
      }
    },
    "Slot2": {
      "banner": {
        "enabled": false,
        "config": {
          "clientconfig": {
            "refreshinterval": 70
          }
        }
      },
      "video": {
        "enabled": false,
        "config": {
          "battr": [
            8,
            10
          ],
          "skipafter": 14,
          "maxduration": 62,
          "skip": 1,
          "skipmin": 18,
          "playbackmethod": [
            7,
            8
          ],
          "clientconfig": {
            "timeouts": {
              "wrapperTagURI": 13000,
              "mediaFileURI": 14000
            }
          },
          "minduration": 16
        }
      }
    },
    "Slot3": {
      "banner": {
        "enabled": true,
        "config": {
          "clientconfig": {
            "refreshinterval": 45
          }
        }
      },
      "video": {
        "enabled": true,
        "config": {
          "battr": [
            7,
            9
          ],
          "skipafter": 17,
          "maxduration": 51,
          "skip": 1,
          "skipmin": 11,
          "playbackmethod": [
            5,
            6
          ],
          "clientconfig": {
            "timeouts": {
              "wrapperTagURI": 10500,
              "mediaFileURI": 11000
            }
          },
          "minduration": 13
        }
      }
    }
  }
}

Media types in configuration JSON

...