GithubHelp home page GithubHelp logo

aneadmob's People

Contributors

luc4smoreira avatar orthographic-pedant avatar pozirk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

aneadmob's Issues

Question: Page Vs Main.as

Is it possible to add basic main.as setup to
first keyframe on a flash page? Similiar
to milkmangames admob ane....
If so, can anyone provide example
setup please...

64bit ANE did not work

Hi.
Thanks for your good ANE.
In Android 32bit ANE works fine, but 64bit ANE did not work.

The logtrace in scout is below.

Error! ANE was not properly added to your project.
INIT_FAIL ANE was not properly added to your project.

image
[FD package screenshot]

image
[Apk package screenshot]

I expect ANE to work fine on 64bit OS.

Thanks.

Anyone Please Help, admob ad not shown by using orginal ID

I used lot of ANE for admob , im using flash cc and coding done by AS3(Action Script 3).
I can successfully run code & take Apk for Android devices, And I got test ad after run my apk in android devices.
When i use orginal ad ID i didnt get any ad i got message like Failed to load interstitial ad from the other side.
i used flash animate 2017 also but result is same.
i dont get any ad by using orginal id, this is happend some days before. my All Android live Apps in playstore are working and this issues happens when i take new apk for update game or new game apks.PLEASE HELP ANYONE....

Ads not showing?

Hi,

I've implemented this in a test app, but for some reason ads do not show up. After INIT I do receive "INIT_OK null", but after calling adshow (see below) nothing is returned.

_admob.show("ca-app-pub-5706554049xxxxxx/xxxxxx4038", AdParams.SIZE_BANNER, AdParams.HALIGN_CENTER, AdParams.VALIGN_MIDDLE);

Could you please help me out? Have you experienced this before?

Extension ID in xml issue

Hi - I've been putting
<extensionID>com.pozirk.ads.admob</extensionID>
in my xml and building from a bat file but it's not finding the ane - I get 'an implementation for native extension 'com.pozirk.ads.admob' req. by the application was not found for this platform.

Here's my my build.xml - https://justpaste.it/6v1kz

Thanks for working on the ane - I thought I was the last Air app builder in town !

Single ANE for ARM and ARM64 versions

One suggestion, you should make single ane with both ARM and ARM64 platform so users will be able to add it to Android APP Bundle required by Google.

I have done it already i can help you if needed.

Regards

Interstitial crash

Hi Pozirk- thanks for the ane - I have banners working fine now.

Unfortunately, the interstitial crashes the app on showInterstitial() - even with a testId.

It calls cacheInterstitial() successfully though, which is good.

Has anyone else found a fix for this ? I'll try it on some other devices in the meantime - currently the crash bug is on a pixel2

thanks !

ArgumentError: Error #3500: The extension context does not have a method with the name cacheInterstitial.

whats this error can you help me please im using windows 10
AIR 30.0.0.107 for android
adobe flash cc 2017

//output

[SWF] com.pozirk.ads.AdMob - 7065 bytes after decompression
[SWF] Untitled-2.swf - 6682 bytes after decompression
ArgumentError: Error #3500: The extension context does not have a method with the name cacheInterstitial.
at flash.external::ExtensionContext/_call()
at flash.external::ExtensionContext/call()
at com.pozirk.ads.admob::AdMob/cacheInterstitial()[D:\Pozirk_projects\ANEAdMob\air\AdMob\com\pozirk\ads\admob\AdMob.as:83]
at Main()[C:\Users\user\Desktop\admob\Main.as:43]
at runtime::ContentPlayer/loadInitialContent()
at runtime::ContentPlayer/playRawContent()
at runtime::ContentPlayer/playContent()
at runtime::AppRunner/run()
at ADLAppEntry/run()
at global/runtime::ADLEntry()
Test Movie terminated.

