consent.Initialize("consent")
#if DEBUG
consent.AddTestDevice("xxxx")
consent.SetDebugGeography(True)
#End If
consent.RequestInfoUpdate(Array("pub-xxxx"))
Wait For consent_InfoUpdated (Success As Boolean)
If Success = False Then
Log($"Error getting consent state: ${LastException}"$)
End If
Log($"Consent state: ${consent.ConsentState}"$)
Log("EU: " & consent.IsRequestLocationInEeaOrUnknown)
Do While IsPaused(Main)
Sleep(100)
Loop
CallSubDelayed(Main, "ConsentStateAvailable")