cmp added

This commit is contained in:
2026-11-09 00:27:19 +01:00
parent 6d031082a3
commit c634a247a3
2 changed files with 34 additions and 2 deletions
+32 -1
View File
@@ -49,7 +49,38 @@ and ad-request APIs differ.
`requestConsentInfoUpdate()` → `loadAndShowConsentFormIfRequired()` before
`MobileAds.initialize()`.
5. Optional but recommended: publish an `app-ads.txt` on the developer website that
Play points to. It is a website file, not an app asset.
Play points to. It is a website file, not an app asset. The copy in the repo root
lists `pub-…`, so the file must be served from the root of that domain, not from
this repository.
6. **App verification and the ad-serving review are two different gates.** Once the
AdMob app is verified, AdMob still reviews it before full ad serving, which
typically takes 2–3 days and can take longer. Ad serving is **limited** in that
window, so a missing or low-fill banner right after verification is expected and
is not evidence of a bug. Do not react by adding ad units, disabling the banner
gate or hammering requests; check the AdMob inbox for the review result and only
judge fill rate after it clears.
### 2.1 CMP and consent messages
The app already ships the UMP SDK, which is one of Google's certified CMPs. It
displays whatever *Privacy & messaging* serves, including the Google CMP messages
that **Maximize message coverage** auto-creates for a new app — no app change is
needed when a message is added, edited or re-published. `AdsController` requests the
consent update, shows `loadAndShowConsentFormIfRequired()` and only then initialises
the ad SDK.
Messages to have before the banner is expected to work in every region:
| Message | Region | Notes |
|---|---|---|
| European regulations (GDPR) | EEA, UK, Switzerland | Personalised ads + the privacy-options form. Must be **published**; a draft is invisible to the SDK |
| US states (IAB US Privacy / GPP) | US state privacy laws | Only relevant if the app is distributed there |
| Privacy options | wherever UMP reports `privacyOptionsRequirementStatus == REQUIRED` | Already wired: *Options > Privacy options* → `showPrivacyOptionsForm()` |
An unpublished message means no form is shown; whether the app may then request an
ad is decided by `canRequestAds()`, and Google may fall back to a generic consent
message in the EEA/UK/CH. Do not rely on that fallback: publish the message and
verify the flow with a debug device set to the EEA (see §9).
## 3. Play Console setup
+2 -1
View File
@@ -13,7 +13,8 @@
# Then enable Play App Signing in the Play Console and register this key as the
# *upload* key (Google keeps the app signing key).
# Path to your keystore (absolute is safest).
# Path to your keystore (absolute is safest). On the dev machine the upload
# keystore (shared with the paid listing) lives in /home/ubuntu/keystore/.
storeFile=/absolute/path/to/fotodup-upload.jks
storePassword=change-me
keyAlias=upload