Notification

Get personalized optimization tips, understand your account health and set up completion on the improved "My AdMob page".

Implementation guidance for content mapping

For every ad unit, the content surrounding the ad can be mapped individually using either setContentUrl() or setNeighboringContentUrls(). Note that each ad unit should use only one type of content mapping, not both.

To use content mapping:

  1. Install Google Mobile Ads SDK version:
    • Android: 19.0.0 or later for AdMob and 19.5.0 for Ad Manager
    • iOS: 7.67.0 or later
  2. Determine which type of content mapping to use for each of your ad units. 
  3. Ensure that the URLs you will pass are public (accessible by crawler). Learn more about making your site fully crawlable for AdMob or Ad Manager. Remember that the URL doesn’t need to be available to your users.

How to map content completely and accurately

Ensure that each piece of content maps to a URL that captures what the user sees in the app. The URLs you pass should provide a complete and accurate picture of the content that surrounds the ad.

Note: Provided URLs must return HTML. Media can be sent by embedding it using an <img> tag.

Use the examples below to learn more about what we mean by complete and accurate.

Example use cases

For the best performance, it’s important to pass URLs that thoroughly describe the content users see around the ad. First consider the type of ad being served to best determine what URL or URLs you should pass for content mapping. 

Note that the following use cases are examples to help you determine how to use content mapping.

URL requirements

Consider the following when selecting URLs to use in content mapping:

  • URLs must consistently match the content the user sees in the app. Learn more about our policies on misrepresentative content.
  • Don’t pass Personally Identifiable Information (PII) or any information that violates your privacy agreement with your users.
    • You can remove any PII (examples: full names, email addresses, geolocation parameters) within the content URLs that you send Google. We require a complete and accurate mapping of app content, but anything considered PII can be removed or replaced with a unique identifier prior to sending content URLs to Google.
  • URLs must be crawlable by Google.
    • URLs must return HTML documents where images are embedded using an HTML <img> tag.
    • If viewing the content requires a login, follow the instructions for configuring crawler logins
  • URLs must not be shortened (for example, goo.gl/MyContent)
  • URLs must be unique to the content the user sees in the app.
    • Don’t pass one generic URL for your entire app.
    • Don’t pass your app’s Play Store, App Store, or other app store URLs.
    • Don't append unnecessary URL parameters or tracking ids.
  • If you have a desktop website (such as example.com) and a separate mobile website (such as m.example.com), choose the URL which leads to the most complete representation of your app content. 
Don’t use content mapping if your content isn’t represented in the example use cases. If your implementation is not described, fill out this feedback form to tell us about it. 

Was this helpful?

How can we improve it?
true
‘My AdMob Help Page’ - your personalized Help Page to help you thrive on AdMob.

Introducing our newly revamped My AdMob Page,  a personalized Help page that houses relevant information for your account.

You can better maintain your account health, ensure necessary setup is completed and have the right optimization tips targeted to your apps. Stay tuned for more!

Learn more

17020699868888786671
true
Search
Clear search
Close search
Main menu
Search Help Center
true
true
true
true
true
73175
false
false
false
false