
Google Ad Manager Guide
Overview
This document has the best practice for integrating the Lotame Lightning Tag with Google Ad Manager (formerly known as DoubleClick for Publishers). The example below allows you to receive the Lotame audience matches for a user and pass those audiences to Google Ad Manager for targeting.
Note: If you are using an ad-server other than Google, simply replace any lines referencing googletag with references to your specific implementation.
In order to ensure the fastest audience targeting response, copy and paste the following into the <head>
section of your page. Make sure that the onProfileReady callback returns before the googletag.enableServices()
call is made to ensure that your Lotame audiences are included in the call to Google.
Lotame recommends loading this directly on your page in the <head>
section to best ensure that targeting calls will complete in time to successfully include Lotame's audiences in your ad calls. We recommend against loading through a tag manager such as Google Tag Manager (GTM).
If you must use a tag manager, use any priority or sequencing features available to have the Lotame Lightning Tag fire as early as possible. Also, include the below prefetch and preconnect calls in the
<head>
section of your page and not in the tag management code as this will speed up the loading of the Lightning Tag script to best ensure Lotame audiences are available to your ad calls.
By default we send all audiences for your user to Google. If you would like to limit that number, see Limit Audiences.
To see the full feature set that the Lotame Lightning Tag offers, including passing in your own data fields for rule matching purposes, visit the Detailed Reference Guide. Also check out the Lightning Tag FAQ for answers to common questions. If you need any other assistance, please reach out to Lotame by submitting a Support ticket form through this link.
Push Audiences to Google
Before using this snippet, please replace the instances of <lotameClientId>
with your Lotame account's client ID.
Push Audiences and Panorama ID ™ to Google
Before using this snippet, please replace the instances of <lotameClientId>
with your Lotame account's client ID. This example uses lotame
as the Google audience targeting key and lpanoramaid
as the key for the Lotame Panorama ID ™ sent to Google.
Push Audiences and Profile Id to Google
Before using this snippet, please replace the instances of <lotameClientId>
with your Lotame account's client ID. This example uses lotame
as the Google audience targeting key and lpid
as the key for the Lotame profile id sent to Google.