How to redirect trial ads to corresponding stores mintegral

I would like to ask how to use this plug-in tool to package it into an HTML file, and implement the function of jumping to the corresponding store in the game? On the applovin and mintegral platforms, the applovin document only says to call marid.open(), but how to ensure that it jumps to the game link you want? Can any expert give me some advice?

Just configure injectOptions according to the platform requirements, which can be written in the body attribute of the corresponding platform.
However, we don’t have the demand for this platform and have never done it, so I don’t know what its requirements are.

There is no requirement to fill in the jump link. Generally, the platform will jump automatically. Just call it. As for how to jump automatically, just fill it in the advertisement.

What is injectOptions?

Why does the HTML file I packaged with this tool not have something like window.gameRetry && window.gameRetry(); window.install && window.install(); window.open()? If this code is not included, won’t it be incompatible with the platform rules when uploaded to the platform?

You only need to include the call to upload. Your local environment does not have these things.

It is configured in the .adapterrc file you used when packaging. It is written in the readme…
You write the code required by the platform to open the advertisement into the “body” parameter of the corresponding platform.
For example, write a function:

// 函数外可以写平台规定的配置,如监听平台的事件

// Cocos内调用的自定义函数
function showAds() {
    // 平台对应的Api
}

Directly call in Cocos

private onAdsClicked() : void {
    // @ts-ignore
    showAds();
}

It contains the API for redirecting ads specified by the platform. Then you can directly call this function in RunoseAI (no need to add this). It will usually report a red message (because it does not exist in RunoseAI, but it will be included after packaging, which is normal). Ignore it or add "// @ts-ignore " to avoid errors.