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

  • Home
  • SEARCH
  • 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 8372421
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T14:25:40+00:00 2026-06-09T14:25:40+00:00

I am a mobile app developer, using the Cordova Framework. I want to integrate

  • 0

I am a mobile app developer, using the Cordova Framework. I want to integrate Google adMob in my projects without plugins. I want to use a simple Javascript code, because I will control better how and when to display ad banners on screen, in any operating systems: WP7, Android, iOS…

I found an old article (June 2011) that shows how do it. It uses this javascript file, but it doesn’t works. I am trying this code:

<script type="text/javascript">
var admob_vars = {
  pubid: 'a1501b#######150', // publisher id
  bgcolor: 'FFFFFF', // background color (hex)
  text: '000000', // font-color (hex)
  test: true // test mode, set to false to receive live ads
};
</script>
<script type="text/javascript" src="http://mmv.admob.com/static/iphone/iadmob.js">
</script> 
<div style="position:absolute; z-index:999999; left:1px; top:100px; width:100%; height:100px; background-color:#e0e0e0; color:Blue;">
  [Google Ads div]
  <div id="admob_ad"></div>
</div>
<script>
    _admob.fetchAd(document.getElementById('admob_ad'));
</script>

Alternatively, I’d like to find a mobile ads agency that allows the use of Javascript files in my app mobile projects.

  • 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-06-09T14:25:41+00:00Added an answer on June 9, 2026 at 2:25 pm

    Well, I was trying to use the same javascript code. But it seems Google has withdrawn it’s support for this method as mentioned here

    Following is an excerpt from the page:

    Please note that we are closing down AdMob Smartphone Web on May 1, 2012 and consolidating it with the main Google AdSense for content product.

    This site will help to integrate adsense in Cordova. But it has it’s limitations. Jquery mobile’s ajax transitions are to be turned off for adsense to work!

    So I’ll be sticking with the Admob SDK till a better solution pops up.

    Hope it helps.

    Edit:

    Today I came across InMobi ad network which support fetching ads through javascript. The JS code is here.
    Whereas InMobi’s official comparison with Admob is here.
    So far I have not come across any ad mediation support by the InMobi network. But I guess I’ll give it a try.

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

Sidebar

Related Questions

I want to integrate Facebook with my Birthday App, so I started https://developers.facebook.com/docs/mobile/android/build/ working
I want to develop cross platform mobile app. I have seen frameworks listed below
I am developing a mobile app using j2me. It works fine in sony ericsson
I'm developing a mobile app using j2me and lwuit. There is a lcdui DateField
I have a mobile app that is using LinqToDatasets to update/insert into a SQL
I am using phonegap and sqlite to develop cross-platform mobile app for android,ios,blackberry.For reference
I want to allow users of an iPhone app to upload photos and use
I want to allow users of an iPhone app to upload photos and use
I am starting into the development of mobile app. I want to start with
A Mobile Operator needs to distribute an app which is using private APIs onto

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.