chris TFF
Member
Hello,
We pass a number of variables, such as thread ID and forum ID to our Google DFP installation to help target our adverts.
We would also like to pass Thread Tags and User Group IDs. We have tried a few code variations, but have't made them work. Both would be arrays.
We have managed to pass a specific Usergroup ID - but ideally we need to pass all of them.
Can anyone help with the right code please?
This is what we are using so far:
We pass a number of variables, such as thread ID and forum ID to our Google DFP installation to help target our adverts.
We would also like to pass Thread Tags and User Group IDs. We have tried a few code variations, but have't made them work. Both would be arrays.
We have managed to pass a specific Usergroup ID - but ideally we need to pass all of them.
Can anyone help with the right code please?
This is what we are using so far:
Code:
<xf:if is="{$forum.node_id}">
<!-- Forum ID: {$forum.node_id} -->
googletag.pubads().setTargeting("Forum_ID","{$forum.node_id}");
</xf:if>
<xf:if is="{$threadID|raw}">
<!-- THREAD ID: {$threadID|raw} -->
googletag.pubads().setTargeting("THREAD_ID","{$threadID|raw}");
</xf:if>
<xf:if is="{{$xf.visitor.isMemberOf([43])}}">
<!-- UG: Sugar Beet Grower-->
googletag.pubads().setTargeting("USERGROUP","43");
</xf:if>