// code
package {

import flash.display.MovieClip;

import com.pozirk.ads.admob.AdMob;
import com.pozirk.ads.admob.AdParams;
import com.pozirk.ads.admob.AdEvent;
import flash.events.MouseEvent;

public class Main extends MovieClip {

private var _bannerAdUID:String = "ca-app-pub-6896619151286612/6300978111";
private var _intersAdUID:String = "ca-app-pub-3940256099942544/1033173712";
protected var _banner:AdMob = new AdMob();
protected var _inters:AdMob = new AdMob();
private var _initOK:Boolean = false;
private var _isShow:Boolean = false;
private var _cacheOK:Boolean = false;
public function Main() {
	// constructor code
	btBanner.addEventListener(MouseEvent.CLICK, showBanner);
	btInters.addEventListener(MouseEvent.CLICK, showInterstitial);
	_banner.init();
	_banner.addEventListener(AdEvent.INIT_OK, onInitEvent);
	_banner.addEventListener(AdEvent.INIT_FAIL, onEvent);
	_banner.addEventListener(AdEvent.BANNER_SHOW_OK, onEvent);
    _banner.addEventListener(AdEvent.BANNER_SHOW_FAIL, onEvent);
	_banner.addEventListener(AdEvent.BANNER_LEFT_APP, onEvent);
	_banner.addEventListener(AdEvent.BANNER_OPENED, onEvent);
	_banner.addEventListener(AdEvent.BANNER_CLOSED, onEvent);
	
	_inters.init();
	_inters.addEventListener(AdEvent.INIT_OK, onInitEvent);
	_inters.addEventListener(AdEvent.INIT_FAIL, onEvent);
	_inters.addEventListener(AdEvent.INTERSTITIAL_SHOW_OK, onEvent);
	_inters.addEventListener(AdEvent.INTERSTITIAL_SHOW_FAIL, onEvent);
	_inters.addEventListener(AdEvent.INTERSTITIAL_CACHE_OK, onCacheEvent); 
	_inters.addEventListener(AdEvent.INTERSTITIAL_CACHE_FAIL, onEvent); 
	_inters.addEventListener(AdEvent.INTERSTITIAL_LEFT_APP,onEvent);
	_inters.addEventListener(AdEvent.INTERSTITIAL_OPENED, onEvent);
	_inters.addEventListener(AdEvent.INTERSTITIAL_CLOSED, onCloseIntersEvent);
	
	_inters.cacheInterstitial(_intersAdUID);
	
	}
	
	protected function onEvent(event:AdEvent):void{}
	protected function onInitEvent(event:AdEvent):void{
           _initOK = true;				
		}
	protected function onCacheEvent(event:AdEvent):void{
		    _cacheOK = true;
		}
	protected function onCloseIntersEvent(event:AdEvent):void{
		    _inters.cacheInterstitial(_intersAdUID);
		}
		
	private function showBanner(event:MouseEvent):void{
		if(_initOK){
			
			if(!_isShow)
			{
				_banner.show(_bannerAdUID, AdParams.SIZE_SMART_BANNER, AdParams.HALIGN_CENTER, AdParams.VALIGN_BOTTOM)
				_isShow = true;
				
				
				}
			else
			{
				_banner.hide();
				_isShow = false;
				}
			
			}
			else
			{
				trace("banner not ready");
				}
		
		}
		
		private function showInterstitial(event:MouseEvent):void
		{
			if(_initOK && _cacheOK)
			{
                 			_inters.showInterstitial();			
				}
				else
				{
					trace("inters not ready");
					}
			
			}

}
}

i publish and try it it doesnot work.... please help me

Rewarded ads?

Thanks for the extension, if it's possible to add Rewarded ads it would be great.

Admob-ane issue

Hi Sir,

I have created the ane but now when i did all code set up it gives a error in debug mode it stops.

Error is : INIT_OK null

Can you please help me to solve and move forward.

Thanks....

No Ads displayed

Hi,

I'm trying to integrate interstitials and I just get a black screen with a cross that then dissapears and leaves the app in a sort of frozen state. Pressing return removes the overlay and the apps goes back to normal.

