Hi @EvaLi1
I would approach it split in two rules
1. A library loaded rule that sets a piece of custom code that sets the default state
window.uetq = window.uetq || [];
window.uetq.push('consent', 'default', {
'ad_storage': 'denied',
'Wait_for_update': 2000
});
2. A rule that is triggered as soon as consent is given, and has a condition that check whether marketing consent is given. In a custom code action, you then update the UET consent.
window.uetq = window.uetq || [];
window.uetq.push('consent', 'update', {
'ad_storage': 'granted'
});
Cheers from Switzerland!