Using Mobile Ads SDK with IONIC - android

I'm making an hibrid App using Ionic, Angular and Capacitor.
I need to use the Google Mobile Ads SDK to show banners. I try with the AdMob plugin for capacitor, but it lacks of Native Ads, that are the main core of my App.
I added the SDK directly in Android Studio but I don't know which files I have to edit to insert the banners in the right position.
It's possible using this approach, or I have to try others possibilities?

You cant have NATIVE ADS on Ionic solution, because the Webview schema.
Some plugin use a absolute position to have native, but the scroll is very bad.

Related

How to use AdMob Ad Mediation in Android App?

Hi I have used Firebase SDK to integrate AdMob in my Android App. Ads are working fine in my App. Now I want to enable Ad Mediation. I know how to add third party Ad networks in AdMob portal.
Confusion is that do I need to add/change specific code in Android App also? Do I need to change the banner ad code implemented in App? Or Firebase SDK will handle automatically and will show third party ads on same banner? Please help.
You should not need to change your banner code. You do need to compile the SDKs for the networks you want to mediate, plus their adapters into your app, though. The Mobile Ads SDK (firebase-ads, since you're using Firebase on Android) will use those SDKs through the adapters, and put the ads into the AdView you're already using. You don't need to write any additional Java code, though.
We have a mediation guide to help, as well as a video tutorial, if you're interested. There's also a directory that can point you to the SDKs and adapters.

hybrid android cordova ionic

Hello this is my first time i use cordova and ionic for android app , my qustions is :
1-in this app i just want use html css and js for design , so i must use cordova ?
2-i have a method in js get the latitude and longitude then show some values to user, but i need this method use in background and do this work automaticly all day , i need use java code ? or i can do it with cordova and ionic ?
3- if i need use to hardware in android , is better use java or cordova plugins ?
4- where is webviw cordova use for show index.html ?
i read to many way and i confuse to how can i do , i need best practis way to make hybrid app , pls help and show me the way .
Don't worry, we all have to begin some day. Let me first clear your few doubts about Cordova.
Cordova wraps your HTML/JavaScript app into a native container which can access the device functions of several platforms. These functions are exposed via a unified JavaScript API, allowing you to easily write one set of code to target nearly every phone or tablet on the market today and publish to their app stores.
so in short cordova helps you to access device functionality via javascript.
Ionic is a mobile css framework, which is built on top of angular js and allows support for cordova functionalities.
Now I will give answer's for your all questions:
Yes, if you want to create a mobile app using html and js, you need to use cordova. Since, cordova will wrap these files in the native container of respective mobile os.
You can run the task in background using cordova. There is a plugin for that which you can use Cordova Background Plugin
purpose of cordova is only, to allow device hardware access via javascript
You don't need to code anything to show index.html, cordova will do everything for you while building the app

Google native ad click not working in android

I am using google native ad GoogleNativeAdsAddon-1.0.0.jar , native ad showing properly but click event on image and text not working. means it is not redirecting on any webpage . i also debug the code and find contentAd.performClick(NativeContentAd.ASSET_HEADLINE);
for headline not redirecting on any page . for testing i am using test id of native ad
The add-on jar for Google's native ad architecture is no longer necessary, and no longer works. Just use the latest version of the SDK (8.4.0 at the moment). It has all the resources necessary to show native ads from AdMob and DFP.

How to add Admob in html css3 jquery base android application

I made an app in html5, css3 and with jquery then i convert it in apk via intel sdk now i want to add admob on it. Anyone know best way that how i can add admob in html site.
I strongly doubt this is possible.

Admobs ADs missing in PhoneGap InAppBrowser

I'm building a Android application using jQuery Mobile and PhoneGap. I incorporated admob into the project using the phonegap admob plugin from Github. In my project, I open external links using PhoneGap's InAppBrowser feature. My ADs show up well in the App at the bottom of the screen, however upon clicking an external link in the App and the InAppBrowser window appears...the ads disappear. But when I'm done with the external link in the InAppBrowser window and then go back to the main App view, the ADs show up normally. What's the best way to fix this please? I'm using PhoneGap 2.9

Categories

Resources