create account

How to Monetize Your Flutter Applications Using Admob by tensor

View this thread on: hive.blogpeakd.comecency.com
· @tensor · (edited)
$93.42
How to Monetize Your Flutter Applications Using Admob
#### What Will I Learn?

- You will learn how to monetize a full featured flutter application using the Firebase Admob plugin 
- You will learn how to build a target audience for your advertisements inside of your application
- You will learn how to create a banner and an interstitial advertisement for your application
- You will learn how to use the ad listeners and events to ad logic to your advertisements 

#### Requirements

- [IDEA intellij](https://www.jetbrains.com/idea/) or [Visual Studio Code](https://code.visualstudio.com/) with the Dart/Flutter [Plugins](https://github.com/flutter/flutter-intellij)
- The [Dart SDK](https://www.dartlang.org/install) and the [Flutter SDK](https://flutter.io/get-started/install/)
- A fair understanding of Mobile development and Imperative or Object Oriented Programming

#### Difficulty

- Intermediate


#### Description

In this flutter tutorial, we look at how we can **monetize** our mobile applications using the **Google Admob platform** and the **Firebase Admob plugin**.  While the plugin is not full featured yet, it does provide various **different advertisements** and **monetization** means that we can use inside of our flutter application.  This means that we do not have to build out logic in either iOS or Android to **deploy advertisements** to our flutter application layer.  With Admob we can choose how our advertisements are presented to the users and we can also **choose what types** of advertisements are served.  We can **toggle various features** like family friendly mode and we can also setup the gender and age of our users to limit the types of ads that get served.  

To demonstrate this plugin, we make use of the **Minesweeper application** that was built in a prior tutorial series.  This application works well because there is a clear logic that helps us in how we serve our advertisements to users.  The **banner** sits at the bottom of the game screen at all times and refreshes every few minutes.  The **interstitial advertisement** is  deployed when the user hits the game reset button.  By default, the interstitial advertisement will only deploy over a certain frequency but we can bypass this duration by adding some logic to the listener of this advertisement.  

The source code for this project can be found [here](https://github.com/tensor-programming/admob_minesweeper_tutorial)

#### Video Tutorial
<iframe width="560" height="315" src="https://www.youtube.com/embed/r9wbxYE2DYY" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>

#### Projects and Series
> ##### Stand Alone Projects:
> - [Dart Flutter Cross Platform Chat Application Tutorial](https://steemit.com/@tensor/dart-flutter-cross-platform-chat-application-tutorial)
> - [Building a Temperature Conversion Application using Dart's Flutter Framework](https://utopian.io/u/38673252)
> ##### Building a Calculator
> - [Building a Calculator Layout using Dart's Flutter Framework](https://utopian.io/u/39348292)
> - [Finishing our Calculator Application with Dart's Flutter Framework](https://utopian.io/u/39522895)
> ##### Movie Searcher Application
> - [Building a Movie Searcher with RxDart and SQLite in Dart's Flutter Framework (Part 1)](https://utopian.io/u/41053969)
> - [Building a Movie Searcher with RxDart and SQLite in Dart's Flutter Framework (Part 2)](https://utopian.io/u/41208913)
> - [Building a Movie Searcher with RxDart and SQLite in Dart's Flutter Framework (Part 3, Final)](https://utopian.io/u/41384278)
> #### Minesweeper Game
> - [Building a Mine Sweeper Game using Dart's Flutter Framework (Part 1)](https://utopian.io/u/42282888)
> - [Building a Mine Sweeper Game using Dart's Flutter Framework (Part 2)](https://utopian.io/u/42433127)
> - [Building a Mine Sweeper Game using Dart's Flutter Framework (Part 3)](https://utopian.io/u/42568713)
> - [Building a Mine Sweeper Game using Dart's Flutter Framework (Part 4, Final)](https://utopian.io/u/42697072)



#### Curriculum

- [Building a Multi-Page Application with Dart's Flutter Mobile Framework](https://utopian.io/u/36304896)    
- [Making Http requests and Using Json in Dart's Flutter Framework](https://utopian.io/u/36711012)
- [Building Dynamic Lists with Streams in Dart's Flutter Framework](https://utopian.io/u/36947451)
- [Using GridView, Tabs, and Steppers in Dart's Flutter Framework](https://utopian.io/u/37160274)
- [Using Global Keys to get State and Validate Input in Dart's Flutter Framework](https://utopian.io/u/37555657)
- [The Basics of Animation with Dart's Flutter Framework](https://utopian.io/u/37731908)
- [Advanced Physics Based Animations in Dart's Flutter Framework](https://utopian.io/u/38077640)
- [Building a Drag and Drop Application with Dart's Flutter Framework](https://utopian.io/u/38246831)
- [Building a Hero Animation and an Application Drawer in Dart's Flutter Framework](https://utopian.io/u/38433382)
- [Using Inherited Widgets and Gesture Detectors in Dart's Flutter Framework](https://utopian.io/u/38862139)
- [Using Gradients, Fractional Offsets, Page Views and Other Widgets in Dart's Flutter Framework](https://utopian.io/u/39001452)
- [Making use of Shared Preferences, Flex Widgets and Dismissibles with Dart's Flutter framework](https://utopian.io/u/39694109)
- [Using the Different Style Widgets and Properties in Dart's Flutter Framework](https://utopian.io/u/39890067)
- [Composing Animations and Chaining Animations in Dart's Flutter Framework](https://utopian.io/u/40065925)
- [Building a Countdown Timer with a Custom Painter and Animations in Dart's Flutter Framework](https://utopian.io/u/40384708)
- [Reading and Writing Data and Files with Path Provider using Dart's Flutter Framework](https://utopian.io/u/40536227)
- [Exploring Webviews and the Url Launcher Plugin in Dart's Flutter Framework](https://utopian.io/u/40707081)
- [Adding a Real-time Database to a Flutter application with Firebase](https://utopian.io/u/41791441)
- [Building a List in Redux with Dart's Flutter Framework](https://utopian.io/u/41963715)
- [Managing State with the Scoped Model Pattern in Dart's Flutter Framework](https://utopian.io/u/42126946)
- [Authenticating Guest Users for Firebase using Dart's Flutter Framework](https://utopian.io/u/43164921)

    

<br /><hr/><em>Posted on <a href="https://utopian.io/utopian-io/@tensor/how-to-monetize-your-flutter-applications-using-admob">Utopian.io -  Rewarding Open Source Contributors</a></em><hr/>
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and 82 others
properties (23)
authortensor
permlinkhow-to-monetize-your-flutter-applications-using-admob
categoryutopian-io
json_metadata"{"community":"utopian","app":"utopian/1.0.0","format":"markdown","repository":{"id":31792824,"name":"flutter","full_name":"flutter/flutter","html_url":"https://github.com/flutter/flutter","fork":false,"owner":{"login":"flutter"}},"pullRequests":[],"platform":"github","type":"video-tutorials","tags":["utopian-io","steemstem","steemiteducation","science","technology"],"links":["https://www.jetbrains.com/idea/","https://code.visualstudio.com/","https://github.com/flutter/flutter-intellij","https://www.dartlang.org/install","https://flutter.io/get-started/install/","https://github.com/tensor-programming/admob_minesweeper_tutorial","https://www.youtube.com/embed/r9wbxYE2DYY","https://steemit.com/@tensor/dart-flutter-cross-platform-chat-application-tutorial","https://utopian.io/u/38673252","https://utopian.io/u/39348292","https://utopian.io/u/39522895","https://utopian.io/u/41053969","https://utopian.io/u/41208913","https://utopian.io/u/41384278","https://utopian.io/u/42282888","https://utopian.io/u/42433127","https://utopian.io/u/42568713","https://utopian.io/u/42697072","https://utopian.io/u/36304896","https://utopian.io/u/36711012","https://utopian.io/u/36947451","https://utopian.io/u/37160274","https://utopian.io/u/37555657","https://utopian.io/u/37731908","https://utopian.io/u/38077640","https://utopian.io/u/38246831","https://utopian.io/u/38433382","https://utopian.io/u/38862139","https://utopian.io/u/39001452","https://utopian.io/u/39694109","https://utopian.io/u/39890067","https://utopian.io/u/40065925","https://utopian.io/u/40384708","https://utopian.io/u/40536227","https://utopian.io/u/40707081","https://utopian.io/u/41791441","https://utopian.io/u/41963715","https://utopian.io/u/42126946","https://utopian.io/u/43164921","https://utopian.io/utopian-io/@tensor/how-to-monetize-your-flutter-applications-using-admob"],"moderator":{"account":"rosatravels","time":"2018-04-13T16:00:52.346Z","pending":false,"reviewed":true,"flagged":false},"questions":null,"score":null,"total_influence":null,"staff_pick":null,"config":{"questions":[{"question":"Does the tutorial address a minimum of 3 substantial concepts and no more than 5?","question_id":"vtut-1","answers":[{"answer":"3-5 substantial concepts covered in the tutorial.","answer_id":1,"value":10},{"answer":"Less than 3 or more than 5 substantial concepts covered in the tutorial.","answer_id":2,"value":5},{"answer":"No substantial or recognisable concepts.","answer_id":3,"value":0}]},{"question":"Concepts covered in the tutorial are indicated in the post text with a short description of each concept and when appropriate, images?","question_id":"vtut-2","answers":[{"answer":"Thorough text and images for concepts covered.","answer_id":1,"value":5},{"answer":"Minimal text and images.","answer_id":2,"value":2},{"answer":"No or very little text and images.","answer_id":3,"value":0}]},{"question":"Does the contributor provide supplementary resources, such as code and sample files in the contribution post or a GitHub repository?","question_id":"vtut-3","answers":[{"answer":"Yes","answer_id":1,"value":10},{"answer":"No","answer_id":2,"value":0}]},{"question":"Is the tutorial part of a series?","question_id":"vtut-4","answers":[{"answer":"Yes.","answer_id":1,"value":10},{"answer":"Yes, but first entry in the series.","answer_id":2,"value":5},{"answer":"No.","answer_id":3,"value":0}]},{"question":"Is there an outline for the tutorial content at the beginning of the post?","question_id":"vtut-5","answers":[{"answer":"Yes.","answer_id":1,"value":5},{"answer":"Yes, but not detailed enough or does not cover all sections.","answer_id":2,"value":2},{"answer":"No.","answer_id":3,"value":0}]},{"question":"Does the presenter speak clearly and is easily understandable?","question_id":"vtut-6","answers":[{"answer":"Yes.","answer_id":1,"value":10},{"answer":"Mostly understandable.","answer_id":2,"value":5},{"answer":"No.","answer_id":3,"value":0}]},{"question":"Does the writing style meet the Utopian standard considering formalness, informativeness and clarity of the content?","question_id":"c-1","answers":[{"answer":"It is formal, informative and well written with clear content.","answer_id":1,"value":10},{"answer":"It is informative with clear content but not formal enough.","answer_id":2,"value":5},{"answer":"The contribution could be more informative or contains unrelated information, formality and clarity of the content are good enough.","answer_id":3,"value":4},{"answer":"Not all sections were clear enough but overall holds value for the project.","answer_id":4,"value":2},{"answer":"Not at all.","answer_id":5,"value":0}]},{"question":"Was the provided category template for the editor followed?","question_id":"c-2","answers":[{"answer":"All points of the template were included with additional points as well.","answer_id":1,"value":5},{"answer":"The template was followed without additions.","answer_id":2,"value":4},{"answer":"The template was edited but the points were covered in different way.","answer_id":3,"value":3},{"answer":"Not all points of the template were covered in the contribution but the structure is clear enough.","answer_id":4,"value":3},{"answer":"The template was not followed but the structure is clear enough.","answer_id":5,"value":2},{"answer":"The contents are not clearly structured at all.","answer_id":6,"value":0}]},{"question":"Did the contributor tag other users?","question_id":"c-3","answers":[{"answer":"No other users were tagged by the contributor.","answer_id":1,"value":5},{"answer":"Used tags are reasonable and all tagged people are connected to the project and/or the contribution.","answer_id":2,"value":5},{"answer":"The contribution contains mentions of other users that are not directly related to the contribution but related in other ways.","answer_id":3,"value":2},{"answer":"The contributor misuses tagging of other users.","answer_id":4,"value":0}]},{"question":"Did the contributor ask for upvotes, resteems, follows or witness vote?","question_id":"c-4","answers":[{"answer":"No","answer_id":1,"value":5},{"answer":"Yes, but not in a way that disturbs readability. ","answer_id":2,"value":5},{"answer":"Yes.","answer_id":3,"value":0}]},{"question":"Was a graphical content like images, charts, videos or screenshots included?","question_id":"c-5","answers":[{"answer":"Yes, the graphical content is included and adds more value to the contribution.","answer_id":1,"value":5},{"answer":"No but the contribution works well without graphical content well.","answer_id":2,"value":4},{"answer":"Yes, but most of the graphical content’s purpose is just for presentational matters.","answer_id":3,"value":3},{"answer":"No relevant or useful graphical content is included in the contribution.","answer_id":4,"value":0}]},{"question":"How would you rate the overall added value?","question_id":"c-6","answers":[{"answer":"Extraordinary value to both the project and the open source community overall.","answer_id":1,"value":20},{"answer":"Significant value to the project or open source community.","answer_id":2,"value":15},{"answer":"Some value to the project or open source community.","answer_id":3,"value":10},{"answer":"Little value to the project or open source community.","answer_id":4,"value":5},{"answer":"No obvious value to project or open source community.","answer_id":5,"value":0}]}]},"image":["https://img.youtube.com/vi/r9wbxYE2DYY/0.jpg"]}"
created2018-04-13 02:31:06
last_update2018-04-13 16:00:51
depth0
children6
last_payout2018-04-20 02:31:06
cashout_time1969-12-31 23:59:59
total_payout_value67.993 HBD
curator_payout_value25.423 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length6,455
author_reputation87,856,203,149,624
root_title"How to Monetize Your Flutter Applications Using Admob"
beneficiaries
0.
accountutopian.pay
weight1,500
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id49,775,738
net_rshares22,415,565,178,868
author_curate_reward""
vote details (146)
@rosatravels ·
@tensor, you forgot to embed the you-tube video into your post.
If there are no videos, we will reject the contribution.
I think in this case, you might have forgotten so please embed the video into your post.
----------------------------------------------------------------------
Need help? Write a ticket on https://support.utopian.io.
Chat with us on [Discord](https://discord.gg/uTyJkNm).

**[[utopian-moderator]](https://utopian.io/moderators)**
properties (22)
authorrosatravels
permlinkre-tensor-how-to-monetize-your-flutter-applications-using-admob-20180413t091144714z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"community":"utopian","app":"utopian/1.0.0"}
created2018-04-13 09:11:45
last_update2018-04-13 09:11:45
depth1
children1
last_payout2018-04-20 09:11:45
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length450
author_reputation422,827,447,688,168
root_title"How to Monetize Your Flutter Applications Using Admob"
beneficiaries
0.
accountutopian.pay
weight1,500
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id49,822,637
net_rshares0
@tensor · (edited)
I do not know how I forgot to do this, I could have sworn I did it last night when I wrote the post.  I was fairly exhausted last night so I guess it makes sense.  Thank you for telling me; the post should be corrected now. If there are any other issues please let me know.
properties (22)
authortensor
permlinkre-rosatravels-re-tensor-how-to-monetize-your-flutter-applications-using-admob-20180413t145555590z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"app":"steemit/0.1"}
created2018-04-13 14:55:54
last_update2018-04-13 14:57:15
depth2
children0
last_payout2018-04-20 14:55:54
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length273
author_reputation87,856,203,149,624
root_title"How to Monetize Your Flutter Applications Using Admob"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id49,868,828
net_rshares0
@rosatravels ·
$0.07
Thank you for your contribution.  It has been approved.
----------------------------------------------------------------------
Need help? Write a ticket on https://support.utopian.io.
Chat with us on [Discord](https://discord.gg/uTyJkNm).

**[[utopian-moderator]](https://utopian.io/moderators)**
👍  
properties (23)
authorrosatravels
permlinkre-tensor-how-to-monetize-your-flutter-applications-using-admob-20180413t160419181z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"community":"utopian","app":"utopian/1.0.0"}
created2018-04-13 16:04:21
last_update2018-04-13 16:04:21
depth1
children1
last_payout2018-04-20 16:04:21
cashout_time1969-12-31 23:59:59
total_payout_value0.065 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length297
author_reputation422,827,447,688,168
root_title"How to Monetize Your Flutter Applications Using Admob"
beneficiaries
0.
accountutopian.pay
weight1,500
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id49,879,107
net_rshares21,781,798,118
author_curate_reward""
vote details (1)
@tensor ·
Thank you for your patience with my negligence and thank you for moderating my contribution.
properties (22)
authortensor
permlinkre-rosatravels-re-tensor-how-to-monetize-your-flutter-applications-using-admob-20180413t172102242z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"app":"steemit/0.1"}
created2018-04-13 17:21:00
last_update2018-04-13 17:21:00
depth2
children0
last_payout2018-04-20 17:21:00
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length92
author_reputation87,856,203,149,624
root_title"How to Monetize Your Flutter Applications Using Admob"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id49,889,429
net_rshares0
@thebrokedogmom ·
Interesting topic, I have never heard if this form of ad programming. Where did you originally locate this information?
properties (22)
authorthebrokedogmom
permlinkre-tensor-2018412t22335702z
categoryutopian-io
json_metadata{"tags":["utopian-io","steemstem","steemiteducation","science","technology"],"app":"esteem/1.5.1","format":"markdown+html","community":"esteem"}
created2018-04-13 02:33:03
last_update2018-04-13 02:33:03
depth1
children0
last_payout2018-04-20 02:33:03
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length119
author_reputation1,961,290,082
root_title"How to Monetize Your Flutter Applications Using Admob"
beneficiaries
0.
accountesteemapp
weight1,000
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id49,775,964
net_rshares0
@utopian-io ·
### Hey @tensor I am @utopian-io. I have just upvoted you!
#### Achievements
- You have less than 500 followers. Just gave you a gift to help you succeed!
- Seems like you contribute quite often. AMAZING!
#### Utopian Witness!
<a href="https://discord.gg/zTrEMqB">Participate on Discord</a>. Lets GROW TOGETHER!
- <a href="https://v2.steemconnect.com/sign/account-witness-vote?witness=utopian-io&approve=1">Vote for my Witness</a>
- <a href="https://v2.steemconnect.com/sign/account-witness-proxy?proxy=utopian-io&approve=1">Proxy vote to Utopian Witness</a>

**Up-vote this comment to grow my power and help Open Source contributions like this one. Want to chat? Join me on Discord https://discord.gg/Pc8HG9x**
properties (22)
authorutopian-io
permlinkre-tensor-how-to-monetize-your-flutter-applications-using-admob-20180414t123154627z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"community":"utopian","app":"utopian/1.0.0"}
created2018-04-14 12:31:54
last_update2018-04-14 12:31:54
depth1
children0
last_payout2018-04-21 12:31:54
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length711
author_reputation152,955,367,999,756
root_title"How to Monetize Your Flutter Applications Using Admob"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id50,019,584
net_rshares0