Springserve Macros

Created by Andrew Baritz, Modified on Wed, 25 Jun at 12:55 PM by Andrew Baritz

?️ How to Use and Set Up Macros in SpringServe

? What Are Macros?

In SpringServe, macros are placeholders used in ad tag URLs that get dynamically replaced with relevant data—like IP addresses, device types, or video content metadata—when the ad request is made.

Think of macros like "fill-in-the-blanks" that SpringServe completes in real time based on each viewer's context.


?️ Setting Up Macros in Demand Tags

To include macros in your demand tag URLs, you embed them using curly brackets. For example:

arduino
CopyEdit
https://example.com/ad?ip={{IP}}&ua={{UA}}&content={{CONTENT_ID}}

Steps:

  1. Open your SpringServe console.

  2. Navigate to your demand tag (under Demand > Tags).

  3. In the tag URL, insert any macros you want to pass, using double curly brackets {{ }}.

Important: Ensure your demand partner supports these macros in their endpoint.


? Suggested Macros (with Examples)

On page 1–2 of your reference, there is a giant table of Supported Macros & Query String Parameters, categorized by use cases like Device, Geo, Player, Content, etc.

Here are some common macro examples:

MacroDescriptionExample Output
{{IP}}User’s IP address123.45.67.89
{{UA}}User agentMozilla/5.0...
{{CONTENT_ID}}ID of the video content456123
{{DEVICE_MAKE}}Device manufacturerApple
{{GDPR}}GDPR flag for compliance1 (Yes) or 0 (No)
{{LAT}} / {{LON}}Latitude/Longitude40.7128 / -74.0060

✅ You can mix and match multiple macros in the same tag. Make sure to test them using a tag validator.


? How to Use Passthrough Macros

If your demand partner needs data not natively supported by SpringServe macros, use passthrough macros instead (explained at the bottom of page 3).

? Example:

Let’s say the demand partner needs the app version but there’s no macro for it. Use:

arduino
CopyEdit
https://example.com/ad?appversion={{QUERYSTRING.appver}}

Then, in your supply tag, append:

CopyEdit
&appver=1.2.3

SpringServe passes appver=1.2.3 through to the demand tag.

Types of Passthrough Macros:

  1. {{URL.querystring}} – Encodes the request URL.

  2. {{QSP.querystring}} – Similar but leaves commas unencoded.

  3. {{QSPN.querystring}} – Leaves most special characters unencoded.

  4. {{QSPENC.querystring}} – Unencoded variant (risky but flexible).


? Advanced: CTV & OMSDK Macros

From page 2–3, there are advanced macros for:

  • CTV targeting (e.g., {{CTV_DEVICE_MAKE}}, {{CTV_APP_ID}})

  • OMSDK verification (e.g., {{OMID_PN}}, {{OMID_PV}})

These are essential for:

  • App-level targeting

  • SDK-integrated inventory verification

  • Brand safety and transparency


✅ Macro Testing Tips

  1. Use the Tag Validator inside SpringServe to test tag URLs with macros.

  2. Enable test impressions to inspect how macros resolve.

  3. Compare logs with demand partner expectations to confirm proper transmission.


? Key Takeaways

Do ✅Don't ❌
Use only supported macros from SpringServe's documentationInvent unsupported macro names
Test macros with real traffic or Tag ValidatorAssume macros work without verification
Use passthrough macros if something is missingOvercomplicate demand tags unnecessarily

? Reference Links from SpringServe (visible on page 1 & 3)

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article