Admob & Facebook
Last updated
Last updated
Here's how to set up your AdMob account and create an Ad Unit:
Go to the AdMob website: Navigate to and click on Get Started.
Sign in with your Google account: Use your existing Google account or create a new one.
Complete the registration: Fill in your personal information, such as your country, time zone, and payment details, so you can receive payments for ad revenue.
Accept the terms: Read and accept the AdMob program policies and terms of service.
Create a new app in AdMob: Once you have completed the account setup, you'll need to create an app in AdMob.
On the Apps page, click Add App.
Choose whether your app is already published on the Google Play Store/App Store or if it’s still under development.
Enter the app name, choose the platform (Android or iOS), and click Add.
Get your App ID: After creating your app, you’ll be given an App ID. Copy this because you'll need it later when integrating AdMob into your app's code.
Ad units are the ad placements within your app (e.g., banner, interstitial, or rewarded ads).
Select the app: From the AdMob dashboard, click on the app you just created.
Add Ad Unit:
In the app dashboard, click on Ad units and then click Create Ad Unit.
Choose the type of ad you want to create:
Banner Ad: Small rectangular ads at the top or bottom of the screen.
Interstitial Ad: Full-screen ads that cover the app's interface.
Rewarded Ad: Ads that provide users with in-app rewards after viewing.
Native Ad: Ads that match the look and feel of your app.
Configure your Ad Unit:
Give the ad unit a name (something descriptive for easy identification).
Set up any additional ad unit options, such as refresh rates (for banners) or reward values (for rewarded ads).
Save and get Ad Unit ID: Once the ad unit is created, you’ll be provided with an Ad Unit ID. Copy it for later use when you implement it in your Flutter code.
Log in or sign up: Sign in using your Facebook account or create one if you don’t already have an account.
Create a New App:
Click My Apps in the top-right corner.
Click Create App.
Choose For Everything Else as the app type and click Next.
Fill in the App Name, Email Address, and Purpose, then click Create App ID.
Create a Business Account:
If you don’t have a business account, you’ll be prompted to create one.
Fill in the required information about your business (such as business name, address, and payment details).
Add Audience Network to Your App:
In the Audience Network dashboard, click Add Property.
Select your app and integrate it with Facebook Audience Network.
Create a New Ad Placement:
In the Audience Network dashboard, click Placements and then click Create Ad Placement.
Select your app (or property) from the dropdown list.
Choose the Ad Format: Facebook offers several ad formats:
Banner Ad: A rectangular ad that appears at the top or bottom of the app screen.
Interstitial Ad: A full-screen ad that appears at natural breaks or transitions.
Rewarded Video Ad: Ads that reward users for watching them, often with in-app rewards.
Native Ad: Ads that match the look and feel of your app.
Choose the format you want and click Next.
Name and Configure the Ad Unit:
Give the placement a descriptive name (e.g., "Banner_Ad_Home_Screen").
Configure any additional options, such as frequency capping and bidding strategies.
Click Save to create the ad unit.
Get the Placement ID:
After creating the ad unit, you’ll be provided with a Placement ID.
Copy this Placement ID as you’ll need it when integrating Facebook Audience Network into your app code.
Go to the Facebook Developers Portal: Visit .
Go to Facebook Audience Network: Navigate to the of the Facebook Developers website.