<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Vpon &#8211; 記下來</title>
	<atom:link href="https://noter.tw/tag/vpon/feed/" rel="self" type="application/rss+xml" />
	<link>https://noter.tw</link>
	<description>一路上踩到的坑、遇到的問題，一點一滴記下來，希望能幫助到需要的人~</description>
	<lastBuildDate>Mon, 13 Mar 2023 14:25:43 +0000</lastBuildDate>
	<language>zh-TW</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.6.3</generator>

<image>
	<url>https://noter.tw/wp-content/uploads/cropped-old-1130742_1920-1-32x32.jpg</url>
	<title>Vpon &#8211; 記下來</title>
	<link>https://noter.tw</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Vpon CN在台灣地區請款動作說明</title>
		<link>https://noter.tw/2260/vpon-cn%e5%9c%a8%e5%8f%b0%e7%81%a3%e5%9c%b0%e5%8d%80%e8%ab%8b%e6%ac%be%e5%8b%95%e4%bd%9c%e8%aa%aa%e6%98%8e/</link>
					<comments>https://noter.tw/2260/vpon-cn%e5%9c%a8%e5%8f%b0%e7%81%a3%e5%9c%b0%e5%8d%80%e8%ab%8b%e6%ac%be%e5%8b%95%e4%bd%9c%e8%aa%aa%e6%98%8e/#respond</comments>
		
		<dc:creator><![CDATA[黃小蛙]]></dc:creator>
		<pubDate>Sat, 30 Jun 2012 07:18:34 +0000</pubDate>
				<category><![CDATA[其他]]></category>
		<category><![CDATA[請款]]></category>
		<category><![CDATA[Android]]></category>
		<category><![CDATA[ads]]></category>
		<category><![CDATA[kuAD]]></category>
		<category><![CDATA[Vpon]]></category>
		<category><![CDATA[HSBC Direct]]></category>
		<category><![CDATA[廣告]]></category>
		<category><![CDATA[美金帳戶]]></category>
		<category><![CDATA[電匯]]></category>
		<guid isPermaLink="false">http://wazai.net/?p=2260</guid>

					<description><![CDATA[<p>(2013-09-05 更新) 之前小蛙有寫過Vpon的教學文章&#60;Google AdWhirl with Vpon @ 蛙齋&#62;，Vpon與KuAd是台灣兩家比較有規模的行動廣告商，但Vpo&#46;&#46;&#46;</p>
<p>這篇文章 <a rel="nofollow" href="https://noter.tw/2260/vpon-cn%e5%9c%a8%e5%8f%b0%e7%81%a3%e5%9c%b0%e5%8d%80%e8%ab%8b%e6%ac%be%e5%8b%95%e4%bd%9c%e8%aa%aa%e6%98%8e/" data-wpel-link="internal">Vpon CN在台灣地區請款動作說明</a> 最早出現於 <a rel="nofollow" href="https://noter.tw" data-wpel-link="internal">記下來</a>。</p>
]]></description>
										<content:encoded><![CDATA[<p>(2013-09-05 更新) 之前小蛙有寫過Vpon的教學文章&lt;<a href="http://wazai.net/1864" target="_blank" rel="noopener noreferrer nofollow external" data-wpel-link="external" class="wpel-icon-right"><strong>Google AdWhirl with Vpon @ 蛙齋</strong><span class="wpel-icon wpel-image wpel-icon-6"></span></a>&gt;，<a href="http://www.vpon.com/zh-tw/" target="_blank" rel="noopener noreferrer nofollow external" data-wpel-link="external" class="wpel-icon-right">Vpon<span class="wpel-icon wpel-image wpel-icon-6"></span></a>與<a href="http://www.kusogi.com/index.php" target="_blank" rel="noopener noreferrer nofollow external" data-wpel-link="external" class="wpel-icon-right">KuAd<span class="wpel-icon wpel-image wpel-icon-6"></span></a>是台灣兩家比較有規模的行動廣告商，但Vpon在大陸也有相關業務，因此如果是要在對岸顯示廣告，可能就必須選擇在大陸也有該廣告業務的廠商才可以，小蛙並不太清楚Vpon CN的規模大不大、營運好不好，但從最近90天廣告填充率來看，填充率介於<span style="color: #ff0000;"><strong>3.05% ~ 28.68%</strong></span>，(2013-08-25 在大陸芒果移動廣告的討論區中，Vpon CN 的填充率似乎已經低於小蛙當時的數字了)。不知道是小蛙設定方式有誤還是Vpon在大陸的廣告商並不多，但這種極低的填充率，實在不是一件好事 … <strong>逼的小蛙只好以Admob為主，Vpon CN來塞塞Admob缺少的填充率</strong> ~_~<br />
<span id="more-2260"></span><br />
由於遇到台灣對大陸的請款動作，Vpon CN請款真的是花了好長好長的時間才完成，希望這篇文章能幫助到有類似問題的開發者(應該很少吧！)，在這邊很感謝Alex的幫忙(恭喜升官囉!)以及後來接手的Jay。如果這篇文章不適合，請來信告知！<br />
針對大陸匯款到台灣開發商部分小蛙跟Vpon反應過，Vpon表示這部分的不足，他們也已經著手進行，希望讓台灣開發商使用Vpon CN時的請款動作能夠更簡便，不用像小蛙一樣從今年初一直到五六月款項才入帳…這是漫長的等待。目前台灣開發者要從Vpon CN請款是非常麻煩的一件事，有要掛大陸當地廣告的開發者要先有個覺悟，但一回生二回熟，相信現在應該慢慢的會變得容易許多(在新平台、新策略還沒開放之前)，要注意Vpon TW跟Vpon CN是不一樣的，註冊供選擇，那 ~ 如果人在台灣，又沒有大陸帳戶該怎麼辦呢？這是個很弔詭的時候要確定是TW還是CN喔！下圖是Vpon CN後台請款帳號設定，明眼人應該一看就可以發現，只有「<strong>國內匯款</strong>」可的部分，經過了漫長的email往來之後才知道，付款資料設定並不會「完全」詳細檢查，也就是除了個人身分證號之外，其他匯款資料都填上，納稅方使選擇「<strong>提供收據</strong>」，唯獨個人身分證字號怎麼樣都不可能通過，台灣的身分證字號怎麼樣也都只有英文字+九碼呀！這該怎麼辦呢？了解到剛剛那句話的含義了嗎？『<strong><span style="color: #ff0000;">付款資料設定並不會「完全」詳細檢查</span></strong>』，小蛙心想應該這個制度要早點修改吧！不然也許有一天會出事情！<br />
<a href="https://lh5.googleusercontent.com/-JZZXo9mFMKA/T-6Ip4BnsBI/AAAAAAAAEwI/9SCOBKGT6Is/s640/2012-6-30%2520%25E4%25B8%258B%25E5%258D%2588%252012-59-52.png" target="_blank" rel="noopener noreferrer nofollow external" data-wpel-link="external"><img decoding="async" style="display: block; float: none; margin-left: auto; margin-right: auto;" src="https://lh5.googleusercontent.com/-JZZXo9mFMKA/T-6Ip4BnsBI/AAAAAAAAEwI/9SCOBKGT6Is/s640/2012-6-30%2520%25E4%25B8%258B%25E5%258D%2588%252012-59-52.png" alt="2012 6 30%2520%25E4%25B8%258B%25E5%258D%2588%252012 59 52 Vpon CN在台灣地區請款動作說明" title="Vpon CN在台灣地區請款動作說明"></a><br />
付款帳號設定完成之後，就沒什麼困難的地方了，接著進行請款動作，填上要請款的金額，最後把收據填寫完成後，附上以下資料傳真到Vpon TW(02-25469026)，再由Vpon TW協助傳遞給Vpon Cn進行出帳動作。</p>
<pre class="brush: text; gutter: false">Beneficiary's Bank : HSBC Bank (Taiwan) Limited
Bank Addres : 13F and 14F., No.333, Sec. 1, Keelung Rd., Xinyi District, Taipei City 110
Swift Code : HSBCTWTP
Account No. : 美金帳戶帳號
Beneficiary’s Name : 美金帳戶名稱(英文)</pre>
<p><a href="https://lh5.googleusercontent.com/-EThUM8sFg8Q/T-6IpRl1p5I/AAAAAAAAEv8/IpwJ9pyIE_k/s800/2012-6-30%2520%25E4%25B8%258B%25E5%258D%2588%252001-01-39.png" target="_blank" rel="noopener noreferrer nofollow external" data-wpel-link="external"><img decoding="async" style="display: block; float: none; margin-left: auto; margin-right: auto;" src="https://lh5.googleusercontent.com/-EThUM8sFg8Q/T-6IpRl1p5I/AAAAAAAAEv8/IpwJ9pyIE_k/s800/2012-6-30%2520%25E4%25B8%258B%25E5%258D%2588%252001-01-39.png" alt="2012 6 30%2520%25E4%25B8%258B%25E5%258D%2588%252001 01 39 Vpon CN在台灣地區請款動作說明" title="Vpon CN在台灣地區請款動作說明"></a><br />
這邊要注意的是請款時間為每月的1~5日，出帳時間為每月的20日，在請款過程中最好先跟Vpon CN服務人員聯絡，免得卡在某個環節失敗又要等下個月才能再次申請 … Good Luck!! HSBC Direct相關文章-&lt;<strong><a href="http://wazai.net/2256" target="_blank" rel="noopener noreferrer nofollow external" data-wpel-link="external" class="wpel-icon-right">Google Admob透過HSBC Direct電匯方式請款<span class="wpel-icon wpel-image wpel-icon-6"></span></a></strong>&gt;。<br />
2013-08-06<br />
Vpon 的客服人員 email 又開始遲遲不回應了！小蛙來看看要等多久才會有回應！寫完信的當天下午收到 Vpon TW 服務人員的 email。<br />
2013-08-21<br />
Vpon 告知後台已經請 FAE 人員協助處理完畢，小蛙這邊再送一次請款單。<br />
2013-09-05<br />
收到一封信被告之要補齊資料，詢問 Jay 後，Jay 請小蛙再提供一次資料給 Vpon CN 的&nbsp;Pharaoh，那之前的資料來往耗時到底在做什麼？因為這些資料早就已經給過 Jay 了 &#8230; 整個感覺非常非常差，還寫了一封信來說其實請款沒那麼複雜，只要把資料填齊就可以了，小蛙當然知道這件事，沒填齊要怎麼申請，問題是後台根本沒有可以給小蛙填資料的部份，信中提到納稅方式小蛙勾選了&#8221;提供發票&#8221;，這個小蛙要怎麼說呢？因為表單上只有這個選項，而且預設就選定了，也無法取消 &#8230; 這部份在幾個月前也已經反應給客服過了！到現在也還是一樣。要補齊證件號碼(護照號，台胞證，回鄉證)，這三個小蛙沒有，之前 Alex 說使用&#8221;特殊方法&#8221;取得 &#8230; 上次申請不用 20% 稅，這次個人戶要扣掉 20% 稅，哀 ~ Vpon 加油，如果不願意讓台灣人申請 Vpon CN，就把規則講清楚 &#8230;</p>
<p>這篇文章 <a rel="nofollow" href="https://noter.tw/2260/vpon-cn%e5%9c%a8%e5%8f%b0%e7%81%a3%e5%9c%b0%e5%8d%80%e8%ab%8b%e6%ac%be%e5%8b%95%e4%bd%9c%e8%aa%aa%e6%98%8e/" data-wpel-link="internal">Vpon CN在台灣地區請款動作說明</a> 最早出現於 <a rel="nofollow" href="https://noter.tw" data-wpel-link="internal">記下來</a>。</p>
]]></content:encoded>
					
					<wfw:commentRss>https://noter.tw/2260/vpon-cn%e5%9c%a8%e5%8f%b0%e7%81%a3%e5%9c%b0%e5%8d%80%e8%ab%8b%e6%ac%be%e5%8b%95%e4%bd%9c%e8%aa%aa%e6%98%8e/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Google AdWhirl with Vpon</title>
		<link>https://noter.tw/1864/google-adwhirl-with-vpon/</link>
					<comments>https://noter.tw/1864/google-adwhirl-with-vpon/#comments</comments>
		
		<dc:creator><![CDATA[黃小蛙]]></dc:creator>
		<pubDate>Sun, 08 Jan 2012 12:21:03 +0000</pubDate>
				<category><![CDATA[手機 App]]></category>
		<category><![CDATA[AdWhirl]]></category>
		<category><![CDATA[Vpon]]></category>
		<category><![CDATA[廣告]]></category>
		<category><![CDATA[Android]]></category>
		<category><![CDATA[ads]]></category>
		<guid isPermaLink="false">http://wazai.net/?p=1864</guid>

					<description><![CDATA[<p>(2012-07-20 更新)前面幾篇小蛙陸續介紹了Google AdWhirl串接kuAD, AdMob，以及單獨使用AdMob(單獨使用Vpon或kuAD只要直接下載匯入範例就可以囉！)，今天要來&#46;&#46;&#46;</p>
<p>這篇文章 <a rel="nofollow" href="https://noter.tw/1864/google-adwhirl-with-vpon/" data-wpel-link="internal">Google AdWhirl with Vpon</a> 最早出現於 <a rel="nofollow" href="https://noter.tw" data-wpel-link="internal">記下來</a>。</p>
]]></description>
										<content:encoded><![CDATA[<p>(2012-07-20 更新)前面幾篇小蛙陸續介紹了Google AdWhirl串接kuAD, AdMob，以及單獨使用AdMob(單獨使用Vpon或kuAD只要直接下載匯入範例就可以囉！)，今天要來記錄<span style="color: #ff0000;"><strong>Google AdWhirl with Vpon</strong></span>，算是三者之中最麻煩的。<br />
<span id="more-1864"></span><br />
由於<a href="https://www.vpon.com/" target="_blank" rel="noopener noreferrer nofollow external" data-wpel-link="external" class="wpel-icon-right">Vpon<span class="wpel-icon wpel-image wpel-icon-6"></span></a>會需要用到QRCode讀取套件，因此將Vpon導入Android App中會有比kuAD, AdMob更多步驟，小蛙在導入Vpon的時候發生了很多怪怪的問題，包括了type 17錯誤(已經分不清楚是AdWhirl還是Vpon的錯誤了)，就算直接用Sample Code修改<strong><span style="color: #ff0000;">adOnKey</span></strong>也還是沒辦法顯示(adOnKey在官網上的顯示是「<strong><span style="color: #ff0000;">版位ID</span></strong>」或是英文界面的叫「<span style="color: #ff0000;"><strong>Banner ID</strong></span>」)，小蛙弄到三更半夜還是沒辦法顯示，即使官網上狀態已經顯示「運作中」。今天來記錄一下<strong><span style="color: #ff0000;">Google AdWhirl + Vpon</span></strong>。<br />
Vpon註冊及設定部份由於都是中文也還蠻簡單的，這部份小蛙就跳過，如果在註冊上有遇到任何問題也可以直接留言給小蛙，Google AdWhirl設定也跟串接kuAD的時候差不多，只是Function name把它改成容易辨識的名稱，例如：kuAD小蛙取「<span style="color: #ff0000;"><strong>showKuAD</strong></span>」，就以此類推地把Vpon取名叫做「<strong><span style="color: #ff0000;">showVpon</span></strong>」吧！(<span style="color: #ff0000;"><strong>再次強調這篇使用的是Google AdWhirl</strong></span><span style="color: #000000;">)</span><br />
Vpon AdWhirl比Google AdWhirl多了一個「地區判斷」的功能，因為Vpon是以在地化廣告為宣傳，因此Vpon團隊在AdWhirl中加入了台灣地區及大陸地區的判斷，如果使用者在台灣就會撥放台灣的廣告，反之亦然。由於剛開始串接Vpon的時候遇到了很多奇奇怪怪的問題，因此小蛙使用Google AdWhirl，但新版Vpon AdWhirl應該已經做了修正，如果有兩岸廣告撥放需求的朋友，可以直接使用Vpon AdWhirl來做串接，<strong>官方文件</strong>提供了詳細的說明。<br />
<strong>強烈建議在串接AdWhirl之前，先下載Vpon官方範例程式，修改adOnKey之後跑跑看，如果廣告都沒出現的話，就不用串接了！是不會成功的！</strong><span style="color: #000000;">使用Vpon AdWhirl串接的朋友可以參考以下方法：</span></p>
<ol>
<li>註冊<strong>Vpon帳號</strong>及<strong>Vpon AdWhirl帳號</strong>(這跟Google AdWhirl不同)</li>
<li>在Vpon AdWhirl中新增應用程式(參考<a href="https://noter.tw/1793/adwhirl-with-admob-by-google" target="_blank" rel="noopener noreferrer" data-wpel-link="internal">AdWhirl with AdMob by Google</a>步驟5)</li>
<li>下載最新版的Vpon套件及範例程式。可以在<strong>Vpon + AdWhirl SDK</strong>中找到。</li>
<li>解壓縮後，把專案匯入到Eclipse中(匯入方式請參考<a href="https://noter.tw/1823/eclipse%e5%8c%af%e5%85%a5%e5%b0%88%e6%a1%88" target="_blank" rel="noopener noreferrer" data-wpel-link="internal"><strong>Eclipse匯入專案</strong></a>)。小蛙測試時的版本為「<strong>android-sdk-adwhirl-3.0.3n</strong>」，匯入時選擇「<strong>adOnSample_withAdapters</strong>」資料夾。</li>
<li>將com.android.vpon.addon.AdOnSampleActivity.java中的String <strong><span style="color: #ff0000;">adWhirlKey</span></strong> = &#8220;<span style="color: #809ec2;">ChangeMe</span>&#8220;;修改成步驟2得到的<strong>SDK Key</strong></li>
<li>直接在手機或模擬器上測試就完成了！</li>
</ol>
<p>上面測試沒有問題才繼續以下部份。下面的步驟紀錄串接Google AdWhirl + Vpon。</p>
<ol>
<li>將上面專案中<span style="color: #ff0000;"><strong>res/values</strong></span>下的<strong>attrs.xml, colors.xml, ids.xml, strings.xml</strong>複製到自己專案下，要注意檔案覆蓋問題，保險起見可以開啟這些檔案，例如：開啟strings.xml並複製裡面內容貼到自己的strings.xml。途中有錯誤都先別理它，最後再處理。(2012-07-20 更新)感謝網友ws提醒，要把layout下的<strong>capture.xml</strong>也複製到自己專案下的layout資料夾裡。<br />
<a href="https://noter.tw/wp-content/uploads/2012/01/vpon-5.png" data-wpel-link="internal"><img decoding="async" class="alignnone" style="background-image: none; border-width: 0px; padding-left: 0px; padding-right: 0px; display: block; float: none; margin-left: auto; margin-right: auto; padding-top: 0px;" title="vpon-5" src="https://noter.tw/wp-content/uploads/2012/01/vpon-5_thumb.png" alt="vpon-5" width="184" height="203" border="0" /></a></li>
<li>用WinRAR分別開啟Google AdWhirl及Vpon AdWhirl，這個目的是要把Vpon的adapter抓到Google AdWhirl中使用(直接把com\adwhirl\adapters\<span style="color: #ff0000;"><strong>AdOnCNAdapter.class, AdOnTWAdapter.class</strong></span><span style="color: #000000;">拉到Google AdWhirl中</span>)。<br />
<a href="https://noter.tw/wp-content/uploads/2012/01/vpon-6.png" data-wpel-link="internal"><img fetchpriority="high" decoding="async" style="background-image: none; border-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px;" title="vpon-6" src="https://noter.tw/wp-content/uploads/2012/01/vpon-6_thumb.png" alt="vpon-6" width="544" height="337" border="0" /></a></li>
<li>將必須的JAR加入Java Build Path中(kuAD, GoogleAdMobAdsSdk如果沒使用可以不用理它們)。<br />
<a href="https://noter.tw/wp-content/uploads/2012/01/vpon-4.png" data-wpel-link="internal"><img decoding="async" style="background-image: none; padding-left: 0px; padding-right: 0px; display: block; float: none; margin-left: auto; margin-right: auto; padding-top: 0px; border: 0px none -moz-use-text-color;" title="vpon-4" src="https://noter.tw/wp-content/uploads/2012/01/vpon-4_thumb.png" alt="vpon-4" width="254" height="476" border="0" /></a></li>
<li>在AndroidManifest.xml中加入以下user permission。
<pre class="brush: xml; gutter: true">&lt;uses-permission android:name="android.permission.INTERNET" /&gt;
&lt;uses-permission android:name="android.permission.READ_PHONE_STATE"/&gt;
&lt;uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/&gt;
&lt;uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/&gt;
&lt;uses-permission android:name="android.permission.ACCESS_WIFI_STATE" /&gt;
&lt;uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /&gt;
&lt;uses-permission android:name="android.permission.CAMERA"/&gt;
&lt;uses-feature android:name="android.hardware.camera" /&gt;
&lt;uses-feature android:name="android.hardware.camera.autofocus" /&gt;</pre>
</li>
<li>在AndroidManifest.xml中加入以下activity，要放在&lt;application&gt;&lt;/application&gt;之間。
<pre class="brush: xml; gutter: true">&lt;activity android:name="com.vpon.adon.android.WebInApp"
    android:configChanges="orientation|keyboardHidden|navigation|keyboard"
    android:label="@string/app_name"/&gt;
    &lt;activity android:name="com.vpon.adon.android.CrazyAdRun"
        android:configChanges="orientation|keyboardHidden|navigation|keyboard"
        android:label="@string/app_name"
        android:theme="@android:style/Theme.Translucent" /&gt;
    &lt;activity android:name="com.vpon.adon.android.webClientHandler.QRActivity"
        android:finishOnTaskLaunch = "true"
        android:clearTaskOnLaunch = "true"
        android:configChanges="keyboardHidden|navigation|keyboard" /&gt;
    &lt;activity android:name="com.vpon.adon.android.webClientHandler.ShootActivity"
        android:finishOnTaskLaunch = "true"
        android:clearTaskOnLaunch = "true"
        android:configChanges="keyboardHidden|navigation|keyboard" /&gt;
    &lt;activity android:name="com.google.zxing.client.android.HelpActivity"
        android:finishOnTaskLaunch = "true"
        android:clearTaskOnLaunch = "true"
        android:configChanges="keyboardHidden|navigation|keyboard" /&gt;
    &lt;activity android:name="com.google.zxing.client.android.CaptureActivity"
        android:finishOnTaskLaunch = "true"
        android:clearTaskOnLaunch = "true"
        android:configChanges="orientation|keyboardHidden"
        android:screenOrientation="landscape"
        android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
        android:windowSoftInputMode="stateAlwaysHidden"&gt;
            &lt;intent-filter&gt;
                &lt;action android:name="com.google.zxing.client.android.SCAN"/&gt;
                &lt;category android:name="android.intent.category.DEFAULT"/&gt;
            &lt;/intent-filter&gt;
    &lt;/activity&gt;
    &lt;!-- kuad 的，沒用到kuad的話要拿掉 --&gt;
    &lt;activity android:name="com.kuad.ADDisplay"/&gt;
    &lt;!-- AdMob的 --&gt;
    &lt;activity android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"
        android:name="com.google.ads.AdActivity" /&gt;</pre>
</li>
<li>將上面專案中src下除了com.android.vpon.adon以外的package全部複製下來。<br />
<a href="https://noter.tw/wp-content/uploads/2012/01/vpon-1.png" data-wpel-link="internal"><img decoding="async" style="background-image: none; border-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px;" title="vpon-1" src="https://noter.tw/wp-content/uploads/2012/01/vpon-1_thumb.png" alt="vpon-1" width="544" height="420" border="0" /></a></li>
<li>在自己專案中的src下貼上。<br />
<a href="https://noter.tw/wp-content/uploads/2012/01/vpon-2.png" data-wpel-link="internal"><img decoding="async" style="background-image: none; border-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px;" title="vpon-2" src="https://noter.tw/wp-content/uploads/2012/01/vpon-2_thumb.png" alt="vpon-2" width="544" height="321" border="0" /></a></li>
<li>有幾個package及檔案會出現紅色叉叉。<br />
<a href="https://noter.tw/wp-content/uploads/2012/01/vpon-3.png" data-wpel-link="internal"><img decoding="async" style="background-image: none; border-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px;" title="vpon-3" src="https://noter.tw/wp-content/uploads/2012/01/vpon-3_thumb.png" alt="vpon-3" width="344" height="462" border="0" /></a></li>
<li>開啟有紅色叉叉的檔案，置換.R檔的正確位置(自己主要專案的package)
<pre class="brush: java; gutter: true">//import com.android.vpon.adon.R; //change import
import com.hans.adwhirl.R;</pre>
</li>
<li>確定都沒有紅色叉叉後，加入呼叫AdWirl程式碼。
<pre class="brush: java; gutter: true">package com.hans.adwhirl;
import com.adwhirl.AdWhirlLayout;
import com.adwhirl.AdWhirlManager;
import com.adwhirl.AdWhirlTargeting;
import com.adwhirl.AdWhirlLayout.AdWhirlInterface;
import com.adwhirl.AdWhirlLayout.ViewAdRunnable;
import com.adwhirl.util.AdWhirlUtil;
import com.kuad.KuBanner;
import com.kuad.kuADListener;
import com.vpon.adon.android.AdListener;
import com.vpon.adon.android.AdOnPlatform;
import com.vpon.adon.android.AdView;
import android.app.Activity;
import android.os.Bundle;
import android.util.Log;
import android.widget.LinearLayout;
import android.widget.LinearLayout.LayoutParams;
public class TestAdWhirlActivity extends Activity implements AdWhirlInterface {
    AdWhirlLayout adWhirlLayout;
    private static final String ADWHIRL_KEY		= "換成自己的Google AdWhirl Key";
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        // 預留放置廣告的layout
        LinearLayout layout = (LinearLayout)findViewById(R.id.mainLayout);
        // 初始化 adwhirl layout
        adWhirlLayout = new AdWhirlLayout(this, ADWHIRL_KEY);
        AdWhirlManager.setConfigExpireTimeout(1000 * 60);
        // 年齡
        AdWhirlTargeting.setAge(23);
        // 性別
    	AdWhirlTargeting.setGender(AdWhirlTargeting.Gender.MALE);
    	// 郵遞區號
    	AdWhirlTargeting.setPostalCode("115");
    	// 是否為測試模式，上架時要改成false
    	AdWhirlTargeting.setTestMode(true);
    	// 這行千萬不可以漏掉
    	adWhirlLayout.setAdWhirlInterface(this);
    	// 將 adwhirl layout 放入我們預留的顯示廣告的 layout 中
    	layout.addView(adWhirlLayout);
    }
    @Override
    public void adWhirlGeneric() {
	// TODO Auto-generated method stub
    }
    public void showVpon(){
	AdView adView = new AdView(this);
	adView.setLicenseKey("Vpon Banner ID 輸入在這邊(版面ID)", AdOnPlatform.TW, false);
	adView.setAdListener(new AdListener() {
    	    @Override
            public void onRecevieAd(AdView adView) {
    	        Log.d(AdWhirlUtil.ADWHIRL, "Vpon ad success");
                adWhirlLayout.adWhirlManager.resetRollover();
	        adWhirlLayout.handler.post(new ViewAdRunnable(adWhirlLayout, adView));
	        adWhirlLayout.rotateThreadedDelayed();
	    }
	    @Override
	    public void onFailedToRecevieAd(AdView adView) {
                Log.d(AdWhirlUtil.ADWHIRL, "Vpon ad failure");
	        adView.setAdListener(null);
	        adWhirlLayout.rollover();
	    }
        });
    }
    // for kuAD
    /*
    public void showKuAD(){
        Log.e("showKuAD", "showKuAD()");
	final KuBanner banner = new KuBanner(this);
	banner.setAPID("如果有用kuAD的話，kuAD的APID");
	banner.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.WRAP_CONTENT));
	banner.setkuADListener(new kuADListener() {
	    @Override
	    public void onRecevie(String arg0) {
	        Log.e("onRecevie", "onRecevie -&gt; " + arg0);
		adWhirlLayout.adWhirlManager.resetRollover();
		adWhirlLayout.handler.post(new ViewAdRunnable(adWhirlLayout, banner));
		adWhirlLayout.rotateThreadedDelayed();
	    }
	    @Override
	    public void onFailedRecevie(String arg0) {
		Log.e("onFailedRecevie", "showKuAd -&gt; " + arg0);
		banner.setkuADListener(null);
		adWhirlLayout.rollover();
	    }
        });
    }
}</pre>
</li>
<li>可以丟到模擬器或手機上執行囉！</li>
</ol>
<p>這篇文章 <a rel="nofollow" href="https://noter.tw/1864/google-adwhirl-with-vpon/" data-wpel-link="internal">Google AdWhirl with Vpon</a> 最早出現於 <a rel="nofollow" href="https://noter.tw" data-wpel-link="internal">記下來</a>。</p>
]]></content:encoded>
					
					<wfw:commentRss>https://noter.tw/1864/google-adwhirl-with-vpon/feed/</wfw:commentRss>
			<slash:comments>12</slash:comments>
		
		
			</item>
		<item>
		<title>AdWhirl with AdMob by Google</title>
		<link>https://noter.tw/1793/adwhirl-with-admob-by-google/</link>
					<comments>https://noter.tw/1793/adwhirl-with-admob-by-google/#respond</comments>
		
		<dc:creator><![CDATA[黃小蛙]]></dc:creator>
		<pubDate>Sat, 07 Jan 2012 05:59:22 +0000</pubDate>
				<category><![CDATA[手機 App]]></category>
		<category><![CDATA[Android]]></category>
		<category><![CDATA[admob]]></category>
		<category><![CDATA[ads]]></category>
		<category><![CDATA[AdWhirl]]></category>
		<category><![CDATA[kuAD]]></category>
		<category><![CDATA[kuSOGI]]></category>
		<category><![CDATA[Vpon]]></category>
		<category><![CDATA[廣告]]></category>
		<guid isPermaLink="false">http://wazai.net/?p=1793</guid>

					<description><![CDATA[<p>AdWhirl是一套廣告輪播平台，開發者如果同時有許多廣告商，例如：AdMob, Vpon, KuAD …等等，就可以透過AdWhirl依照自己的需求來設定百分比輪播廣告，這篇文章小蛙要記錄使用Goo&#46;&#46;&#46;</p>
<p>這篇文章 <a rel="nofollow" href="https://noter.tw/1793/adwhirl-with-admob-by-google/" data-wpel-link="internal">AdWhirl with AdMob by Google</a> 最早出現於 <a rel="nofollow" href="https://noter.tw" data-wpel-link="internal">記下來</a>。</p>
]]></description>
										<content:encoded><![CDATA[<p><span style="color: #ff0000;"><strong>AdWhirl</strong></span>是一套廣告輪播平台，開發者如果同時有許多廣告商，例如：AdMob, Vpon, KuAD …等等，就可以透過AdWhirl依照自己的需求來設定百分比輪播廣告，這篇文章小蛙要記錄<strong>使用Google AdWhirl來播放AdMob廣告</strong>。<br />
<span id="more-1793"></span><br />
可能有些人會覺得如果只用AdMob就依照上一篇文章使用AdMob就好啦！為什麼還要用到AdWhirl，如果只是要放AdMob的確不需要用到AdWhirl，小蛙會用到AdWhirl的原因是想比較各家廣告商在同一期間內可以獲得的收益狀況，還有一個原因是對於台灣地區來說，由於在地化的關係，Vpon及KuAD撥放出來的廣告會比AdMob的廣告更容易吸引使用者。<br />
千萬注意，這邊小蛙用的AdWhirl是<span style="color: #ff0000;"><strong>Google AdWhirl by AdMob</strong></span>(<a title="https://www.adwhirl.com/" href="https://www.adwhirl.com/" target="_blank" rel="noopener noreferrer nofollow external" data-wpel-link="external" class="wpel-icon-right">https://www.adwhirl.com/<span class="wpel-icon wpel-image wpel-icon-6"></span></a>)，由於AdWhirl是Google Project中的Open Source，所以各家廣告商為了吸引開發商或廣告主，都會打著「<strong>整合AdWhirl平台，可以輪播自己想要的廣告</strong>」的名號，像Vpon自己的AdWhirl就增加了「<strong>自動判斷地區</strong>」的服務，由於Vpon服務的客戶有台灣地區及大陸地區，如果能在台灣地區撥放台灣當地的廣告，大陸地區撥放大陸當地的廣告，這樣會使的廣告的投放更有效率(我們會去擊點不相關廣告的機率應該很低吧！比如說在台灣卻去點廣州車商的特惠活動，不小心點到另當別論)；kuSOGI也推出自己的AdWhirl，其中強調的就是可以「同時」(也就是設定比例自動輪播)自家的kuAD以及上面提到的Vpon與AdMob廣告。下面三張圖是三家廣告商的AdWhirl，除了網址列之外，網頁外觀一模一樣，不小心就會搞錯。<br />
<strong>Google AdWhirl</strong><br />
<a href="https://noter.tw/wp-content/uploads/2012/01/adwhirl-22.png" data-wpel-link="internal"><img decoding="async" style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border-width: 0px;" title="adwhirl-22" src="https://noter.tw/wp-content/uploads/2012/01/adwhirl-22_thumb.png" alt="adwhirl-22" width="544" height="416" border="0"></a><br />
<strong>kuSOGO AdWhirl</strong><br />
<a href="https://noter.tw/wp-content/uploads/2012/01/adwhirl-21.png" data-wpel-link="internal"><img decoding="async" style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border-width: 0px;" title="adwhirl-21" src="https://noter.tw/wp-content/uploads/2012/01/adwhirl-21_thumb.png" alt="adwhirl-21" width="544" height="416" border="0"></a><br />
<strong>Vpon AdWhirl</strong><br />
<a href="https://noter.tw/wp-content/uploads/2012/01/adwhirl-20.png" data-wpel-link="internal"><img decoding="async" style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border-width: 0px;" title="adwhirl-20" src="https://noter.tw/wp-content/uploads/2012/01/adwhirl-20_thumb.png" alt="adwhirl-20" width="544" height="416" border="0"></a><br />
如同Android一般，AdWhirl由於是Open Source，意味著各家廠商可以依照自己的需求更改程式碼，也使得各家的AdWhirl可能會有不同的行為模式，Google AdWhirl的使用方法未必會與Vpon AdWhirl或kuSOGI AdWhirl相同，小蛙還是要強調這篇文章記錄的是<span style="color: #ff0000;"><strong>Google AdWhirl</strong></span>，接下來進入正題。</p>
<ul>
<li><span style="color: #ff0000;"><strong>AdWhirl申請及設定</strong></span></li>
</ul>
<ol>
<li>到<a title="https://www.adwhirl.com/" href="https://www.adwhirl.com/" target="_blank" rel="noopener noreferrer nofollow external" data-wpel-link="external" class="wpel-icon-right">https://www.adwhirl.com/<span class="wpel-icon wpel-image wpel-icon-6"></span></a>註冊一個Google AdWhirl帳號。<a href="https://noter.tw/wp-content/uploads/2012/01/adwhirl-5.png" data-wpel-link="internal"><img decoding="async" style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border-width: 0px;" title="adwhirl-5" src="https://noter.tw/wp-content/uploads/2012/01/adwhirl-5_thumb.png" alt="adwhirl-5" width="544" height="188" border="0"></a></li>
<li>認證完成功登入後進入「Apps」頁籤，點選「Add Application」。<a href="https://noter.tw/wp-content/uploads/2012/01/adwhirl.png" data-wpel-link="internal"><img decoding="async" style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border-width: 0px;" title="adwhirl" src="https://noter.tw/wp-content/uploads/2012/01/adwhirl_thumb.png" alt="adwhirl" width="545" height="274" border="0"></a></li>
<li>填入應用程式相關資訊，軟體名稱、應用程式URL(market連結)、廣告平台，其他的小蛙都是直接用預設值。(如果要取得地區資訊，把Allow Location Access改成ON)<br />
<a href="https://noter.tw/wp-content/uploads/2012/01/adwhirl-1.png" data-wpel-link="internal"><img decoding="async" style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border-width: 0px;" title="adwhirl-1" src="https://noter.tw/wp-content/uploads/2012/01/adwhirl-1_thumb.png" alt="adwhirl-1" width="544" height="447" border="0"></a></li>
<li>新增完成後就可以在程式列表中看到剛剛新增的應用程式，點選進去。<a href="https://noter.tw/wp-content/uploads/2012/01/adwhirl-2.png" data-wpel-link="internal"><img decoding="async" style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border-width: 0px;" title="adwhirl-2" src="https://noter.tw/wp-content/uploads/2012/01/adwhirl-2_thumb.png" alt="adwhirl-2" width="544" height="278" border="0"></a></li>
<li>點選AdMob旁邊的「Edit Settings」，將AdMob的發佈商ID填入(<a href="https://noter.tw/1758/google-admob-for-android" target="_blank" rel="noopener noreferrer" data-wpel-link="internal">Google AdMob for Android</a>步驟6)。並且將Ad Serving選擇成ON，% of Traffic設定成100%。每次更動都別忘了點選最下方有個「Save Changes」。到這邊AdWhirl就設定完畢了。接下來介紹在Android程式的部份。<br />
<a href="https://noter.tw/wp-content/uploads/2012/01/adwhirl-23.png" data-wpel-link="internal"><img decoding="async" style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border-width: 0px;" title="adwhirl-23" src="https://noter.tw/wp-content/uploads/2012/01/adwhirl-23_thumb.png" alt="adwhirl-23" width="544" height="314" border="0"></a></li>
</ol>
<ul>
<li><strong><span style="color: #ff0000;">在Android程式中加入AdWhirl + AdMob</span></strong></li>
</ul>
<ol>
<li>到「Dev Resources」頁面的「Download the lastest version」下載最新版的AdWhirl套件。<a href="https://noter.tw/wp-content/uploads/2012/01/adwhirl-25.png" data-wpel-link="internal"><img decoding="async" style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border-width: 0px;" title="adwhirl-25" src="https://noter.tw/wp-content/uploads/2012/01/adwhirl-25_thumb.png" alt="adwhirl-25" width="544" height="312" border="0"></a></li>
<li>下載「AdWhirlSDK_Android_3.1.1.zip」(視當時版本，總之選擇_Android就是了)<a href="https://noter.tw/wp-content/uploads/2012/01/adwhirl-26.png" data-wpel-link="internal"><img decoding="async" style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border-width: 0px;" title="adwhirl-26" src="https://noter.tw/wp-content/uploads/2012/01/adwhirl-26_thumb.png" alt="adwhirl-26" width="544" height="314" border="0"></a></li>
<li>解壓縮zip檔後得到<span style="color: #ff0000;"><strong>AdWhirlSDK_Android_3.1.1.jar</strong></span>，與<a href="https://noter.tw/1758/google-admob-for-android" target="_blank" rel="noopener noreferrer" data-wpel-link="internal">Google AdMob for Android</a>步驟4得到的<strong><span style="color: #ff0000;">GoogleAdMobAdsSdk-4.3.1.jar</span></strong>加入到Eclipse中(加入的方法請參考<a href="https://noter.tw/1758/google-admob-for-android" target="_blank" rel="noopener noreferrer" data-wpel-link="internal">Google AdMob for Android</a>步驟10)。加入成功會在Eclispe專案中看到如下圖。<a href="https://noter.tw/wp-content/uploads/2012/01/adwhirl-27.png" data-wpel-link="internal"><img decoding="async" style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border-width: 0px;" title="adwhirl-27" src="https://noter.tw/wp-content/uploads/2012/01/adwhirl-27_thumb.png" alt="adwhirl-27" width="244" height="241" border="0"></a></li>
<li>先設定需要擺放廣告的layout，小蛙在主layout <span style="color: #ff0000;"><strong>main.xml</strong></span>中新增了一個<span style="color: #ff0000;"><strong>@+id/mainLayout</strong></span>來放置AdWhirl輪播的廣告。
<pre class="brush: xml; gutter: true">&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
&nbsp;&nbsp;&nbsp; android:layout_width="fill_parent"
&nbsp;&nbsp;&nbsp; android:layout_height="fill_parent"
&nbsp;&nbsp;&nbsp; android:orientation="vertical" &gt;
    &lt;!-- 用來放置AdWhirl輪播的區塊 --&gt;
&nbsp;&nbsp; &nbsp;&lt;LinearLayout
&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;android:id="@+id/mainLayout"
&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;android:layout_width="fill_parent"
&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;android:layout_height="wrap_content"
&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;android:paddingBottom="10dp"&gt;
&nbsp;&nbsp; &nbsp;&lt;/LinearLayout&gt;
&lt;/LinearLayout&gt;</pre>
</li>
<li>接著在<span style="color: #ff0000;"><strong>AndroidManifest.xm</strong></span>l加入user permission，並且加入一個新的Activity。。
<pre class="brush: xml; gutter: true">&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
&nbsp;&nbsp;&nbsp; package="com.hans.adwhirl"
&nbsp;&nbsp;&nbsp; android:versionCode="1"
&nbsp;&nbsp;&nbsp; android:versionName="1.0" &gt;
&nbsp;&nbsp;&nbsp; &lt;uses-sdk android:minSdkVersion="8" /&gt;
&nbsp; &nbsp; &lt;!-- 必要 --&gt;
&nbsp;&nbsp; &nbsp;&lt;uses-permission android:name="android.permission.INTERNET" /&gt;
&nbsp;&nbsp;&nbsp; &lt;uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /&gt;
&nbsp;&nbsp;&nbsp; &lt;!-- adwhirl 選用，如果有開啟地區偵測 --&gt;
&nbsp;&nbsp;&nbsp; &lt;uses-permission android:name="android.permission.READ_PHONE_STATE" /&gt;
&nbsp;&nbsp; &nbsp;&lt;uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /&gt;
&nbsp;&nbsp; &nbsp;&lt;uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /&gt;
&nbsp;&nbsp;&nbsp; &lt;application
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; android:icon="@drawable/ic_launcher"
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; android:label="@string/app_name" &gt;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;activity
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; android:label="@string/app_name"
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; android:name=".TestAdWhirlActivity" &gt;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;intent-filter &gt;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;action android:name="android.intent.action.MAIN" /&gt;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/intent-filter&gt;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/activity&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &lt;!-- 一定要新增用來播放廣告的Activity --&gt;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;activity
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; android:name="com.google.ads.AdActivity" /&gt;
&nbsp;&nbsp;&nbsp; &lt;/application&gt;
&lt;/manifest&gt;</pre>
</li>
<li>程式碼的部份。
<pre class="brush: xml; gutter: true">package com.hans.adwhirl;
import com.adwhirl.AdWhirlLayout;
import com.adwhirl.AdWhirlManager;
import com.adwhirl.AdWhirlTargeting;
import com.adwhirl.AdWhirlLayout.AdWhirlInterface;
import android.app.Activity;
import android.os.Bundle;
import android.widget.LinearLayout;
public class TestAdWhirlActivity extends Activity implements AdWhirlInterface {
&nbsp; &nbsp; AdWhirlLayout adWhirlLayout;
&nbsp; &nbsp; private static final String ADWHIRL_KEY		= "換上自己的adwhirl_key";
&nbsp; &nbsp; @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        // 預留放置廣告的layout
        LinearLayout layout = (LinearLayout)findViewById(R.id.mainLayout);
        // 初始化 adwhirl layout
        adWhirlLayout = new AdWhirlLayout(this, ADWHIRL_KEY);
        AdWhirlManager.setConfigExpireTimeout(1000 * 60);
        // 年齡
        AdWhirlTargeting.setAge(23);
        // 性別
    	AdWhirlTargeting.setGender(AdWhirlTargeting.Gender.MALE);
    	// 郵遞區號
    	AdWhirlTargeting.setPostalCode("115");
    	// 是否為測試模式，上架時要改成false
    	AdWhirlTargeting.setTestMode(true);
    	// 將 adwhirl layout 放入我們預留的顯示廣告的 layout 中
    	layout.addView(adWhirlLayout);
    }
&nbsp; &nbsp; @Override
&nbsp; &nbsp; public void adWhirlGeneric() {
&nbsp; &nbsp; &nbsp; &nbsp; // TODO Auto-generated method stub
&nbsp; &nbsp; }
}</pre>
</li>
<li>這時候會遇到一個錯誤。解決辦法就是把專案的SDK Version設定成3.2+(設定方法請參考<a href="https://noter.tw/1758/google-admob-for-android" target="_blank" rel="noopener noreferrer" data-wpel-link="internal">Google AdMob for Android</a>步驟11)
<pre class="brush: text; gutter: true">Description	Resource	Path	Location	Type
error: Error: String types not allowed (at 'configChanges' with value 'keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize').	AndroidManifest.xml	/TestAdWhirl	line 26	Android AAPT Problem</pre>
</li>
<li>如果錯誤還是存在，可以考慮Project –&gt; Clean –&gt; 選擇要清除的專案，執行完畢之後錯誤就消失了！</li>
<li>趕快運行看看，就可以在模擬器或手機上看到Admob廣告囉！<br />
<a href="https://noter.tw/wp-content/uploads/2012/01/20120107_135209.jpg" target="_blank" rel="noopener noreferrer" data-wpel-link="internal"><img decoding="async" class="alignnone size-full wp-image-1797" title="20120107_135209" src="https://noter.tw/wp-content/uploads/2012/01/20120107_135209.jpg" alt="20120107 135209 AdWhirl with AdMob by Google" width="288" height="480"></a></li>
</ol>
<p>這篇文章 <a rel="nofollow" href="https://noter.tw/1793/adwhirl-with-admob-by-google/" data-wpel-link="internal">AdWhirl with AdMob by Google</a> 最早出現於 <a rel="nofollow" href="https://noter.tw" data-wpel-link="internal">記下來</a>。</p>
]]></content:encoded>
					
					<wfw:commentRss>https://noter.tw/1793/adwhirl-with-admob-by-google/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
