Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7308093
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T23:30:36+00:00 2026-05-28T23:30:36+00:00

I newly created an admob account. I ran a google provided example with my

  • 0

I newly created an admob account. I ran a google provided example with my publisher Id, I found the following logs in the emulator logcat:

I/Ads     (  564): adRequestUrlHtml: <html><head><script src="http://media.admob.com/sdk-core-v40.js"></script><script>AFMA_buildAdURL({"preqs":1,"u_sd":1,"slotname":"**********","u_w":320,"msid":"com.hani.android.admobtest","simulator":1,"cap":"m,a","js":"afma-sdk-a-v4.3.1","isu":"B3EEABB8EE11C2BE770B684D95219ECB","cipa":0,"format":"320x50_mb","net":"ed","app_name":"1.android.com.hani.android.admobtest","hl":"en","extras":{"color_link":"0000FF","color_url":"00FF00","color_text":"000000","color_border":"000000","color_bg":"FF8855"},"u_h":480,"testing":1,"u_audio":4});</script></head><body></body></html>
W/webcore (  564): Can't get the viewWidth after the first layout
I/Ads     (  564): Received ad url: <"url": "http://googleads.g.doubleclick.net:80/mads/gma?preqs=1&u_sd=1&slotname=**********&u_w=320&msid=com.hani.android.admobtest&cap=m%2Ca&js=afma-sdk-a-v4.3.1&isu=B3EEABB8EE11C2BE770B684D95219ECB&cipa=0&format=320x50_mb&net=ed&app_name=1.android.com.hani.android.admobtest&hl=en&u_h=480&u_audio=4&u_so=p&adtest=on&output=html&region=mobile_app&u_tz=-180&ex=1&client_sdk=1&askip=1&pto=0&color_link=0000FF&color_url=00FF00&color_text=000000&color_border=000000&color_bg=FF8855&jsv=1", "afmaNotifyDt": "null">
D/dalvikvm(  564): GC_CONCURRENT freed 336K, 48% free 3280K/6279K, external 1651K/1996K, paused 6ms+5ms
I/Ads     (  564): Invalid response code: 404
D/webviewglue(  564): nativeDestroy view: 0x303a88
I/Ads     (  564): onFailedToReceiveAd(There was an internal error.)

and no ads are showing. anybody faced that 404 error before ?

here is my manifest xml

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:myapp="http://schemas.android.com/apk/res/com.hani.titanium.test"
    package="com.hani.titanium.test"
    android:versionCode="1"
    android:versionName="1.0" >

    <uses-sdk android:minSdkVersion="8" />
    <uses-permission android:name="android.permission.INTERNET"/>
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
    <application
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name" >
        <activity
            android:name=".AdmobTestActivity"
            android:label="@string/app_name" >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
        <activity android:name="com.google.ads.AdActivity"
              android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"/>
    </application>
</manifest>

and the code

package com.hani.titanium.test;

import com.google.ads.AdRequest;
import com.google.ads.AdSize;
import com.google.ads.AdView;
import android.app.Activity;
import android.os.Bundle;
import android.widget.LinearLayout;

public class AdmobTestActivity extends Activity  {

     private AdView adView;


    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.main);

    adView = new AdView(this, AdSize.BANNER, "**********");
    LinearLayout layout = (LinearLayout)findViewById(R.id.linearLayout);
    layout.addView(adView);

    AdRequest request = new AdRequest();
//      request.addTestDevice(AdRequest.TEST_EMULATOR);
    request.setTesting(true);
    adView.loadAd(request);
    }

}

I tried both setTesting(true) and addTestDevice but none of them worked
I also have project target = 13

for those who are familiar with Titanium I tried it there and got the same output which makes me belive it has something to do with admob service itself

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T23:30:37+00:00Added an answer on May 28, 2026 at 11:30 pm

    The code itself looks fine. Both setTesting(true) (which is deprecated FYI) and addTestDevice(AdRequest.TEST_EMULATOR will properly enable test mode on the emulator. Are you still seeing 404 errors? Do you have internet access on your device?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm successfully importing external contacts into the newly created account using this tutorial .
Trying to nest newly created DOM nodes 3 levels deep. I'm using the following
I'm trying to insert several newly created items to the database. I have a
I am trying to add data to a newly created column... DataSet ds =
How do I set default C/C++ compiler options for all newly created projects in
I am attempting to create a Stored Procedure for a newly created database. However
I am contemplating writing a program that will move some newly created dirs to
I would like to return the id of a newly created object for my
Is it bad javascript practice to not assign a newly created object to a
Any advice on how to read auto-incrementing identity field assigned to newly created record

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.