Get personalised optimisation tips, understand your account health and set up completion on the improved 'My AdMob page'.

Replace legacy Publisher and Mediation IDs

For ad units created before 1 September 2014.

AdMob uses ad unit IDs to identify unique ad units in your apps, serve ads to those ad units, and manage mediation if it's enabled.

Apps you may have monetised in legacy AdMob used legacy Publisher IDs to identify the ad units and legacy Mediation IDs for mediation. Both of these IDs have been replaced by a single new ad unit ID. To benefit from all of AdMob's mediation features, you need to update the legacy IDs in each of the ad units in your apps to their corresponding new ad unit IDs, then republish your apps.

Update your legacy IDs

To update your the legacy Publisher and Mediation IDs in your apps to the new ad unit IDs:

  1. Sign in to your AdMob account at
  2. Click Apps in the sidebar.
  3. Click the name of the app that you want to update.
  4. Scroll down to view the ad units table. It displays all of the ad units associated with the app.
  5. Click the Copyicon in the Ad unit ID column beside the ad unit.
  6. In your app's code, replace the legacy Publisher ID and the legacy Mediation ID for the ad unit with its new ad unit ID. Repeat this step for each pair of legacy Publisher and Mediation IDs.
  7. Publish your app containing the new ad unit IDs.


You may want to wait to publish until your next scheduled app release if you're still actively developing the app. However, to benefit from all of AdMob's mediation features, you need to update and republish the app using the new ad unit IDs.

The new ad unit IDs will be used for ad serving to all of the users who download the new version of your app or update their existing version.

Was this helpful?
How can we improve it?

Need more help?

Sign in for additional support options to quickly solve your issue

<p>‘My AdMob Help Page’ – your personalised Help Page to help you thrive on AdMob.</p>

Introducing our newly revamped My AdMob Page,  a personalised Help page that houses relevant information for your account. You can better maintain your account health, ensure that necessary setup is completed and have the right optimisation tips targeted to your apps. Stay tuned for more!

Learn more

Clear search
Close search
Google apps
Main menu
Search Help Centre