Working off of the guidelines for DoubleClick for publishers, I'm trying to use the ad unit id and ad size generated by the tag generate function. However, the suggested implementation is manually instantiating the AdView, but I'm using XML to define the ad view, and the supplied adSize value isn't working:
<com.google.ads.AdView android:id="@+id/adView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
ads:adUnitId="/networkCode/adUnitName"
ads:adSize="(230, 50)"
/>
Unfortunately, that shows the error "Invalid "adSize" value in XML layout: (230, 50)" on the screen. I tried several other formats, like "230, 50", and "230x50" but it was the same result every time ... only using "BANNER" seems to work.
Any thoughts would be appreciated, thanks!
--
Hi,What about set multiple ad sizes in XML?