±¸±Û ¸ð¹ÙÀÏ ¾Öµå¼¾½º¸¦ ´Þ±â
¸ð¹ÙÀÏ À¥¿ë ¾Öµå¼¾½º ÄÚµå´Â ±¸±Û ¾Öµå¼¾½º°¡¼Å¼ °¡ÀÔÇÏ½Ã°í ¸ð¹ÙÀÏ¿ëÀ¸·Î ¹ÞÀ¸½Ã¸é µË´Ï´Ù.
ÀÏ´Ü xml¿¡¼ À¥ºä¸¦ Çϳª ¸¸µé°í ¼Ò½ºÄڵ忡¼ À¥ºä¸¦ ºÒ·¯¿À°í urlÀ» ¿¡µå¼¾½º°¡ ÀÖ´Â html·Î ¿¬°á ½ÃÄ×½À´Ï´Ù.
=========== xml ====================================
<WebView
android:id="@+id/web"
android:layout_width="fill_parent"
android:layout_height="50dip"
android:focusable="true"
android:focusableInTouchMode="true"
android:scrollbars="none"
/>
=========== ÀÚ¹ÙÄÚµå ====================================
public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.main_image);
//±¸±Û ¸ð¹ÙÀÏ ±¤°í¸¦ °¡Áö°í ¿Â´Ù.
WebView mWeb = (WebView)findViewById(R.id.web);
mWeb.setWebViewClient(new MyWebClient());
WebSettings set = mWeb.getSettings();
set.setJavascriptEnabled(true);
mWeb.loadUrl(file:///android_asset/googleadsense.html);
}
=========== googleadsense.html ====================================
ÀÌ°÷¿¡ ±¸±Û¾Öµå¼¾½º¿¡¼ ¹ÞÀº Äڵ带 »ðÀÔ!
¾Æ·¡ ÄÚµå´Â Á¦°¡ ¹ß±Þ ¹ÞÀº ¸ð¹ÙÀÏ ¾Öµå¼¾½º ÄÚµå ÀÔ´Ï´Ù.
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<script type="text/javascript"><!--
window.googleAfmcRequest = {
client: 'ca-mb-pub-1170861960426601',
ad_type: 'image',
output: 'html',
channel: '3451037578+6370521146+1201217536+3403271066+3007881871',
format: '320x50_mb',
oe: 'utf8',
color_border: '336699',
color_bg: 'FFFFFF',
color_link: '0000FF',
color_text: '000000',
color_url: '008000',
};
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_afmc_ads.js"></script>
</body>
±¸±Û : ¸ð¹ÙÀÏ ±¤°í´Â ¾î¶² ¹æ½ÄÀ¸·Î Ÿ°ÙÆõ˴ϱî?
http://www.google.com/adsense/support/bin/answer.py?answer=68731&hl=ko
[ÀÌ °Ô½Ã¹°Àº ÀÌ°æ¿ë´Ô¿¡ ÀÇÇØ 2010-10-19 16:19:05 ÀÌ°æ¿ë °Á¿¡¼ À̵¿ µÊ]
* ±ÛÀ» µî·ÏÇϽǶ§ ²À ÇÊ¿äÇÑ °æ¿ì°¡ ¾Æ´Ï¸é °³ÀÎÁ¤º¸¸¦ ³²±âÁö ¸¶¼¼¿ä ^^ (¿¬¶ôó,À̸ÞÀÏÁÖ¼Ò,Áֹεî·Ï¹øÈ£ µî)