Overview
The AdmobAds extension integrates the latest Google Mobile Ads SDK (version 23.3.0) into your app. This extension provides comprehensive features for managing various ad formats, including banner, interstitial, rewarded, and native ads. It includes methods to initialize the SDK, configure consent settings, load and show ads, and handle user interactions. Additionally, it offers tools to set custom ad sizes, manage ad layouts, and respond to events like ad loading, clicking, and dismissing. This extension is designed to help monetize apps effectively with a wide range of ad options.
Latest Version: 1.2
Released: 2024-04-14T18:30:00Z
Last Updated: 2024-08-29T18:30:00Z
Aix size: 1.1mb
Key Features
- Affordable pricing makes this extension budget friendly and you get a high quality support service as well.
-
Easy integration
Extension is quite user-friendly and does not require high-level development skills to implement the extension. - Comprehensive Ad Support: Load and show various ad types, including banner, interstitial, rewarded, and native ads.
- Customizable Ad Sizes: Configure adaptive and custom sizes to fit different screen orientations and layouts.
- User Consent Management: Integrated methods for handling consent forms, privacy options, and compliance with user data regulations.
- Immersive and Test Modes: Options to enable immersive ads for a full-screen experience and test modes for development purposes.
- Flexible Configuration: Set ad unit IDs, non-personalized ad preferences, and RDP signal handling.
- Ad Event Handling: Monitor and respond to events such as ad clicks, impressions, loading failures, and more.
- Supports Latest SDK: Built with the latest Google Mobile Ads SDK, ensuring up-to-date ad features and performance.
- 8 components in a single extension
Multi Component Extension
1) Admob SDK
2) Consent Form
Under Google’s updated EU user consent policy, you must make certain disclosures to your users in the European Economic Area (EEA), the UK, and Switzerland, and obtain their consent for the use of cookies or other local storage where legally required, and for the collection, sharing, and use of personal data for ads personalization. This policy reflects the requirements of the EU ePrivacy Directive and the General Data Protection Regulation (GDPR).
3) Admob Banner Ad
Banner ad units display rectangular ads that occupy a portion of an app’s layout. They stay on screen while users are interacting with the app, either anchored at the top or bottom of the screen or inline with content as the user scrolls. Banner ads can refresh automatically after a certain period of time.
Banner ads are effective because they work well with many types of apps and don’t take up much space. They’re also the simplest ad format to implement.
4) Admob Interstitial Ad
Interstitial ad units show full-page ads in your app. Place them at natural breaks & transitions in your app’s interface, such as after level completion in a gaming app.
4) Admob Rewarded Ad
AdMob rewarded ads are full screen video ads, image ads, or interactive ads, such as playable ads or surveys.
The user is shown a close button with a countdown timer that shows the number of seconds remaining before the user receives the reward. The actual duration of the countdown can be any duration between 5 and 30 seconds depending on the creative.
4) Admob Rewarded Interstitial Ad
Rewarded interstitial is a new type of incentivized ad format that allows you to offer rewards, such as coins or extra lives, for ads that appear automatically during natural app transitions.
Unlike rewarded ads, users aren’t required to opt-in to view a rewarded interstitial.
Instead of the opt-in prompt in rewarded ads, rewarded interstitials require an intro screen that announces the reward and gives users a chance to opt-out if they wish to do so.
4) Admob App-Open Ad
App open ad units appear when the user opens your app or switches back to your app. App open ad units appear on the loading or splash screen.
Why use app open ads? App open ads are specially designed to seamlessly integrate into the app open or app switch context. The unique app open ad layout offers the best user experience for this placement.
App open ad units currently only show text, image, rich media, and video ads.
4) Admob Native Ad
Native ads match both the form and function of the user experience in which they’re placed. They also match the visual design of the app they live within. These ads augment the user experience by providing value through relevant content that flows within the context of surrounding app content.
AdMob’s native ads format enables publishers to render ads that are seamless with content, or that take advantage of app features like swipe gestures and 3D animation.
Usage
First load native ad, then register asset views and finally show native ad.
view
parameter accepts static layouts as well as dynamic components.
IconView
and ImageView
→ Image component
AdvertiserView
, BodyView
, HeadlineView
, PriceView
and StoreView
→ Label or TextBox
StarRatingView
→ RatingBar
MediaView
and AdChoicesView
→ Layouts
CallToActionView
→ Button
Demo Video
Additional Information
Adding Admob Ad Id in AndroidManifest.xml
Use this tool to add admob application id to app:
https://manifest.sunnythedeveloper.in
Purchase
FAQs
How to create an AdMob Account ?
-
Go to AdMob Home, Click on
Get Started
orSignUp
. If you have already created an AdMob account earlier, do not create a new account instead log in with that account.
-
If you access this link in a browser where you have already login with a Google account you will receive this screen. Where they ask you to verify your account click Next .
-
Place the password and click the Next button.
-
Now place the required information, on Country, Time zone & Billing Currency.
-
Click the
Create AdMob Account
button after adding all information.
-
Check the email notifications for your account. And continue to next screen.
-
Now your AdMob Account is created. You should create an app & then ad unit id for the ads to show.
How to create an application Id & Ad Unit Id ?
-
Click on Apps on SideBar and then click on
Add Your First App
.
-
Set Platform to Android and check if your app is listed on supported app store or not.
-
If your app is already published to listed stores then search for your app, submit and continue.
If you have checked no then add an app name then click onAddApp
& click on Done.
-
Now, Click on
Add Ad Unit
.
-
Now, Select an ad format, in this case, I am selecting Banner,
-
Add an ad unit name, and click on
Create ad unit
.
-
Now, your ad unit is created successfully. You will find appId & ad unit id. Copy these id somewhere in notepad and save this. You can use the app id while creating your extension for manifest requirement for the application. And you can use ad unit id in the respective format extension.
Where do I find my app id and AdMob ad unit id ?
I’ve found most user are confused on AdMob app id & ad unit id. AppId and ad unit id are different. You should use your app id when you are building your own extension from Niotron IDE & you should use ad unit id in your respective ad extensions for banner, interstitial and all.
Copied from Google AdMob Support, Find more.
Find an app ID
- Sign in to your AdMob account at https://apps.admob.com.
- Click Apps in the sidebar.
- Click View all apps.
- Click the icon in the App ID column to copy the ID of an app
Find an ad unit ID
- Sign in to your AdMob account at https://apps.admob.com.
- Click Apps in the sidebar.
- Click the name of the app associated with the ad unit. Note: If you don’t see it in the list of recent apps, click View all apps. Then, click the name of the app.
- Click Ad units in the sidebar.
- Click the icon in the Ad unit ID column to copy the ID of an ad unit.
How to enable test ads ?
It’s important to enable test ads during development so that you can click on them without charging Google advertisers. If you click on too many ads without being in test mode, you risk your account being flagged for invalid activity.
In every format extension ie, AdmobBanner, AdmobInterstitial, AdmobRewarded etc you will find TestMode checkbox on their properties. You should check the checkbox in order to enable test ads.
Or,
-
Click on settings on AdMob and click on Test Devices
-
Add device name, platform and advertising id and save the device. To find an advertising id, Go on your Android Setting, Find & Click on Google, then Click on Ads. Find More.
Extension is not working on Companion, Why?
This extension will not work on companion as companion application doesn’t have required manifest for the extension to work. You should always build the application to check if it is working or not. So, I will suggest you to complete your application and use this extension after.
Ads are only showing on test mode, When I put my own ad unit id, It doesn't show ads, Why?
Many users have complained that this extension is not able to show their ads with their ad unit id. First of all, you should be sure if you haven’t violated any of the AdMob policies and your AdMob is allowed to serve the ads. You should be sure that you have followed all the steps from documentation properly. Some users use ad-unit as app-unit or vice-versa. Make sure your are not that user and have used appId(which contains ~
) while creating extension in Niotron IDE as suggested & adUnitId(which contains /
) properly in Admob Banner, Interstitial or Rewarded ad extension.
Secondly, If your ad is failed to load then get the failure message from AdFailedToLoad
method. If the failure message is no-ad-config
then you can check a FAQ on this documented after this FAQ. You can reply this post if you got any trouble.
Ad loading failed with an error `No Ad Config`
Most user get this message after they completed all the steps on documentation,
{
"Code": 3,
"Message": "No ad config.",
"Domain": "com.google.android.gms.ads",
"Cause": "null",
"Response Info": {
"Response ID": "null",
"Mediation Adapter Class Name": "",
"Adapter Responses": []
}
}
You don’t need to worry about this. If the app is not published on Play Store then first make sure you have followed steps properly then you can publish your app and wait few days.
Also, Kindly ensure that the following conditions are fulfilled in order to maximize the chances of receiving ads from the AdMob SDK:
Copied from Google Groups, See
- Fully complete the setup of your AdMob account, particularly the billing and PIN verification sections.
- Link your app to your AdMob account; you may have to wait for a week or two after publishing an app in order to do this.
- Resolve any policy violations in your AdMob account if any.
You may also refer to common reason for ads not showing for additional scenarios, as well as the fixes for those. Also, you may also reach out to the AdMob Help Center for further assistance on such ad-serving concerns.
FAQs copied from this topic. Thank you @oseamiya
Thank you.
Hope it helps!