Documentation Index
Fetch the complete documentation index at: https://docs.overlayed.gg/llms.txt
Use this file to discover all available pages before exploring further.
Refreshing Ads
UserefreshAdsViaDivMappings to request ad fills for specific placements on your page. Call it on initial mount and
again whenever the page context changes (for example, on route navigation).
divId— theidof the DOM element where the ad renders.baseDivId— the base selector for the ad unit (for example,.htlad-medrec). Overlayed works with you to pre-approve the set of base selectors your app uses.targeting— optional per-slot key-value targeting merged with page-level targeting.
Page-Level Targeting
For targeting that applies to every subsequent ad request, usesetPageTargeting:
init() automatically sets app_id page targeting for you.

