Skip to content

Instantly share code, notes, and snippets.

@andrekeher
Last active February 3, 2021 15:19
Show Gist options
  • Save andrekeher/386f809e472f6064d1c2284fd8d2d114 to your computer and use it in GitHub Desktop.
Save andrekeher/386f809e472f6064d1c2284fd8d2d114 to your computer and use it in GitHub Desktop.
<?php
if (! wp_is_mobile()) {
//Desktop
?>
<SCRIPT language='JavaScript1.1' SRC="https://ad.doubleclick.net/ddm/trackimpj/N416407.2681801PORTALAPRENDIZ/B22962508.250737150;dc_trk_aid=446743665;dc_trk_cid=118420607;ord=[timestamp];dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=?"></SCRIPT>
<ins class='dcmads' style='display:inline-block;width:468px;height:60px'
data-dcm-placement='N416407.2681801PORTALAPRENDIZ/B25360245.295129612'
data-dcm-rendering-mode='script'
data-dcm-https-only
data-dcm-gdpr-applies='gdpr=${GDPR}'
data-dcm-gdpr-consent='gdpr_consent=${GDPR_CONSENT_755}'
data-dcm-addtl-consent='addtl_consent=${ADDTL_CONSENT}'
data-dcm-resettable-device-id=''
data-dcm-app-id=''>
<script src='https://www.googletagservices.com/dcm/dcmads.js'></script>
</ins>
<?php
} else {
//Mobile
?>
<SCRIPT language='JavaScript1.1' SRC="https://ad.doubleclick.net/ddm/trackimpj/N416407.2681801PORTALAPRENDIZ/B22962508.283237217;dc_trk_aid=477109946;dc_trk_cid=118420607;ord=<?php echo uniqid(); ?>;dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;gdpr=${GDPR};gdpr_consent=${GDPR_CONSENT_755}?"></SCRIPT>
<a href="https://ad.doubleclick.net/ddm/jump/N416407.2681801PORTALAPRENDIZ/B25360245.295129609;sz=350x45">
<img src="https://portal.aprendiz.uol.com.br/wp-content/uploads/2020/09/350x45.jpg" alt="Fundação Bradesco" title="Fundação Bradesco"/>
</a>
<?php
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment