GAM Creative Setup
This page explains the creative template used by Nexx360 line items in Google Ad Manager to render winning bids from n360ortb.
When a Nexx360 line item wins in the GAM auction, it renders a creative that:
Loads the n360ortb display library
Uses GAM macros to identify the winning bid
Renders the ad from Nexx360's servers
Creative Template
The following creative template is used by Nexx360 line items:
<script src="https://lib.nexx360.io/nexx360display/api.js"></script>
<script>
var ucTagData = {
bidId: '%%PATTERN:n360_bid%%',
size: '%%PATTERN:n360_sz%%',
pubUrl: '%%SITE%%'
};
n360ortbDisplay.renderAd(document, ucTagData);
</script>
1. n360ortbDisplay Library
This lightweight library provides the renderAd() function that fetches and renders the ad creative.
The template uses GAM macros to pass bid information:
3. renderAd() Function
This function:
Fetches the ad creative using the bid ID
Renders the ad into the current document (iframe)
Handles impression and click tracking
Creative Setup in GAM
If you need to verify or manually create the creative:
Go to Delivery > Creatives in GAM
Find or create a third-party creative
Set the creative type to Third party
Paste the creative template code
Set appropriate sizes (or use a 1x1 fluid creative)
To troubleshoot creative rendering issues, you can enable debug mode by adding a query parameter to your page:
With debug mode enabled:
Console logs show bid and render information
Network requests to Nexx360 servers are visible
Error messages are more descriptive
Troubleshooting
Ad not rendering
Check targeting: Verify the n360ortb targeting keys are being set
Use browser dev tools to inspect GPT targeting
Look for n360_bid, n360_pb, n360_sz keys
Check line item delivery: In GAM, verify the line item is:
Active and within flight dates
Not limited by frequency caps
Check creative approval: Ensure creatives are approved in GAM
If the creative space appears but shows blank:
Check browser console for JavaScript errors
Verify the n360ortbDisplay library loaded successfully
Confirm the bid ID macro is populated (not empty)
Wrong size rendered
If the ad renders at an incorrect size:
Verify sizes match between GPT slot and n360ortb configuration
Check that the n360_sz targeting key contains the correct size
Ensure the creative in GAM supports the expected sizes
Advanced: Custom Creative
For advanced use cases, you can customize the creative template:
Last updated