-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
What is APP_ID and TEST_DEVICE_ID and how to get it? #1
Comments
Hi potholiday. Your link show a sample for iOS but i think this KivMob has not supported that platform so far. TEST_DEVICE_ID varies depending on the device where you run your test program. So you have to check the ID by yourself. I hope my comment will help you. |
@superjellyfish Sorry my bad this is the link for android test ads https://developers.google.com/admob/android/test-ads#sample_ad_units , I have registered a APP_ID in admob I am doing testing in kivy so how should I get TEST_DEVICE_ID for that? any idea |
I'm not sure where you are working on. |
I am doing testing inside my ubuntu system with kivy alone and no emulators. Is TEST_DEVICE_ID a requirement for deploying apps to play store or its just for testing alone? |
@potholiday this is just for testing alone not for deploying. If you don't need any tests of showing ads, you can ignore this part. |
@superjellyfish I am trying to run this sample code; as I dont know the TEST_DEVICE_ID i commented out that line
this returns no ad |
@potholiday now I'm away from my laptop and cannot remember precisely but I could see the test ad after built it with command "buildozer android release". |
Thank you for taking your time an explaining things. I was initially trying to avoide apk building using buildozer because I want to optimize the code with ads first and then to create executable. It seems I have to build the apk. Now the problem is this
I changed all the parameters in my buildozer spec except |
Don't you copy python-for-android-admob from this repository? You should copy it to your working directory for this app and specify it's path. |
Sorry for the late reply, I was carrying out some work. Now I installed
The app compiled to apk and installed it in my android device without any error. But when I tried to open the app in my device its saying |
This doesn't look a problem of KivMob. Problem on device setting itself or other line in buildozer.spec, I've never met this problem though. |
Do I post my whole buildozer spec here. So that you can tell me what went wrong This is my spec file
python code
|
@potholiday thank you for showing all lines in your bulldozer.spec file. I built your test app by myself and tried to run it on my android device. It works! sorry for less helpful advice for you. |
Thanks for trying. I will try to install it in different device and let you know the result |
@potholiday Could you post the full error message here? Also, if the ad does not display immediately after pressing the button, wait a few seconds for the ad to load before trying again. The code in the demo folder uses Additionally, TEST_DEVICE_ID is a value specific to your android device and can be found in the logcat output. This is used to trigger test ads during development to prevent unnecessarily charging advertisers. AdMob has policies regarding this on their website, which I highly recommend reading. You can view your Android application logcat output using the following command:
|
@superjellyfish @MichaelStott I was searching for the solution for my problem. It seems this is caused by python-for-android . In my device I have less storage capacity that may be the reason which causes this problem . Currently I am searching for some other android devices. @MichaelStott Thank you for this project and I have this doubt. Is it necessaary to build an apk for testing/running ads with kivmob? Cant we run it from python file itself while development similar to our kivy apps . |
@potholiday It is necessary to build an apk. The project uses the original Google AdMob SDK, which only runs on mobile platforms (Android, iOS). python-for-android-admob provides the backend which mediates requests from the KivMob module to the AdMob SDK. That is why KivMob will only output log messages when running on a desktop environment. Because this is an issue with python-for-android and not KivMob, I'm going to close this issue for now. Let me know if you encounter any other problems and good luck! |
Does this project support Py3? Do we skip hostpython2 in buildozer.spec below while using python3crystax for python3?requirements = kivy,hostpython2, android, kivmob Please advise if we have to do anything more when compiling for py3.. |
I am a noob to admob and kivy. I am testing out the kivmob using the demo python code in your project. I am able to get banner and interstetial ids from here and when I run the code its asking for APP_ID
is there a test APP_ID and TEST_DEVICE_ID for testing purpose?
The text was updated successfully, but these errors were encountered: