tag:blogger.com,1999:blog-7041745156199549192.post2638378017356849095..comments2024-02-18T21:35:27.335-08:00Comments on Filip's Technical Blog: AdMob ads in PhoneGap appsFilip Czajahttp://www.blogger.com/profile/12289949072596625867noreply@blogger.comBlogger8125tag:blogger.com,1999:blog-7041745156199549192.post-63436289477522682872014-02-19T01:51:02.168-08:002014-02-19T01:51:02.168-08:00package com.aitrich.geo;
import android.os.Bundle;...package com.aitrich.geo;<br />import android.os.Bundle;<br />import android.widget.LinearLayout; <br />import com.google.ads.*;<br />import org.apache.cordova.*;<br />public class geolocation1 extends CordovaActivity <br />{<br /> private static final String AdMob_Ad_Unit = "a15303444fa3f29";<br /> private AdView adView; <br /> <br /> <br /> @Override<br /> public void onCreate(Bundle savedInstanceState)<br /> {<br /> super.onCreate(savedInstanceState);<br /> <br /> super.init();<br /> <br /> // Set by in config.xml<br /> super.loadUrl(Config.getStartUrl());<br /> <br /> <br /> //super.loadUrl("file:///android_asset/www/index.html")<br /> adView = new AdView(this, AdSize.BANNER, AdMob_Ad_Unit); <br /> LinearLayout layout = super.root;<br /> layout.addView(adView); <br /> AdRequest request = new AdRequest();<br /> request.setTesting(true);<br /> adView.loadAd(request); <br /> <br />}<br /><br />}<br />Anonymoushttps://www.blogger.com/profile/01988360567711848189noreply@blogger.comtag:blogger.com,1999:blog-7041745156199549192.post-17651903454339974102013-07-19T00:23:59.828-07:002013-07-19T00:23:59.828-07:00instead of the banner add i get this red error say...instead of the banner add i get this red error saying "you must have AdActivity in AndroidManifest.xml..." but when a add it there, the phone gap app goes back full screen ageing, any ideea why? thanks!fischhttps://www.blogger.com/profile/09318797842171781453noreply@blogger.comtag:blogger.com,1999:blog-7041745156199549192.post-19362679119693912742013-07-01T00:43:18.332-07:002013-07-01T00:43:18.332-07:00@google - html pages are displayed by the internet...@google - html pages are displayed by the internet browser component and the AdMob add by a separate component. Even if the browser content changes (e.g. displays the about page in your case) the add should still be thereFilip Czajahttps://www.blogger.com/profile/12289949072596625867noreply@blogger.comtag:blogger.com,1999:blog-7041745156199549192.post-33241805090601792332013-06-30T22:44:06.803-07:002013-06-30T22:44:06.803-07:00This works great on the index.html page but I want...This works great on the index.html page but I want ads to show on my about.html page too. Any trick to allow this?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-7041745156199549192.post-31701759813119807052013-02-01T01:51:42.231-08:002013-02-01T01:51:42.231-08:00Hi, your tutorial is great, by the way do you have...Hi, your tutorial is great, by the way do you have complete code for this? thanksandrianhttps://www.blogger.com/profile/13891393659017151377noreply@blogger.comtag:blogger.com,1999:blog-7041745156199549192.post-21146334893449382732012-12-21T10:56:06.832-08:002012-12-21T10:56:06.832-08:00Hello Filip, could you provide the full code you m...Hello Filip, could you provide the full code you made for windows phone? That code you posted which was amended in XMLA file?<br />Thank you.Unknownhttps://www.blogger.com/profile/15681141812661304716noreply@blogger.comtag:blogger.com,1999:blog-7041745156199549192.post-34831109466856288042012-10-22T22:52:37.903-07:002012-10-22T22:52:37.903-07:00thanks a lot for the post!
really helped me to und...thanks a lot for the post!<br />really helped me to understand how it works, but I got a small problem that it gives me that the application stopped and it dont work again, and nothing shown up. can u please help?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-7041745156199549192.post-77050400415995827422012-10-02T05:29:15.438-07:002012-10-02T05:29:15.438-07:00Hi, this is great, many thanks. Please let me know...Hi, this is great, many thanks. Please let me know how to include the ad at the top of the screen instead of below.<br />AndyAnonymoushttps://www.blogger.com/profile/12582387737203785669noreply@blogger.com