-
Notifications
You must be signed in to change notification settings - Fork 0
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
More doc or an example? #1
Comments
Hi, Thank for your attention. It only support Native ads (not banner, interstitial, etc,...) for our project. Use and example same with cordova-plugin-facebookads mention above. Regards. |
thanks for your quick response. I will give it a try. I tried cordova-plugin-facebookads but it's broken because of some sdk change. Not sure if I can make it through using yours. |
Yeah, Facebook have updated their SDK on 12/06. It is why this plugin not work if not update. Our plugin limited SDK version 4.28.1 so it working. For Admob you can try cordova-plugin-admob-free Regards. |
Yes, mainly because of the server control(all requests will go to their server first), I abandoned their AdMob Pro plugin and I've started using cordova-plugin-admob-free which is awesome. For us, the server control part wasn't acceptable because we have a strict privacy law here in Europe. And my apology because my second question wasn't clear. I actually meant that if your plugin contained the similar server control code since it's forked from the one made by the same author FloatingHotSpot. I am not sure if they add those server control code to that facebook ads plugin as well just like how they did it to the admob pro plugin. I hope I've managed to explain my concerns well :-). If there is no control code in this plugin, I will start testing and use it in production. If I can make it work, I definitely will buy you a drink at least. Anyway, appreciated so much already for publishing this plugin. I believe many other people will benifit from your work as well. Just starred your plugin and I was the first one. :-) Yes! |
"I actually meant that if your plugin contained the similar server control code since it's forked from the one made by the same author FloatingHotSpot" Regards. |
You are awesome man! I am going to test it. |
@stionic ==============================================================
In my build.gradle file: // SUB-PROJECT DEPENDENCIES START I tried to change $ANDROID_AUDNET_SDK_VERSION to 4.28.1 but everytime I build, it gets overwritten. And this line "compile "com.android.support:support-v4:$ANDROID_SUPPORT_VERSION"" shouldn't be added either since it's already added. Any idea? |
And in my project.properties, also added: target=android-26 |
Can you please give me your cordova version, cordova-android platform version, and config.xml?
There line allow easy custom SDK version and default is 26.+ and 4.28.+ Regards. |
Note: My app is ionic 1.x and I have to force cordova-android to 6.2.1. Otherwise, I got all kinds of build errors.
I noticed that the $ANDROID_AUDNET_SDK_VERSION is defined on the plugin.xml of the sdk plugin but it doesn't get picked up somehow. |
I hardcoded the versions 26.+ and 4.28.+ into the plugin files and it didn't complain anymore but got new error: FAILURE: Build failed with an exception.
|
Then I did this: dexOptions { Then the build completed without further errors. BUILD SUCCESSFUL Total time: 20.864 secs |
Hi, Yes, thank for your information. I will add it into custom gradle of this plugin. Regards. |
You're welcome. |
Hi, I think you config.xml already correct.
Maybe it cached, you can check in /plugins/fetch.json No idea why it not working, can you please try add plugin: cordova-plugin-admob-free Regards. |
Very strange. I restored the plugin.xml settings and removed the plugins from fetch.json and built it again. No problems. Just something weired I guess. I am happy at least it passed the build. Thank you so much!! Just tried to display ads but nothing showed. Now I am going to dig into the issue. Maybe I will need your help again. |
For show ads so easy. Just createNativeAd with your ID, listen 'stionic.native.loaded' event. you will get Ads data. Just bind it to HTML element and setNativeAdClickArea. You also need control removeNativeAd. Regards. |
The ads was created but the listener didn't work. Did I do anything wrong?:
|
Hi, i think simple because of your AD ID, you can listen stionic.native.failed for check error. Maybe add 'IMG_16_9_APP_INSTALL#'+your_id Regards. |
Thanks for the guidance. Now I got the test ad working. |
Just downloaded your app. Beautiful app. Watched and clicked a few ads as well:-) |
Hi, You can't get url then set to ngClick. Always scroll view, open menu (if have), leave page, open other page,... you should find x, y, width, height again then setNativeAdClickArea. Regards. |
@stionic update: I contacted facebook support and they said I need to download my app from either Google Play or iTunes, with the version of your app integrated with Audience Network. I am a bit confused now. Shouldn't we test live Ads during development phase before submit them to the app stores? |
My current status: So we are not supposed to test Live Ads correct? Live Ads will work after we release the Apps to google plays and apple app stores? Sorry, I've never used Facebook Ads before. A bit confused. |
Hi, Yeah, Live ads will work if testing ads work. |
what does this mean "Or your device has Facebook App logined Admin account of app that created placement ID." Do you mean on the device which I am testing live Ads, I should login my Facebook App with my Facebook account which was used to created the Placement ID? Then the live Ads will work? |
Hi,
Regards. |
I followed that instructions and enabled Ads debugger. |
Since you've spent so much time helping me. It doesn't matter the result anymore. I'd like to buy you a drink as I promised. Do you have a paypal account? Can you message me? |
Hi, So you have created Ads ID for iOS platform and still not show live ads? Please make sure that Ads ID of Android and iOS is different. Really thank for your kindness. My PayPal is [email protected]. Regards. |
I've done everything according to the book. I tried multiple ios placement id. Everything works perfectly on android but production ads just not showing on my iphone. Pretty frustrating. |
Hi, I am sure that your live ads will work perfect after publish to Apple Store and send to Facebook review because of testing ads work fine. I don't update SDK because of lastest SDK version Facebook not return Media url. It mean can't show ads image in Ionic if use latest version. I also thank for your kindness, but please don't click Ads in our app if you don't care about it. I need some times for found the way get Media url in lastest version then i can update it. Regards. |
Sure. Then I will finish my implementation and release my apps to the app store to see what will happen. btw, have you received the money on paypal? Just sent using an account ended with .ru. I put a message in the note. |
I am looking for a plugin which displays native Ads.
Is this working with the latest SDK?
Can you add more doc how to use it?
Will you maintain this plugin?
The text was updated successfully, but these errors were encountered: