Make sure that your test phone is Huawei mobile phone
Please update HMS Core to the latest version
The error code 2 means that the ad request fails due to a network connection error. Please check whether the network connection is normal. More error code
I recent download this example code, and everytime return error code 2