[Documentation](https://fluxnative.app/docs) / Connect services

# Ads

Add your AdMob app and ad unit IDs and your test phones; the assistant places the ads and asks for consent first.

![The AdMob form under Server, Monetization: Android and iOS App IDs, Add ad unit, and Your test devices](https://fluxnative.app/guide-media/ads.79bd1523.webp)

Paste each App ID, add one ad unit per placement, and list your own phones as test devices.

## Steps

1. In AdMob, choose **Apps** › **Add app**, once for Android and once for iOS. Copy each App ID (`ca-app-pub-…~…`).
2. Under **Ad units**, create one unit per placement and copy its ID (`ca-app-pub-…/…`).
3. Click **App settings** › **Monetization** › **AdMob** and paste the IDs. Name each unit in one word, such as `homeBanner`.
4. Add your own phones under **Your test devices**, one ID per line.
5. Ask the assistant to place the ads.

`AdMob is connected. Show homeBanner above the tab bar on Home, and
levelReward as a rewarded ad for an extra life.`

## Before you publish

- Create and publish a GDPR message in AdMob **Privacy & messaging**; Google requires it in the EEA and the UK.
- Publish AdMob's `app-ads.txt` at the root of the developer website on your store listing.
- Declare **Ads** and **Advertising ID** in Play's App content, and advertising data in Apple's App Privacy. Publish lists both.

## Good to know

- Every build is a release build with **live** ads. Tapping one on your own phone can get the AdMob account suspended; test devices see test ads. Ask the assistant how to find a phone's 32-character ID.
- Ads load only after consent: the GDPR message, then Apple's tracking prompt. The browser preview shows an empty slot.
- A new AdMob app serves limited ads until AdMob reviews it, usually once it is on a store.
- Apps for children follow stricter ad rules. Tell the assistant if yours is one.

**Note:** A store build is refused while `app.json` has Google's sample App ID or none, because the ads SDK crashes at launch.

## In a FluxNative Commerce app

- Ads are built in and off. Under **App settings** › **Monetization**, below AdMob, turn on **Show ads**, pick a banner and a full-screen unit and their screens, then **Save**. No chat turn, no credits.
- Banners sit above the tab bar on Home, categories, product lists, search and the blog, and inside a product page under its details. A full-screen ad shows as a chosen screen opens, never in the first minute or after an order.
- Never on the cart, checkout, account, chats, the AI assistant, or the seller and driver apps.
- Build the app again after a change: turning ads on adds Google's ads SDK, and turning them off removes it.

## Related

[In-app purchases](https://fluxnative.app/docs/in-app-purchases) · [Store page](https://fluxnative.app/docs/store-listing) · [FluxNative Commerce](https://fluxnative.app/docs/fluxnative-commerce)

Previous: [In-app purchases](https://fluxnative.app/docs/in-app-purchases) · Next: [API keys and secrets](https://fluxnative.app/docs/secrets)

---

Add your AdMob app and ad unit IDs and your test phones; the assistant places the ads and asks for consent first.

Page: https://fluxnative.app/docs/ads