I followed the integration guide (manifest additions included) and yet i'm getting this in the logcat console:
GooglePlayServicesUtil(15152): The Google Play services resources were not found. Check your project configuration to ensure that the resources are included.

Test device is a Samsung Galaxy S3 with Android 4.3.

Do you have any ideas?

error

ArgumentError: Error #3500: The extension context does not have a method with the name cacheInterstitial.
at flash.external::ExtensionContext/_call()
at flash.external::ExtensionContext/call()
at com.pozirk.ads.admob::AdMob/cacheInterstitial()[C:\dev\AIR\ane\ANEAdMob\air\AdMob\com\pozirk\ads\admob\AdMob.as:83]
at game_fla::MainTimeline/frame1()[game_fla.MainTimeline::frame1:41]
at runtime::ContentPlayer/loadInitialContent()
at runtime::ContentPlayer/playRawContent()
at runtime::ContentPlayer/playContent()
at runtime::AppRunner/run()
at ADLAppEntry/run()
at global/runtime::ADLEntry()

and event

BANNER_SHOW_FAIL No Fill

Error creating files

Error creating files.
dx tool failed:
UNEXPECTED TOP-LEVEL ERROR:
java.lang.OutOfMemoryError: Java heap space
at com.android.dx.ssa.SsaBasicBlock.getRopLabelSuccessorList(SsaBasicBlock.java:389)
at com.android.dx.dex...
at com.android.dx.command...
at com.android.dx.cf...

Google Play Services version

Is there a way we can avoid this line in the manifest, and instead actually access the value of the version of GPS from the SDK itself? Seems like this is a bug and was never resolved (copied from the README):

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

airsdk32 and pozirk ane

Hi, i am using animate 2021 and compiling apk with airsdk32 and new pozirk ane. compiling successful when i install apk and run apk ads not showing. i cant build ane with airsdk32 too what should i do?

thank you

Admob ane interstitial issue

Hi, thank you for build this ane is really helpfull
I have a problem with this, banners shows perfect but interstitials don´t.
I´m using the latest build, if it is a bug please tell me I really need this.

Can you please update ANE

Hi, can you please update ANE and make it compatible with current Adobe Air SDK, if needed i will pay for working version. I am trying few months to get this working and wasted lot of time and I can't focus on game developing. Thanks in advance

a tiny issue

Great work
Very easy to use.
Just a tiny issue that in the example the name of the activity should be
"com.google.android.gms.ads.AdActivity"

Thank you again for the great work!

Is this extension safe?

I tried many free and paid admob extensions like Milkman & Distriqt, but I prefer this extension because it's lightweight and support Android 64, but some admob extension (admob-for-flash) accused of stealing a percentage of revenue by replacing the admob id by the creator admob id? sorry if my question is inappropriate but is this extension safe?

GDPR Compliance

Is this ANE ready with the code?

Here you can find more info:
support.google.com/admob/answer/7666366

Warnings - should I ignore them?


Adobe Animate

The APK was packaged successfully, but a warning occurred.

Warning: Resource values-af/values-af.xml has been skipped because of mismatch with supported languages information in application descriptor.

Warning: Resource values-am/values-am.xml has been skipped because of mismatch with supported languages information in application descriptor.

Warning: Resource values-ar/values-ar.xml has been skipped because of mismatch with supported languages information in application descriptor.

Warning: Resource values-as/values-as.xml has been skipped because of mismatch with supported languages information in application descriptor.

Warning: Resource values-az/values-az.xml has been skipped because of mismatch with supported languages information in application descriptor.

Warning: Resource values-be/values-be.xml has been skipped because of mismatch with supported languages information in application descriptor.

Warning: Resource values-bg/values-bg.xml has been skipped because of mismatch with supported languages information in application descriptor.

Warning: Resource values-bn/values-bn.xml has been skipped because of mismatch with supported languages information in application descriptor.

