AdLayoutValidator

Validates a native AdLayout tree.

Missing headline / ad badge / AdChoices space are reported as warnings, by design — this mirrors the official AdMob SDKs, which log and still render (the SDK draws its own AdChoices overlay regardless of the layout). Only a layout with no renderable asset at all is an error. The library does not throw or refuse to render on warnings; consumers decide how to react to AdLayoutValidationReport.warnings.

Functions

Link copied to clipboard

Validates a native ad AdNode tree. Checks for missing required assets (headline, ad badge, AdChoices) and structural problems.