I'm integrating admost into an old java application and most things are deprecated and I've solved them, but I can't solve this problem and I couldn't find an alternative on the internet. Does anyone have knowledge on this subject? What do I need to replace it with or rather how? how should i use it?
if (UserConfig.isLogEnable) {
adRequest = new AdRequest.Builder().addTestDevice("A0079FA240B1CFAD7ED637CB25851267").build();
} else {
adRequest = new AdRequest.Builder().build();
}
.addTestDevice
gives the following error and is shown in red:
Cannot resolve method 'addTestDevice' in 'Builder'
No candidates found for method call new AdRequest.Builder().addTestDevice