Skip to main content
Participant
November 1, 2010
Question

Admob - Google Ads?

  • November 1, 2010
  • 27 replies
  • 151259 views

Innovative - will you? where can I find flash/air integration admob android ...

...where is Google Ads - Admob plugin or similar code?

This is a must in next release Flash CS5.5/AIR2.5!

this is very important ...

This topic has been closed for replies.

27 replies

Known Participant
October 28, 2012

https://code.google.com/p/flash-air-admob-ane-for-ios-and-android/    google admob ane for android show ads well.landscape and portrait barnner

Inspiring
November 15, 2011

Hi, I was develop a Native Extension (ANE) for iOS that support AdMob. You can see a example of usage here: http://www.enriquedavid.es/adobe-native-extension-admob.html and download it from here: http://www.enriquedavid.es/downloads/admob-native-extension.zip

It's in Spannish if some one need help, within a time I can write a translation.

I hope will be helpful.

Participating Frequently
November 14, 2011

Hey  guys,

I thought you might be interested to know our Native AdMob AIR 3 Extension for Android just came out.  You can check it out here:

http://www.milkmangames.com/blog/2011/11/10/announcing-native-android-admob-support-for-adobe-air/

This is a true native java/android extension, not a hack with StageWebView.  It supports creating, destroying, showing and hiding of ads, all the AdMob sizes and formats for phones and tablets, events dispatched for all lifecycle states, etc.  It also smartly handles any changes to stage orientation, and has included sample apps.  You can get your ads inserted with 2 lines of code.

You can also see it in action with our game Aqualux here.

Hope it's useful!  I'll be releasing a similar versin for iOS, and a GameCenter extension and some other goodies very soon!

Alex

Milkman Games

November 16, 2011

I guys, I have to say that you did an excellent job.

I made it work in few minutes and FINALLY I CAN EARN SOMETHING with banners!

Thanks!

Participating Frequently
November 16, 2011

Glad it worked for you BaronKarza!

Inspiring
November 9, 2011

I just develop a Native Extension for adMob to iOs, I'm writing a post in my blog to explain and show examples to use. I hope that this week I have release it, maybe same one be very useful.

Inspiring
November 10, 2011

No love for Android?

Participant
November 10, 2011

Until there are Native Extensions for Android. The web solution with Leadbolt / Admob is working ok.

http://tinyurl.com/7luytgo

Known Participant
November 5, 2011

I custom built my own system (many months ago) after making this post.

It integrates with AdMob fine enough. Now I see some concern that Google bought them out and want to switch everything to AdWords AdSense.

Further investigation led me to believe that there is no Mobile solution there and that was only for Web Ads, of which they reject a signup request without super content.

Anyway I used older 3D stuff to create awesome transitions etc.

