AdXensor supports all standard IAB display ad sizes plus a responsive auto mode. Choose the format that fits your page layout, or use auto to let the SDK pick the best size for each visitor’s device.
Responsive mode (auto)
When you set data-ad-format="auto", the SDK resolves the best concrete size based on the visitor’s device and the available container width at render time:
CDN snippet
npm (React / Next.js)
Or using the programmatic API:
Slot sizing recommendation
Always ensure your container is at least as wide as the ad format you request. If the container is narrower than the requested format, the ad may overflow or appear cut off.For fluid layouts, prefer auto or a format smaller than the narrowest expected container width.
TypeScript
The AdFormat type is a strict union of all valid format strings: