OnFailedTorecieve error in admob

I have a problem with admob. When I launch my application, instead of showing an ad, it says 'XML attribute missing "adsize"' . The log indicates the request OnFailedToRecieve. I can not trace what is happening. Does anyone have any advice?

+4
source share
1 answer

Before version 4.1.0, you had to define attrs.xml yourself, and therefore the namespace for ads probably has the name of your package:

 xmlns:ads="http://schemas.android.com/apk/lib/<your_package_name>" 

With v4.1.0 or later, the SDK is associated with this attribute file, so the ads namespace should be:

 xmlns:ads="http://schemas.android.com/apk/lib/com.google.ads" 

SDK 4.1.1 would work if you made this change. FYI version 4.3.1 is available now. The latest version is recommended as it is more stable and better supported. You can download it here and get useful tips on upgrading to v4.3.1 here .

0
source

Source: https://habr.com/ru/post/1389228/


All Articles