Documentation
¶
Overview ¶
Package interstitial provides XML markup parsing utilities for interstitial ad formats. It is an internal package shared between the banner and direct response subpackages to avoid circular imports.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseAdMarkup ¶
ParseAdMarkup parses XML ad markup for interstitial ad formats and extracts the relevant URL components. It supports the following ad types embedded in the XML:
- iframeAd: returns the iframe URL as pageURL
- popunderAd: returns the popunder URL as pageURL
- imageAd: returns clickURL and imgURL
Example iframeAd markup:
<?xml version="1.0" encoding="ISO-8859-1"?>
<ad>
<iframeAd>
<url><![CDATA[https://example.com/iframe]]></url>
</iframeAd>
</ad>
Example imageAd markup:
<?xml version="1.0" encoding="ISO-8859-1"?>
<ad>
<imageAd>
<clickUrl><![CDATA[https://example.com/redirect]]></clickUrl>
<imgUrl><![CDATA[https://i.imgur.com/bRoshBm_d.webp]]></imgUrl>
</imageAd>
</ad>
Example popunderAd markup:
<?xml version="1.0" encoding="ISO-8859-1"?>
<ad>
<popunderAd>
<url><![CDATA[https://example.com/popunder]]></url>
</popunderAd>
</ad>
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.