To use web content behind a login for content mapping in your apps, you need to provide login details for the corresponding sites. This gives the content crawler access to visit your pages and deliver ads. You also need to verify that these sites are yours in Search Console.
- Sign in to your AdMob account at https://admob.google.com.
- Click Settings in the sidebar.
- Click the Crawler Access tab.
- Click Add login details.
- In the "Login information" section, provide the login details that our crawler will use to access your site:
- Restricted directory or URL: The URL that is blocked from our crawler's access.
- Login URL: The URL that our crawler should visit to sign in.
- Login method: The method your site uses to authenticate users who log in. POST and GET are common authentication methods.
- In the Login parameters section, provide the credentials that our crawler will use to sign in (for example, your app's username and password). For GET and POST methods, please enter the URL parameter key-value pairs such that your server will return a cookie for logged-in access.
- Click Add login.
- Sign in to Search Console using your Google Account. You must be using your Google Account in order for any changes you make in Search Console to be reflected in your AdMob account.
- Add your URL to your Search Console account. Make sure you add the site that you want to allow our crawler to access.
- After you've verified your site, the login details you've provided should allow the content crawler to reach your pages and provide ads.