프로그래밍/Android

[Android]AdMob 광고를 달아보자(3)

프리월드 2010. 12. 14. 17:51

2010/10/28에 나온 새로운 admob SDK는 기존의 방법과 약간 틀리더군요.

그 방법에 대해서 기록하겠습니다.

 

Dear Publisher,

An updated version of the Android SDK is now available that contains support for new ad units as well as general performance and quality enhancements. Please use the latest SDK version in all your new submissions to the Android Market and upgrade your existing apps in your next release .

Download the SDK by logging into your AdMob account and selecting "Setup"on the Sites & Apps tab for your Android app. To create a new Android app, click on the Sites & Apps tab, select Android app, and fill out the relevant information to download the SDK.

 

SDK를 다운로드 할려고 해도 링크를 찾으실수 없을때에는 신규로 새로 만들어 주시면

다운로드 링크가 나옵니다.

 

 

 

 

기존의 jar파일에서 새로 다운 받으신 SDK에 있는 admob-sdk-android.jar파일로 교체해 주시고

이어서 AndroidManifest.xml에 추가로 입력하시면 됩니다.

 

<!-- The application's publisher ID assigned by AdMob -->
<meta-data android:value="YOUR_ID_HERE" android:name="ADMOB_PUBLISHER_ID" />
       
<!-- AdMobActivity definition -->
<activity android:name="com.admob.android.ads.AdMobActivity"
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
android:configChanges="orientation|keyboard|keyboardHidden" />
<!-- Track Market installs -->         
<receiver android:name="com.admob.android.ads.analytics.InstallReceiver"
android:exported="true">
<intent-filter>
   <action android:name="com.android.vending.INSTALL_REFERRER" />
</intent-filter>
</receiver>
</application>

 

자세한건 PDF 문서를 참고하시면 되겠습니다.