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": "_DIV_",
        "config": {
            "Div1": {
                "banner": {
                    "enabled": false
                },
                "native": {
                    "enabled": false,
                    "config": {
                        "image": {
                            "required": true,
                            "sizes": [150, 50]
                        },
                        "title": {
                            "required": true,
                            "len": 80
                        },
                        "sponsoredBy": {
                            "required": true
                        },
                        "body": {
                            "required": true
                        }
                    }
                },
                "video": {
                    "enabled": true,
                    "config": {
                        "context":"instream",
                        "connectiontype": [1, 2, 6],
                        "minduration": 10,
                        "maxduration": 50,
                        "battr": [
                            6,
                            7
                        ],
                        "skip": 1,
                        "skipmin": 10,
                        "skipafter": 15,
                        "w": 640,  // Required for Prebid 3.x
                        "h": 480,  // Required for Prebid 3.x
                        "playerSize": [640,480]  // Required for Prebid 4.x
                    }
                }
            },
            "default": {
                "banner": {
                    "enabled": false
                },
                "native": {
                    "enabled": false,
                    "config": {
                        "image": {
                            "required": true,
                            "sizes": [150, 50]
                        },
                        "title": {
                            "required": true,
                            "len": 80
                        },
                        "sponsoredBy": {
                            "required": true
                        },
                        "body": {
                            "required": true
                        }
                    }
                },
                "video": {
                    "enabled": true,
                    "config": {
                        "context":"instream",
                        "connectiontype": [1, 2, 6],
                        "minduration": 10,
                        "maxduration": 50,
                        "battr": [
                            6,
                            7
                        ],
                        "skip": 1,
                        "skipmin": 10,
                        "skipafter": 15,
                        "w": 640,  // Required for Prebid 3.x
                        "h": 480,  // Required for Prebid 3.x
                        "playerSize": [640,480]  // Required for Prebid 4.x
                    }
                }
            }
        }
    }

...