• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Adview not showing

 
Philip Bayston
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For the life of me i can't get admob to work on my app.
XML:
<com.google.android.gms.ads.AdView android:id="@+id/adView"
xmlns:ads="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
ads:adUnitId="*************************"
ads:adSize="SMART_BANNER"/>
JAVA code:

AdView adView = (AdView)this.findViewById(R.id.adView);

AdRequest adRequest = new AdRequest.Builder()
.addTestDevice(AdRequest.DEVICE_ID_EMULATOR)
.addTestDevice("***************************")
.build();
adView.loadAd(adRequest);

Manifest:

<uses-sdk
android:minSdkVersion="14"
android:targetSdkVersion="19" />
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>

<meta-data android:name="com.google.android.gms.version"
android:value="@integer/google_play_services_version" />

<activity android:name="com.google.android.gms.ads.AdActivity"
android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"/>

LOG:

10-02 23:26:42.088: W/GooglePlayServicesUtil(5260): Google Play services is missing.
10-02 23:26:42.118: I/Ads(5260): Starting ad request.
10-02 23:26:42.158: I/Ads(5260): Please set theme of AdActivity to @android:style/Theme.Translucent to enable transparent background interstitial ad.
10-02 23:26:42.178: D/WebSettings(5260): mDataPath: /data/data/com.example.colourguessfree
10-02 23:26:42.208: D/WebSettings(5260): mDataPath: /data/data/com.example.colourguessfree
10-02 23:26:42.378: I/Adreno200-EGLSUB(5260): <ConfigWindowMatch:2081>: Format RGBA_8888.
10-02 23:26:42.388: D/memalloc(5260): /dev/pmem: Mapped buffer base:0x5228d000 size:3686400 offset:3072000 fd:82
10-02 23:26:42.588: D/memalloc(5260): /dev/pmem: Mapped buffer base:0x528d9000 size:7405568 offset:6791168 fd:85
10-02 23:26:43.178: W/GooglePlayServicesUtil(5260): Google Play services is missing.
10-02 23:26:43.178: E/GooglePlayServicesUtil(5260): GooglePlayServices not available due to error 1
10-02 23:26:43.208: W/GooglePlayServicesUtil(5260): Google Play services is missing.
10-02 23:26:43.208: E/GooglePlayServicesUtil(5260): GooglePlayServices not available due to error 1
10-02 23:26:43.238: W/dalvikvm(5260): VFY: unable to resolve virtual method 640: Landroid/net/ConnectivityManager;.isActiveNetworkMetered ()Z
10-02 23:26:43.288: D/WebSettings(5260): mDataPath: /data/data/com.example.colourguessfree
10-02 23:26:43.328: V/chromium(5260): external/chromium/net/host_resolver_helper/host_resolver_helper.cc:66: [1002/232643:INFO:host_resolver_helper.cc(66)] DNSPreResolver::Init got hostprovider:0x4cb15230
10-02 23:26:43.328: V/chromium(5260): external/chromium/net/base/host_resolver_impl.cc:1515: [1002/232643:INFO:host_resolver_impl.cc(1515)] HostResolverImpl::SetPreresolver preresolver:0x01aeba08
10-02 23:26:43.328: D/(5260): external/chromium/net/socket/tcp_fin_aggregation_factory.cc: libtcpfinaggr.so successfully loaded
10-02 23:26:43.328: D/(5260): external/chromium/net/socket/tcp_fin_aggregation_factory.cc,: TCP Fin Aggregation initializing method was found in libtcpfinaggr.so
10-02 23:26:43.328: D/TCPFinAggregation(5260): system property net.tcp.fin.aggregation was set
10-02 23:26:43.328: D/TCPFinAggregation(5260): system property net.tcp.fin.aggregation.wait was set, value: 20
10-02 23:26:43.328: D/TCPFinAggregation(5260): system property net.tcp.fin.aggregation.close was set, value: 300
10-02 23:26:43.328: D/TCPFinAggregation(5260): system property net.close.unused.sockets was set, value: 1
10-02 23:26:43.328: D/TCPFinAggregation(5260): Failed to get network status! received ret: -2
10-02 23:26:43.338: V/WebRequest(5260): WebRequest::WebRequest, setPriority = 1
10-02 23:26:43.348: V/chromium(5260): external/chromium/net/disk_cache/hostres_plugin_bridge.cc:52: [1002/232643:INFO:hostres_plugin_bridge.cc(52)] StatHubCreateHostResPlugin initializing...
10-02 23:26:43.348: V/chromium(5260): external/chromium/net/disk_cache/hostres_plugin_bridge.cc:57: [1002/232643:INFO:hostres_plugin_bridge.cc(57)] StatHubCreateHostResPlugin lib loaded
10-02 23:26:43.348: V/chromium(5260): external/chromium/net/disk_cache/hostres_plugin_bridge.cc:63: [1002/232643:INFO:hostres_plugin_bridge.cc(63)] StatHubCreateHostResPlugin plugin connected
10-02 23:26:43.348: V/chromium(5260): external/chromium/net/http/http_cache.cc:1173: [1002/232643:INFO:http_cache.cc(1173)] HttpCache::OnBackendCreated HostStat created
10-02 23:26:43.348: E/chromium(5260): external/chromium/net/disk_cache/stat_hub.cc:190: [1002/232643:ERROR:stat_hub.cc(190)] StatHub::Init - App com.example.colourguessfree isn't supported.
10-02 23:26:43.348: E/chromium(5260): external/chromium/net/disk_cache/stat_hub.cc:190: [1002/232643:ERROR:stat_hub.cc(190)] StatHub::Init - App com.example.colourguessfree isn't supported.
10-02 23:26:43.498: W/Ads(5260): AdWebView unable to handle URL: http://192.168.1.254/mobile-step0.html?org_url=http://googleads.g.doubleclick.net%2fmads%2fstatic%2fmad%2fsdk%2fnative%2fsdk%2dcore%2dv40%2ehtml
10-02 23:26:43.578: E/Ads(5260): JS: Uncaught ReferenceError: AFMA_buildAdURL is not defined (null:1)


I really need help with this, I've looked all over the web and can't see what is wrong
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic