lilili87222 / admob-for-flash

admob ane for flash air iOS app and actionscript android app.include banner and Interstitial native Advertising.this Admob ANE suport admob 1 and admob 2,based on firebase sdk
10 stars 0 forks source link

need update .ane ( GMA SDK version 20.5.0 above) to show ads for android 10 above #12

Open kuttubalala opened 2 years ago

kuttubalala commented 2 years ago

is there an updated .ane version of the latest for GMA SDK version 20.5.0 ? for adjustments to google play rules regarding the target audience's AD_ID, to show admob ads in android version 10 above.

New Google Play announcement   : Update on using Advertising ID for apps targeting children : Last July, we announced changes to our Family Policy to help improve security and privacy. We added a new limit on the IDs used by apps targeting children. Changes to Android Advertising ID (AAID) are required by April 1st, so we recommend reviewing your app if you need an update.

We've also announced the AD_ID permission that you can use to help ensure compliance when you update your app's target API level to version 31 (Android 12). Advertising ID will be disabled if you target Android 12 and don't include the new AD_ID permission. Now, we're giving developers more time to make adjustments and will start implementing this behavior on Android 13 instead of Android 12.

This means that apps with target API level 31 (Android 12) can still access the Advertising ID without this permission. When you update your app to target Android 13 and you don't include this permission statement, Advertising ID will be disabled.

Due to this update, you may receive a warning starting April to change your compliance method. If you need more time to target Android 13, you may be able to get an extension to comply with this Family Policy update by following the instructions in the alert notification. When you can target Android 13, we will require this permission statement.

See this Help Center article for more information.

Requirements to note:

-If your app's target audience is children only, you may not submit the Android Advertising ID (AAID) of children or users whose age is unknown. -If your app targets both children and adults, make sure any SDK you use that can collect AAIDs gives you the ability to disable sending when the user is a child or their age is unknown. As always, we appreciate your partnership in building a more secure and robust Family ecosystem on Google Play.

thanks before Regard kuttubalala

nboy1 commented 2 years ago

i've recieved today a warning about my apps, the message: "We’ve identified that your app or an SDK in your app transmits device identifier(s) from children or users of unknown age that do not comply with our Families Policy. Reasons of violation
About Families Policy Requirements Apps targeting children should not transmit the following from children or users of unknown age:

Android Advertising ID (AAID)
SIM Serial
Build Serial
BSSID
MAC
SSID
IMEI and/or IMSI "

any help please?

nboy1 commented 2 years ago

is enought to add : " uses-permission android:name="com.google.android.gms.permission.AD_ID" " in manifest?

kuttubalala commented 2 years ago

not enought, must update GMA SDK 20.5.0 above to support SDK 31. now i'm using distriqt .ane for admob ads

nboy1 commented 2 years ago

thank you kuttubalala, if i want to stick for the moment to SDK under 31, just to be compliant with google play policy, until i find solution, is " uses-permission android:name="com.google.android.gms.permission.AD_ID" enought? because i'm targeting "targetSdkVersion="30"" for the moment and i recieved warnings only on apps that i didn't add that permission to it yet. and i hope the creator of this ANE " lilili87222 " to just answer to till us is he interested anymore to update this ane or not. thank you kuttubalala.

kuttubalala commented 2 years ago

i hope lilili87222 update admob.ane to GMA SDK 20.6.0 , we wait for it.

lilili87222 commented 2 years ago

I am sorry i do not have time to update it . any body can download the source code and update.

mx-soft commented 2 years ago

I am sorry i do not have time to update it . any body can download the source code and update.

Can you believe that I and all my family only live with this ane I swear every morning I check this ANE link, hopefully I'll find an update :( Brother, please update it so that we can continue using it

kuttubalala commented 2 years ago

I am sorry i do not have time to update it . any body can download the source code and update.

how to use the source code ? what IDE do you use? and how to compile it into .ane

if i knew about it i would do the update this .ane myself

kuttubalala commented 2 years ago

I am sorry i do not have time to update it . any body can download the source code and update.

Can you believe that I and all my family only live with this ane I swear every morning I check this ANE link, hopefully I'll find an update :( Brother, please update it so that we can continue using it

you can use other admob.ane , but not free you have to pay , like admob.ane made by distriq link : https://distriqt.com/native-extensions/

nboy1 commented 2 years ago

I am sorry i do not have time to update it . any body can download the source code and update.

i tried to update it but i don't know how, i opened project with android studio and updated the gradle but i got 10s of errors. i tried to search on tutorials "to know what i need to do with android studio and what i need to export" and what IDE after exporting the things needed" but i can't find a tutorial. if you can just tell us (1)what we need to export from android studio or intellij idea"what extension", (2) what IDE we need to use to package the ANE, and we will try to update it. please this ANE mean a lot to us. thank you.

mx-soft commented 2 years ago

We hope that this repository will be updated, it means a lot to us, and I suggest adding a donation button to support the developer

lilili87222 commented 2 years ago

create a common android lib project, copy java file to src folder

lilili87222 commented 2 years ago

android studio for android , xcode for ios .
compile to ane with ant .

kuttubalala commented 2 years ago

how to fix it this error ? i try build in ant how to fix it

nboy1 commented 2 years ago

hi kuttubalala i think you didn't update GMA SDK.

image

because if you update it you will get android studio errors.

i think if you used GMA SDK version 20.5.0 or above java things is changed you will get errors like: "cannot find symbol import com.google.android.gms.ads.InterstitialAd" solution described here : https://stackoverflow.com/questions/69880113/error-cannot-find-symbol-import-com-google-android-gms-ads-interstitialad/69880182

so i think we have to change all java classes to make it up to date, and actionscripts events names too. but after that you will get the errors you described with ant. i think you missed updating GMa first or i'm not into the whole thing yet. if you want you can give me a way to communicate with you maybe we can work together to find a solution.

kuttubalala commented 2 years ago

hi kuttubalala i think you didn't update GMA SDK.

image

because if you update it you will get android studio errors.

i think if you used GMA SDK version 20.5.0 or above java things is changed you will get errors like: "cannot find symbol import com.google.android.gms.ads.InterstitialAd" solution described here : https://stackoverflow.com/questions/69880113/error-cannot-find-symbol-import-com-google-android-gms-ads-interstitialad/69880182

so i think we have to change all java classes to make it up to date, and actionscripts events names too. but after that you will get the errors you described with ant. i think you missed updating GMa first or i'm not into the whole thing yet. if you want you can give me a way to communicate with you maybe we can work together to find a solution.

where i check this XML ? i change automatic admob SDK with android studio , not setting xml

nboy1 commented 2 years ago

admob-for-flash-master\native_src\config\platform-android.xml

nboy1 commented 2 years ago

i can't find solution to this

compile: [java] Missing dependency collection-1.1.0.jar for platform Android-x86 [java] Java Result: 12

kuttubalala commented 2 years ago

download full Android SDK in android SDK manager.,

i have problem , cannot create admob.zip and library.swf in build ant

lilili87222 commented 2 years ago

library.swf compiled from as code classes.jar compiled from java code collection copyed from android sdk

nboy1 commented 2 years ago

if you get message like this one: [java] Missing resource folder play-services-ads-19.6.0.aar for platform Android-x86 even if you have it inside (android_files\libs) folder. you have to create new folder and name it (play-services-ads-19.6.0.aar) and extract the original play-services-ads-19.6.0.aar inside that folder. and delete the original. i know it's strange but that's the solution. it's the first time i compiled the ane succefully (just the old project without changing GMA version) just for test. and without ios because i don't have mac for the moment.

nboy1 commented 2 years ago

to create the SWC : document text with .bat as extension --------------------

"%AIR_HOME%\bin\acompc.bat" --source-path air\AdMob -include-classes so.cuo.platform.admob.Admob so.cuo.platform.admob.AdmobError so.cuo.platform.admob.AdmobEvent so.cuo.platform.admob.AdmobFunNames so.cuo.platform.admob.AdmobPosition so.cuo.platform.admob.AdmobSize so.cuo.platform.admob.ExtraParameter -swf-version=20 -output air\AdMob\bin\AdMob.swc


nboy1 commented 2 years ago

kuttubalala

i have problem , cannot create admob.zip and library.swf in build ant

in folder " admob-for-flash-master\native_src\AdmobAndroidProjects\admob_lib\build\outputs\aar\admob_lib-debug.aar" open that "admob_lib-debug.aar" with winrar to find classes.jar library.swf you will find it inside the SWC "open swc with winrar too" ,

edit now it's working i used jar and aar from "lilili87222"'s old ane, notice the the original .aar from maven repository website is different from the .aar in the "lilili87222"'s old ane maybe you changed some thing there in .aar if you did please help us with how to. or why.

1 - .aar content of play-services-ads-18.3.0.aar from maven website image

2 - .aar content of play-services-ads-18.3.0.aar from "lilili87222"'s old ane image

lilili87222 commented 2 years ago

are values folder from res folder? i forget where to copy ,but it all from the gms lib aar files.

nboy1 commented 2 years ago

are values folder from res folder? i forget where to copy ,but it all from the gms lib aar files.

