0

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
NewPartizal
  • 604
  • 4
  • 18
  • 1
    See if this post can help: https://stackoverflow.com/questions/60539407/after-updating-google-ads-sdk-addtestdevice-is-deprecated-how-to-resolve – Enowneb Jan 18 '23 at 12:51

0 Answers0