Banner Ads (320x50)
Banners use the programmatic overlay approach: they overlay your content at a fixed screen position.Banner Position
UseCloudXAdPosition to place the banner:
TOP_LEFT, TOP_CENTER, TOP_RIGHT, CENTER_LEFT, CENTERED, CENTER_RIGHT, BOTTOM_LEFT, BOTTOM_CENTER, BOTTOM_RIGHT
For pixel-level control, use offsets:
MREC Ads (300x250)
MRECs work identically to banners but with a 300x250 size. Use theCloudXMRECAd module:
CloudXMRECAd has the same API surface as CloudXBannerAd, including positioning, offsets, background color, placement, custom data, auto-refresh control, and event listeners.
React Hook
{ isLoaded, error }