When scaling the little mobile test app to various devices from the same mobius code, I noted 3D mouse clicks was not translating properly, so I had to hack an invisible button over the ad space, so not super ready for others to use but good enough for my own primtime I suppose (I haven't had time to get it out there yet BTW).

You basically need an awesome supporting website to convinece any advertiser to put an ad up with you, so it's your own ads only at first anyway.

Oh right I wanted to say that my solution has nothing to do with any HTML or Web Viewer window which can't go into a scroller and is only an overlay which is useless in my estimation for most things except maybe ads. Just use the simplist thing Anchor Link HREF and image reference IMG SRC to figure it out... done.

Added features I have figured out and impliments beside interface to all actions with GoogleAnalytics are GPS position, contry codes, unique device ids, etc. you name it. Custom coding this is totally worth it trust me.

Participant
September 29, 2011

Hi all,

Thanks for the information on this post. I have 2 questions if someone could reply please...

I got my air app working with admob, however I get the same results as many, where sometimes there are no ads... So I created a house ad to fill in when there are no ads. But, I did not see anywhere that I can link the house ad to my smartphone set up...

Is is even possible to fill in with house ads with "smartphone web" site/app?

There seems to be so many services out there, assuming we could get any of them working with Air.. what would be the one with the most payout? Does AdMob pay well? What about leadboltapps?

thank-you!

Inspiring
October 11, 2011

Hoping with the new native extension feature, someone comes up with admob extension...

October 31, 2011

Yes, I would pay for it.

It is the most important extension: if we are not able to make money with advertising, we cannot waste time in android applications.

September 27, 2011

I had a play with this but could only get it to work with the press of a button, does anyone have a fla available to display an admob ad correctly without pressing anything? It would save me muchos time and id be happy to give a donation for the help. email me if you can help pleeeeease info@crea8media.co.uk.

Participating Frequently
August 23, 2011

After a lot of trouble (account canned on ADMOB ) and research, I have gotten Ads to work in all my Android Apps. This will work on a lot of AD networks, but most will ban you click fraud. Only one network allows this method and they provide support for it too.

I have over 100 games apps. with this method implemented and working. Here is a link to one of them for you to see how it will look in game. I am using multiple ads in this to force the user to click and make me some money: https://market.android.com/details?id=air.GraffitiCityMarketFree&feature=search_result

Does LeadBolt offer HTML integration for banner ads?

LeadBolt does allow banner ads to be integrated into your app using HTML, rather than using our SDK. To create a HTML banner ad after adding an app to the LeadBolt portal, simply click “Add Ad” and select “App Banner (HTML)” from the drop down box. The HTML snippet can then be added directly into your app’s HTML framework.

So far my eCPM is $6.15

I have created this guide to show my appreciation:

Publisher Code:

STEP I:

Get an Account: http://leadboltapps.com/web/publishers/signup.php?ref=10022842

STEP II:

Click on the “APPS” tab and “Create New APP” to create an AD. Remember to change content unlocker to HTML Banner. While in the process.

STEP III:

Get the HTML AD Code and keep it safe. That is all we need from the site. How simple was that?

AD HTML FILE:

Create an HTML File and Load it to your site. Remember to replace your HTML Code from above step with where I have put: ****ENTER HTML AD CODE HERE****

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>

<title>Untitled Document</title>

<style type="text/css">

body,td,th {

     color: #FFF;

}

body {

     background-color: #000;

     margin-left: 0px;

     margin-top: 0px;

     margin-right: 0px;

     margin-bottom: 0px;

     text-align: center;

     position: relative;

}

</style>

</head>

<body>

****ENTER HTML AD CODE HERE****

</body>

</html>

Action Script Code:

STEP I:

Credit: I found this on another site and would like to give credit to the author of pixelpaton.com

The only change you need to make is to enter your website html url where you have placed the AD HTML FILE in the space where I have put : "****ENTER COMPLETE HTML URL HERE****". Where ever you want the AD, place the following code:

// imports

import flash.events.Event;

import flash.events.LocationChangeEvent;

import flash.geom.Rectangle;

import flash.media.StageWebView;

import flash.net.navigateToURL;

import flash.net.URLRequest;

import flash.events.MouseEvent;

// setup variables

var _stageWebView:StageWebView;

var myAdvertURL:String = "****ENTER COMPLETE HTML URL HERE****";

//

                {

                // check that _stageWebView doersn't exist

                if (! _stageWebView) {

                                _stageWebView = new StageWebView () ;

                                // set the size of the html 'window'

                                _stageWebView.viewPort = new Rectangle(0,0, 800, 100);

                                // add a listener for when the content of the StageWebView changes

                                _stageWebView.addEventListener(LocationChangeEvent.LOCATION_CHANGE,onLocationChange);

                                // start loading the URL;

                                _stageWebView.loadURL(myAdvertURL);

                }

                // show the ad by setting it's stage property;

                _stageWebView.stage = stage;

}

function toggleAd(event:MouseEvent):void {

                trace("toggling advert",_stageWebView);

                // check that StageWebView instance exists

                if (_stageWebView) {

                                trace("_stageWebView.stage:"+_stageWebView.stage);

                                if (_stageWebView.stage == null) {

                                                //show the ad by setting the stage parameter

                                                _stageWebView.stage = stage;

                                } else {

                                                // hide the ad by nulling the stage parameter

                                                _stageWebView.stage = null;

                                }

                } else {

                                // ad StageWebView doesn't exist - show create it

               

                }

}

function destroyAd(event:MouseEvent):void {

                // check that the instace of StageWebView exists

                if (_stageWebView) {

                                trace("removing advert");

                                // destroys the ad

                                _stageWebView.stage = null;

                                _stageWebView = null;

                }

}

function onLocationChange(event:LocationChangeEvent):void {

                // check that it's not our ad URL loading

                if (_stageWebView.location != myAdvertURL) {

                                // destroy the ad as the user has kindly clicked on my ad

                                destroyAd(null);

                                // Launch a normal browser window with the captured  URL;

                                navigateToURL( new URLRequest( event.location ) );

                }

}

// setup button listeners

Hope this works and helps you. If you have questions, let me know. Enjoy.

Inspiring
August 23, 2011

Wow thanks for sharing. I will look into your solution!

Inspiring
August 9, 2011

Adobe, this is a must if you want AS3 to be successful in mobile, especially android.

Participant
February 24, 2011

Has anyone tried this?

http://pixelpaton.com/?p=3313

February 24, 2011

Yes, this example is great, I now have two applications in the market both with Admob.

Participant
March 16, 2011

Is anyone else having difficulty getting the ads served?  The page loads, admob says I

requested an ad, but they're not filling.  Thoughts?