- Home /
Question by
Performator · Oct 16, 2019 at 07:59 AM ·
errorbuildadsapk
Unity ads works on editor but not in device
This is the code that i'm using to test to see if the ads work, i have a button on the scene just to see if it works
void Start()
{
Advertisement.Initialize(IDGAME, true);
}
// Update is called once per frame
public void ADSS()
{
if (Advertisement.IsReady())
{
Advertisement.Show("video");
}
}
However, it only works on the editor, i've tried re importing the ads package, i've changed test mode options, and yet it hasn't worked. what am i doing wrong?
Comment
Could you show the bit of code that shows the IDGA$$anonymous$$E declaration. Thanks.