thank you yeah it's from the aar files, the jar files too from the aar, the jar's that android studio load by default doesn't work.

now it's working with (GMA 21.0.0) play-services-ads-21.0.0, banner working interstitial not yet, if some one good in java and can help me upgrade the code with new google changes:

https://github.com/lilili87222/admob-for-flash/blob/master/native_src/AdmobAndroidProjects/admob_lib/src/main/java/so/cuo/platform/admob/InterstitialHandler.java

&

https://github.com/lilili87222/admob-for-flash/blob/master/native_src/AdmobAndroidProjects/admob_lib/src/main/java/so/cuo/platform/admob/VideoHandler.java


with same void names. thank you all.

google new changes in interstitial & rewarded :

https://developers.google.com/admob/android/interstitial

https://github.com/googleads/googleads-mobile-android-examples/blob/master/java/admob/RewardedInterstitialExample/app/src/main/java/com/google/ads/rewardedinterstitialexample/MainActivity.java

i didn't sleep for 24h now

kuttubalala commented 2 years ago

nboy , you success build admob.ane ? , i stack in library.swf and classes.swf . >.< ,....

nboy1 commented 2 years ago

kuttubalala yeah almost the ANE with GMA 21 is ready now all i need is upgrading the interstitial java code to meet the new changes that google made "a lot of things deprecated" as "isLoading" and added new things as "AdLoadCallback's" and i'm not a java coder i'm a C#pper . last time i touched java was maybe 2016.

library.swf you will get it from inside SWC ( maybe you need SWC) (put so/cuo/.../actionscript's.as inside a folder and name it "air or whatever" and use this code inside a txt file and change .txt to .bat and double click to generate the SWC :

"%AIR_HOME%\bin\acompc.bat" --source-path air -include-classes so.cuo.platform.admob.Admob so.cuo.platform.admob.AdmobError so.cuo.platform.admob.AdmobEvent so.cuo.platform.admob.AdmobFunNames so.cuo.platform.admob.AdmobPosition so.cuo.platform.admob.AdmobSize so.cuo.platform.admob.ExtraParameter -swf-version=20 -output air\AdMob.swc

i montioned before this steps to generate SWC and where to get classes.jar

if you are a java coder if you can upgrade the script.

nboy1 commented 2 years ago

yes yes yes i did it banner and interstitial are now working, i still need rewarded and verify the events and other functions

edited : now interstitial and banner and rewarded video all of it working fine "only android" i don't know if i can uploade it yet or waiting for ios version too?

kuttubalala commented 2 years ago

I have followed the steps, but it didn't happen .SWC was not created, I created a folder named 'air' and created a .txt file and I copied the code to .txt and change to .bat and double clicked, the .SWC file was not created, the HOME_AIR address is already I changed according to the location. >.<

nboy1 commented 2 years ago

you wont believe me if told you, i tried it my self in new folder and it doesn't want to work too : ) but the solution is strange too: drag "so" folder from winrar directly to the air folder. i was lucky first time : ) image

i exported the ANE with Android and ios now i have to test it on ios device, android working fine.

kuttubalala commented 2 years ago

you wont believe me if told you, i tried it my self in new folder and it doesn't want to work too : ) but the solution is strange too: drag "so" folder from winrar directly to the air folder. i was lucky first time : ) image

i exported the ANE with Android and ios now i have to test it on ios device, android working fine.

I've done the steps you have given, but can't create a .SWC file, maybe there's one step I did wrong >.< , I'm glad to hear that you success to build .ane with GMA version 21.0.0

nboy1 commented 2 years ago

kuttubalala thank you, ios lot of errors : )

open the folder before\air and type cmd in folder path and press enter, and past the code in cmd and press enter it will give the errors, it gave me some thing about "doesn't return value" or something like that but when i drag it as i montioned i didn't get the errors. if nothing worked i will uploade it in mediafire.

nboy1 commented 2 years ago

open the cmd from the folder path.

image

sorry there is nothing related to cmd from path except to see the error you have in bat maybe i have to go to sleep : )

kuttubalala commented 2 years ago

thank U , i used CMD to build .SWC and success , i will follow your next steps to build .ane , if i get problem will ask again ^_^

fixadmobswc

kuttubalala commented 2 years ago

i cannot find in folder " admob-for-flash-master\native_src\AdmobAndroidProjects\admob_lib\build\outputs\aar\admob_lib-debug.aar"

aaa

how to get classes.jar ?

nboy1 commented 2 years ago

because you didn't build the project successfully yet you need to update the scripts in java to what google changed and deprecated to be able to build it successfully start from here:

https://developers.google.com/admob/android/interstitial

