Apps

Flutter mobile apps can now easily use Google Mobile Ads

The brand-new concept of an open beta for Google Mobile Ads SDK for Flutter, the advanced plugin which provides inline banner and native ads, with existing overlay formats. Publishing size doesn’t matter here, this plugin can be altered to your scenarios and this plugin supports Ad Manager and Admob.

Some companies have already taken initiative towards the plugin and have launched their apps with these new formats. The largest Latin American platform Sua Musica having more than 15k verified artists and 10M MUA has successfully launched their new flutter app with Google Mobile Ads SDK for flutter plugin. Their growth was astonishing, 350% increase in impressions with a 43% increase in CTR, And a 13% increase in eCPM.

This plugin is now ready to use for today Andrew Brogdon and Zoey Fan delivered a session on “Monetizing app with Flutter” telling the techniques for monetization of apps built with Flutter, and loading ads in your Flutter app.

Steps to display AdMob ads and earning revenue:

  1. Basic requirements
  • Flutter 1.22.0 or higher
  • Android
    • Android Studio 3.2 or higher
    • Target Android API level 19 or higher
    • Set compile SDK Version to 28 or higher
  • IOS
    • The updated version of XCode with command-line tools
  • Create an AdMob account and register an Android or iOS app
  1. Add Mobile Ads SDK for flutter plugin in the project.
  2. Platform setup for Android and iOS
  • For Android update AndroidManifest.xml. The app ID will be in the AdMob UI

Ex:

<manifest>
<application>
<!– Sample AdMob app ID: ca-app-pub-3940256099942544~3347511713 –>
<meta-data
android:name=”com.google.android.gms.ads.APPLICATION_ID”
android:value=”ca-app-pub-xxxxxxxxxxxxxxxx~yyyyyyyyyy”/>
<application>
<manifest>

  • For iOS update Info.Plist.

Ex:

<key>GADApplicationIdentifier</key>
<string>ca-app-pub-################~##########</string>

  1. Load the Mobile Ads SDK

Initialize the Mobile Ads SDK by calling MobileAds. Instance. Initialize () that loads SDK and returns a future which over when initializing is complete. Perform this right before the running app.

Ex:

import ‘package:google_mobile_ads/google_mobile_ads.dart’;
import ‘package:flutter/material.dart’;

void main() {
WidgetsFlutterBinding.ensureInitialized();
MobileAds.instance.initialize();

runApp(MyApp());
}

class MyApp extends StatefulWidget {
@override
MyAppState createState() => MyAppState();
}

class MyAppState extends State<MyApp> {
@override
void initState() {
super.initState();
// Load ads.
}
}

  1. Selecting an Ad format

Now after importing SDK implement your ad with a number of ad formats that fit your app’s UX.

  • Banner Ads: Rectangular ads that show up at the top or lower part of the gadget screen. Banner promotions stay on screen while clients are associating with the application, and can revive naturally after a specific timeframe. Assuming that you’re new to mobile ads, they’re an extraordinary spot to begin.
  • Interstitial Ads: Full-screen advertisements that cover the interface of an application until shut by the client. They’re best utilized at regular stops in the progression of an application’s execution, for example, in the middle of levels of a game or soon after wrapping up a responsibility.
  • Native Ads: Customizable ads that match the look and feel of your application. You conclude how and where they’re put, so the format is more predictable with your application’s plan
  • Rewarded Ads: Ads that reward clients for observing brief recordings and associating with playable promotions and reviews. Useful for adapting allowed to-play clients.

Bio: John Smith is a Flutter  app development expert and has been managing its difficulties in the last 10 years. She is a blogger by passion, and thus, consistently pens down her encounters with Frantic Infotech services. Her words have upheld abundant organizations, who have as of late changed to digital platforms.

Was this article helpful?
YesNo
Shankar

Shankar is a tech blogger who occasionally enjoys penning historical fiction. With over a thousand articles written on tech, business, finance, marketing, mobile, social media, cloud storage, software, and general topics, he has been creating material for the past eight years.

Recent Posts

Essential Digital Tools For Entrepreneurs To Succeed In The Modern Marketplace

Building a robust online presence is no longer optional for entrepreneurs; it’s a necessity. Websites… Read More

3 days ago

The Benefits of Using Advanced Application Security Testing Tools

Advanced application security testing tools are key to the rapid pace of digital transformation. Applications… Read More

3 days ago

Top Challenges in Endpoint Management

Endpoint management is a superhero today. It caters to various requirements of an organization. These… Read More

3 days ago

The Best SEO Services in Dubai That Can Boost Your Online Presence

Today, it is impossible to conduct business by ignoring the online presence; therefore, it is… Read More

3 days ago

How Supply Chain Security Software Protects Against Cyberthreats

Simply put, supply chains are the cornerstone of modern businesses. They effectively connect organizations not… Read More

2 weeks ago

AI Agents vs. AI Chatbots: What’s the Difference?

AI is transforming customer service by making it quicker and more intelligent. Chatbots and AI… Read More

2 weeks ago