I am integrating AdMob into my android application.
I have followed the directions on the admob site to a T.In my attrs.xml I have the following.
<?xml version="1.0" encoding="utf-8"?>
<resources>
<declare-styleable name="com.google.ads.AdView">
<attr name="adSize">
<enum name="BANNER" value="1" />
<enum name="IAB_MRECT" value="2" />
<enum name="IAB_BANNER" value="3" />
<enum name="IAB_LEADERBOARD" value="4" />
</attr>
<attr name="adUnitId" format="string" />
</declare-styleable>
</resources>
And I setup the View in my main.xml
<com.google.ads.AdView android:id="@+id/adView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
ads:adUnitId="MYID"
ads:adSize="BANNER" /
>
When viewing the main.xml in Graphical Layout it is giving an error on the AdView
Adview missing required XML Attribute "adSize"
Wondering if I have done something wrong?
See if this will help you.