https://developers.google.com/admob/android/rewarded

https://developers.google.com/admob/android/banner

kuttubalala commented 2 years ago

after fixing that code interstitial, rewarded , banner does it have to be build grande first to get classes.jar ?

nboy1 commented 2 years ago

after fixing that errors click on rebuild or make project to get build folder with build\outputs\aar\admob_lib-debug.aar inside it and and open that .aar with winrar to get classes.jar from inside that .aar

image

nboy1 commented 2 years ago

tell me what we need to do after upgrading to last GMA sdk to be comply with google Families Policy? apply some thing in code or some permissions or..? because i don't have any idea about what to do after?

kuttubalala commented 2 years ago

Non personalize ads personalize ads targeting for COPPA (TAG_FOR_CHILD_DIRECTED_TREATMENT_TRUE)

is everything working fine?

kuttubalala commented 2 years ago

after fixing that errors click on rebuild or make project to get build folder with build\outputs\aar\admob_lib-debug.aar inside it and and open that .aar with winrar to get classes.jar from inside that .aar

image

too many error >.< errobanyak

I will try to fix it step by step, if I get a problem I will ask again ^_^ , thank you verymuch for helping so far @nboy1

nboy1 commented 2 years ago

Non personalize ads personalize ads targeting for COPPA (TAG_FOR_CHILD_DIRECTED_TREATMENT_TRUE)

is everything working fine?

everything is working fine i didn't change anything there, google didn't updated anything in that part. so lilili87222 scripts still working fine.

too many error >.< : you have to change the context to what's new. good coding day : )

kuttubalala commented 2 years ago

I'm not a java programmer, I don't know which error to fix, copy paste from:

https://developers.google.com/admob/android/interstitial

https://developers.google.com/admob/android/rewarded

https://developers.google.com/admob/android/banner

^_^ ,

or should I edit a bit from from file.java ?

nboy1 commented 2 years ago

I'm not a java programmer, I don't know which error to fix, copy paste from:

https://developers.google.com/admob/android/interstitial

https://developers.google.com/admob/android/rewarded

https://developers.google.com/admob/android/banner

^_^ ,

or should I edit a bit from from file.java ?

yeah you need to edit java scripts context to make it up to date

nboy1 commented 2 years ago

I am sorry i do not have time to update it . any body can download the source code and update.

Can you believe that I and all my family only live with this ane I swear every morning I check this ANE link, hopefully I'll find an update :( Brother, please update it so that we can continue using it

this is the updated android ANE: https://github.com/nboy1/admob-for-flash-android-GMA-21.0.0

i hope that lilili87222 upgrade the ios scripts or someone else because i tried but i need to take courses in Objective-C langue it's a lot different than java and c# syntax. and to can upload the full version "android and ios" to lilili87222's repository

kuttubalala commented 2 years ago

I am sorry i do not have time to update it . any body can download the source code and update.

Can you believe that I and all my family only live with this ane I swear every morning I check this ANE link, hopefully I'll find an update :( Brother, please update it so that we can continue using it

this is the updated android ANE: https://github.com/nboy1/admob-for-flash-android-GMA-21.0.0

i hope that lilili87222 upgrade the ios scripts or someone else because i tried but i need to take courses in Objective-C langue it's a lot different than java and c# syntax. and to can upload the full version "android and ios" to lilili87222's repository

thanks @lilili87222 Good Job @nboy1 ... You are a good person, helping people in need, I hope you get the best reward too

nboy1 commented 2 years ago

kuttubalala thank you was nice to work with you too thank you lilili87222 too for this great project.

nboy1 commented 2 years ago

i've updated the android ANE to use isInterstitialReady() & isVideoReady() again to check if interstitial and rewarded video ad is loaded, to make games update easy and don't need to update whole ads scripts in your games.

hohocb commented 2 years ago

i've updated the android ANE to use isInterstitialReady() & isVideoReady() again to check if interstitial and rewarded video ad is loaded, to make games update easy and don't need to update whole ads scripts in your games.

Hi...im already using your ANE project and wanna create APK using adobe animated, but always facing this error when publish it. What is wrong? Untitled

nboy1 commented 2 years ago

i've updated the android ANE to use isInterstitialReady() & isVideoReady() again to check if interstitial and rewarded video ad is loaded, to make games update easy and don't need to update whole ads scripts in your games.

Hi...im already using your ANE project and wanna create APK using adobe animated, but always facing this error when publish it. What is wrong? Untitled

i've just dowloaded it from github to be sure it wasn't a upload problem and i tested it and it's working fine, maybe something in descriptor or SDK i'm using harman SDK V33.1.1.743

image