After updating Google Ads SDK to 19.0.0
gives a deprecated warning message for addTestDevice()
, while I searched this link for resolving the issue but not succeed.
how can I resolve it?
Here my code
mAdView.loadAd(new RequestConfiguration.Builder
.setTestDeviceIds(AdRequest.DEVICE_ID_EMULATOR) // show error
.setTestDeviceIds(DEV_ID) // show error
.build());
and developer site suggestion
Deprecated AdRequest.Builder.addTestDevice(). Use RequestConfiguration.Builder.setTestDeviceIds() instead.