http://code.google.com/intl/ko-KR/mobile/ads/docs/rel-notes.html
이 버전도 버그 그대로 네요.
아 이넘들은 도대체 테스트도 안하고 올리남...
http://code.google.com/intl/ko-KR/mobile/ads/docs/android/banner_xml.html
여기 링크의 예제 소스는 여전히 4.0.4 버전 사용하네요.
새로운 버전으로 교체 하면, 바로 에러 나옵니다.
AdView missing required XML attribute "adSize".
지들 예제에도 확인도 안하고 올리네.. ㅡ.ㅡ
Sorry for the inconvenience. We haven't had a chance to update all of
our documentation fully yet. 4.1.0 made some changes to the way that
XML layouts work. In particular, you shouldn't need attrs.xml anymore.
Try the following and let me know if it works (or more importantly if
it doesn't):
1) Remove attrs.xml (or if you need it for your own custom attributes,
remove the parts related to AdViews).
2) Change the namespace in your layout from xmlns:ads="http://
schemas.android.com/apk/res/com.your.packagename"
to xmlns:ads="http://schemas.android.com/apk/lib/com.google.ads"
Also, in the simplest of cases, where your code simply does
AdView.loadAd(new AdRequest()), there's a new XML attribute to make
your code even simpler. Adding ads:loadAdOnCreate="true" should call
loadAd(new AdRequest()) for you when the ad is inflated from the XML.
This means that the simplest of cases just got simpler because it
requires no code at all (no finding the view from the layout just to
call loadAd with a blank ad request). Obviously keep in mind though
that using this method means you have less control over your ads like
when requests occur, and what goes in them.
We think this will be easier in the long run since you won't have to
create the attrs.xml file. Again, sorry for the inconvenience and
thanks for your patience.
Thanks,
-Tim
-----------------------
이런 글이 있네요. ㅡ.ㅡ
기존 XML레이아웃에서 아래와 같이 자신의 패키지명을 입력했더라면
xmlns:ads=”http://schemas.android.com/apk/res/com.your.packagename”
다음과 같이 바꿔줍니다.
to xmlns:ads=”http://schemas.android.com/apk/lib/com.google.ads“
그리고 Adview에 아래를 추가합니다.
ads:loadAdOnCreate="true"
음 이제야 업데이트 되었나 보군요.