Warning: Resource values-bs/values-bs.xml has been skipped because of mismatch with supported languages information in application descriptor.

Warning: Resource values-ca/values-ca.xml has been skipped because of mismatch with supported languages information in application descriptor.

Warning: Resource values-et/values-et.xml has been skipped because of mismatch with supported languages information in application descriptor.

Warning: Resource values-eu/values-eu.xml has been skipped because of mismatch with supported languages information in application descriptor.

Warning: Resource values-fa/values-fa.xml has been skipped because of mismatch with supported languages information in application descriptor.

Warning: Resource values-gl/values-gl.xml has been skipped because of mismatch with supported languages information in applicati

OK

Should i ignore these warnings?

Thank you

Rewarded video not shown

Banner & Interstitial works great but rewarded video not shown, any ideas?

by 32bit AIRSDK / Animate 2021

Thanks for the great works by the way

The Interstitial not display

hi
I create a simple ads with your example
and I have succeed to display Banner
but the interstitial not display
can you help me to get the good code to display Interstitial
thanks

Upgrade to Google Mobile Ads SDK 7.0.0 or higher

I've got a message from Google Play:
"In order to ensure that your ads continue to serve after September 15th, 2016, please upgrade to Google Mobile Ads SDK 7.0.0 or higher."
How can I do this? Whatever parameter I set in app.xml (com.google.android.gms.version) it either doesn't show ads or doesn't work. The only one that works for me is 4323000.
I updated FlashDevelop, Air, Android SDK but it seems it doesn't help.
Could you advise anything?

Question: How did you get the google-play-services.zip ?

Hi.

Your ANE is working perfectly in my tests. I'm trying to add rewarded videos and update the library to a new version with Android Studio and Gradle. But I can't generate the .class files for the dependencies because the project I created is an AAR library.

I tried a plugin to export the library with the dependencies FAT-AAR-Android but I get an error when I run the project with the ANE:

java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/gms/common/R$string;

I tried a lot of options but none of them was able to solve the problem.

How did you get this zip file for GooglePlayServices?

Ad not appearing on screen.

I've implemented as per instructions in the readme and I receive a INIT_OK null and AD_SHOW_OK 468x60 (once per minute) but no ad appears in my scene. I have tried removing all display objects so the ad is the only object to exist in the scene, but it does not appear.

Interstitial Ad problem!

I was able to display banner ads. But whenever I try to open interstitial ad my app minimizes like it crashed. But I can see it running in task manager. The same happened when I tried to open the interstitial ad using another ANE by another developer. Both ANE's results in opening banner ads but app minimizes when try to show interstitial ad. I am writing the ad id correctly .. I am using AIR 13 for android.

test mode issue

line 70 in AdMobManager.

if(testDevice != null) //no test device
adRequest = new AdRequest.Builder().build();
else
adRequest = new AdRequest.Builder().addTestDevice(testDevice).build(); //eto pizdec

the condition should be testDevice == null.
also in line 115.

The extension context does not have a method with the name init.

[SWF] com.pozirk.ads.AdMob - 6105 bytes after decompression
[SWF] tes.swf - 2682 bytes after decompression
ArgumentError: Error #3500: The extension context does not have a method with the name init.
at flash.external::ExtensionContext/_call()
at flash.external::ExtensionContext/call()
at com.pozirk.ads.admob::AdMob/init()[D:\Pozirk_projects\ANEAdMob\air\AdMob\com\pozirk\ads\admob\AdMob.as:43]
at tes_fla::MainTimeline/frame1()[tes_fla.MainTimeline::frame1:18]
at runtime::ContentPlayer/loadInitialContent()
at runtime::ContentPlayer/playRawContent()
at runtime::ContentPlayer/playContent()
at runtime::AppRunner/run()
at ADLAppEntry/run()
at global/runtime::ADLEntry()

I want to show ad automatically

Hi

I have tried to add and successfully ads are showing on button click. But I want to show ad and inter automatically can you guide me how this will possible

Thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.