Skip to main content

Configuring your Ads

There are ways to further configure ads after setting up a container. For one, providing a JSON object as the second parameter when calling the OwAd constructor works:

new OwAd(document.getElementById("ad-div"), {size: {width: 400, height: 300}})

configuration options

The following configuration options are supported:

SizeJSON Object / Array of JSON Objects{width: 400, height:300}

Size description

  • Sets the dimensions of the ad displayed based on the supported placements below. This should be a JSON object with two properties: width & height.
    Example: {width: 400, height:300}

  • Alternatively, you can input an array of JSON objects to allow for multiple formats of ads. Example: [{width:400, height:300}, {width:300, height:250}] will enable ads in both size formats for that container.

  • Currently supported placements:

    1. 400×300 - Contains 400x300 & 300x250 (Video), 300x250 / 336x280 / 250x250 (Display banners)
    2. 300x250 - Contains 300x250 (Video), 300x250 / 250x250 (Display banners)
    3. 400x600 - Contains 400x300 & 300x250 (Video), 300x600 / 300x250 / 336x280 / 250x250 (Display banners)
    4. 160x600 - Contains 160x600 / 120x600 (Display banner)
    5. 728x90
  • For 400x600 ad placement, please use the following: [{width:400, height:600}, {width:400, height:300}]


Make sure to only enter values that are supported by Overwolf. Entering an unsupported value will result in no ads showing.