Microsoft Monetize (formerly Xandr, AppNexus) is a comprehensive ad serving platform
that enables publishers to manage and monetize their advertising inventory
with advanced targeting and reporting capabilities.
Microsoft Monetize (formerly Xandr, AppNexus) is Microsoft’s ad serving platform that provides publishers with tools to manage, deliver, and optimize advertising campaigns. Our integration with Microsoft Monetize enables you to activate Permutive cohorts for real-time targeting and collect comprehensive ad performance data for insights and optimization.This integration is both a Source and Destination:
Source: Permutive collects ad impression and click events from Microsoft Monetize.
Destination: Permutive activates your cohorts in Microsoft Monetize using targeting key-value pairs.
Use cases include:
Target your advertising campaigns in real-time with rich Permutive cohorts using Microsoft Monetize’s ad server.
Track ad impressions and clicks in Permutive for insights, retargeting, or modeling.
(Advanced) Log-Level Data: Ingest comprehensive ad event data from Microsoft Monetize Log-Level Data Feeds for enhanced reporting and mobile support.
Member ID - You must provide your Microsoft Monetize Member ID, which can be found in your Microsoft Monetize dashboard.
User Credentials - You must create a Microsoft Monetize user account for Permutive with appropriate permissions. We recommend using an account with the following permissions:
View and edit key-values
Create and manage targeting keys
Access to inventory settings
AppNexus Seller Tag - For Web integration, you must already have the AppNexus Seller Tag installed on your site and configured to serve your advertising campaigns.
You must enable the Microsoft Monetize (Ad Server) integration in the Permutive dashboard. In the Permutive dashboard, navigate to your workspace’s integrations page. Click Add Integration and select Microsoft Monetize (Ad Server).You will be asked to provide:
Your Microsoft Monetize Member ID
Microsoft Monetize username and password (for API access)
2
Verify Key-Values in Microsoft Monetize
In your Microsoft Monetize dashboard, navigate to Inventory => Key-Values and search for permutive. You should find that a targeting key has been created for permutive. If you cannot find the targeting key, please reach out to Permutive Support.
3
Verify Setup
In the Permutive Dashboard, navigate to one of your cohorts. Check that the Microsoft Monetize (Ad Server) activation sync is visible. You can try toggling this to On. After doing this, in your Microsoft Monetize dashboard you should see a new targeting value created under the permutive targeting key, with the value corresponding to your cohort’s ID. This verifies your integration setup is successful.
Enable the Microsoft Monetize Log-Level Data integration in your Permutive Dashboard. You will need to specify:
Your Microsoft Monetize Member ID
Whether to ingest clicks
Whether to ingest impressions
When enabled, Permutive will create a GCS bucket permutive-xandr-logs-<member_id> for your log files.
2
Configure Log Export in Microsoft Monetize
In your Microsoft Monetize account, configure your Log-Level Data Feeds to export to the Permutive-provided GCS bucket.
3
Verify Setup
Check back after 24 hours. You should see new events (XandrLogAdImpression and XandrLogAdClick) on the Events page in your Permutive Dashboard with line item IDs included.
Log-Level Data integration requires the standard Microsoft Monetize (Ad Server) integration
(for event collection) to be enabled first.
You’ll need to deploy additional JavaScript on-site, alongside the standard Permutive tag. This script ensures that we are always able to target users with cohort membership data from their previous page views or browsing sessions, and that we collect all ad events even if they occur before Permutive has fully loaded.We recommend deploying this script immediately above the Permutive tag:
Integrate Permutive with Microsoft Monetize on iOS
You’ll need to integrate the Permutive iOS SDK with your Microsoft Monetize (Xandr) ad requests to enable cohort targeting in-app.Permutive offers automatic Xandr ad targeting through a Permutive SDK Add-On library. This add-on provides seamless integration with the Xandr SDK to automatically apply Permutive targeting to your ad requests.
For complete implementation details and the latest installation instructions, please refer to the Permutive iOS SDK Xandr Add-On documentation.You must have the Permutive iOS SDK installed and configured before adding the Xandr add-on.
Integrate Permutive with Microsoft Monetize on Android
You’ll need to integrate the Permutive Android SDK with your Microsoft Monetize (Xandr) ad requests to enable cohort targeting in-app.Alongside our Android SDK, you must add our Xandr/AppNexus add-on dependency to your Gradle build:
Our Android SDK then provides methods to automatically add Permutive targeting to your Xandr ads and track impressions:
// For AdViews - add Permutive targetingbanner.addPermutiveTargeting(permutive)banner.loadAd()// For NativeAdRequests - add Permutive targetingnativeAd.addPermutiveTargeting(permutive)// For impression tracking - without existing listenerbanner.setPermutiveAdListener(permutive)// For impression tracking - with existing listenerbanner.setPermutiveAdListener( permutive, object : AdListener { // ... your listener methods })
If you are already using an AdListener, pass it as the optional second parameter to setPermutiveAdListener to avoid conflicts with Permutive impression tracking.
In environments where it is not possible to deploy a Permutive SDK, you can use Permutive’s CCS (Custom Cohort Segmentation) API for event tracking and segmentation instead.Access to this API requires customer-specific authorization. You will need a dedicated API key from Permutive.
The events array in the request is optional. If you only need to retrieve cohort memberships without tracking a new event, you can pass an empty array.
The API accepts a user identity passed in the alias object. Permutive then either links this identity to an existing Permutive user ID or creates a new Permutive user ID if the identity hasn’t been seen before.For cross-environment segmentation and targeting, the identity provided should be consistent with identities used in your other environments (web, app).Example Response:
The API response includes cohort IDs for Microsoft Monetize activation under the appnexus_adserver key within the activations object. These can then be passed to Microsoft Monetize as key-values for targeting.Important Notes:
Replace PERMUTIVE_API_KEY with your actual Permutive API key
The activations=true query parameter is required to receive activation data in the response
Unable to enable Microsoft Monetize (Ad Server) integration in Permutive Dashboard
If you see an error when enabling the Microsoft Monetize (Ad Server) integration, check that
you have provided valid Microsoft Monetize credentials with the correct permissions. The
user account must have permissions to view and edit key-values and access
inventory settings. Verify your Member ID is correct.
The `permutive` targeting key was not created
Double check that the Microsoft Monetize user credentials provided to Permutive have the
correct permissions to create and manage targeting keys. The user must have
access to the inventory section and permissions to edit key-values. If you
have reached Microsoft Monetize’s limit of targeting keys, you may need to remove an
old/inactive key first.
Cohorts not appearing as targeting values in Microsoft Monetize
First, verify the cohort is toggled On for Microsoft Monetize (Ad Server) activation in
the Permutive Dashboard. Then check in your Microsoft Monetize dashboard under
Inventory => Key-Values that the cohort ID appears as a value under the
permutive targeting key. If the value is missing, try toggling the cohort
activation off and on again, and contact Permutive Support if the issue
persists.
Log-Level Data events not appearing
Verify that you have enabled both the standard Microsoft Monetize (Ad Server) integration
(for event collection) and the Log-Level Data integration. Check that your
Microsoft Monetize Log-Level Data Feeds are correctly configured to export to the
Permutive-provided GCS bucket. Allow 24 hours for initial data to appear. If
events still don’t appear, verify your Member ID matches in both the
dashboard configuration and the service account writing to the GCS bucket.
Missing line item IDs in events
Line item IDs are only available when using the Log-Level Data integration.
Standard edge SDK events (AppNexusAdImpression and AppNexusAdClick) do
not include line item IDs due to limitations of the AppNexus Seller Tag API. To
get line item IDs, you must enable the Log-Level Data Feeds integration.