Ads, ASO & Accessibility

AdMob Test App ID vs Ad Unit ID: Avoid the Tilde-Slash Mix-Up

An AdMob app ID identifies the application in the SDK setup. An ad-unit ID identifies a placement and format. Their similar prefixes hide an important difference: the app ID uses ~, while the ad-unit ID uses /.

By Updated 2 min read

Use the correct test identifier

Google's Android sample app ID is:

TEXT · REFERENCE EXAMPLE
ca-app-pub-3940256099942544~3347511713

This is a public sample identifier for development, not your production app's registration. A banner demo ad-unit ID is a separate value and belongs in the ad request or view configuration for that format.

Identifier Typical role
ca-app-pub-…~… SDK application identity
ca-app-pub-…/… Ad placement identity
Android package name Android app identity, such as com.example.app
Firebase app ID Firebase project/app configuration, not an AdMob substitute

Validate the delimiter before investigating more complicated SDK failures.

Put it in the selected SDK's configuration

The legacy Android SDK uses com.google.android.gms.ads.APPLICATION_ID metadata under <application>. The Next-Gen SDK uses its documented initialization configuration. Unity's plugin has its own editor settings that feed the native build.

Do not copy an XML snippet for one SDK family into another integration without checking its guide. A “Missing application ID” error should trigger inspection of the merged release manifest or initialization configuration, not random network retries.

Separate debug and release values

Use build variants or controlled configuration so development identifiers do not accidentally ship. Add a release check that searches the final configuration for public sample IDs and confirms the intended production app and placement pairing.

Conversely, do not test interactions with live ads merely because the release configuration is available. Register test devices when working with your own ad units.

Verify the final artifact

A configuration file edited in the project may be overridden during manifest merging or framework export. APKLint's advertising checker can help inspect the resulting metadata, but it cannot confirm ownership of an AdMob account.

Follow the official setup instructions and test-ad guide. Keep app identity, placement identity and test-device status as three separate checks so a successful test banner does not conceal a production configuration mistake.

Sources and further reading

  1. Google: Legacy Google Mobile Ads SDK setup
  2. Google: Enable test ads on Android
  3. Google Mobile Ads: Next-Gen Android SDK setup

Reference review: 22 September 2026. Examples illustrate the workflow; check your installed versions, release artifact and account-specific Console requirements before applying them. This guide is not a claim that APKLint executed your project or verified your private account.

APKLint

Android inspection tools and practical release guides. About APKLint · Report a correction