Method signature

Method is used to show an ad to user. Ad must be found first via OKSDK.Ads.prepareMidroll method.

    OKSDK.Ads.showMidroll()

Callback message

Method call result will be passed to a previously specified callback function.

If an ad was successfully shown message will be the following:

{
    "call": {
        "method": "show"
    },
    "result": {
        "status": "ok",
        "code": "complete"
    }
}

If an error occurred (i.e. ad was not shown) following message will be passed to a callback function:

{
    "call": {
        "method": "show"
    },
    "result": {
        "status": "error",
        "code": "Error description"
    }
}

Example usage

    OKSDK.Ads.showMidroll()