Ads on an interactive map and how to disable them
An interactive map may display banner ads. Ads are rendered in a separate container within the map container and adapt to its size.
To disable ads, pass an API key (apikey) associated with the Basic Plan (ad-free) for the JavaScript API product when loading the map.
To activate the ad-free Basic Plan:
- In the Developer Dashboard, activate the JS API product and purchase the Basic Plan (ad-free). For more information about authentication and using the Dashboard, see the documentation.
- Copy the API key and specify it in the
apikeyparameter of the widget code. Ads will not be displayed on the map when this key is used.
Configuring API key restrictions
For the API key to work correctly, associate it with your domain to restrict requests from other sources. This prevents your key from being used in other services.
To specify allowed domains for the API key:
-
Go to the Developer Dashboard.
-
Select the key and click Edit.
-
List the domains that can send requests, one per line, without a port, URL scheme, or parameters. For example:
yandex.ru yandex.com example.com
Domain information is passed in the Referer header, whose value contains a URL, such as https://www.yandex.ru. All subdomains are automatically added to the list of allowed domains.
Restrictions take effect 15 minutes after you submit the form.
If you have any questions about disabling ads, contact technical support.