...
Include the AdConsent script in the document
<head>
section before any ad technology script. The script must be loaded synchronously to avoid race conditions while loading the page with scripts using the privacy API from AdConsent.Set AdConsent visual adjustments to fit the page look and feel, as well as the configurations needed to make AdConsent compatible with the publishers privacy requirements. For more information regarding available AdConsent functions, check the AdConsent API reference.
Signal AdConsent to start through the AdConsent start command.
(optional) Load 3rd party ad technology scripts like AdSense.
...
This is the typical AdConsent setup used. Use this example, customize styles to your need and change the AdConsent option example values:
setPublisherCC 2 . Two uppercase letter country code of the country that determines the legislation of reference. Normally corresponds to the country code of the country in which the publisher's business entity is established.
setPrivacyPolicy. The link to your privacy policy page
setLogo. The link to your logo that is displayed in the AdConsent GDPR GUI.
...