Skip to content

Main content

Coupon Attribution Last Day Flag Tool

Retain attribution provenance while applying a supplied final-day inclusion rule.

Loading tool…

Description

Compare conversion<=expiry or conversion<expiry according to inclusive, and preserve the source label.

Advertising records distinguish billable exposure, disclosure support, cyclic reporting windows, layout insets and supplied tax bases. A code-point budget or visibility-duration share does not establish readable or legally sufficient disclosure. Nominal geometry and costs require the intended platform and reporting conventions.

Compare conversion<=expiry or conversion<expiry according to inclusive, and preserve the source label.

When to use this tool

Use Coupon Attribution Last Day Flag when checking the stated advertising layout, exposure, boundary or cost convention.

How to use the tool and how it works

  1. Enter conversionDay, expiryDay, inclusive, attributionSource. Use the units and conventions below.
  2. Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
  3. Read withinWindow, source. Inspect withinWindow before interpreting the associated values.

Require whole conversion/expiry day coordinates and nonempty attributionSource. Compare conversion<=expiry or conversion<expiry according to inclusive, and preserve the source label.1

Input fieldMeaning and unitsAccepted input
conversionDayConversion DayRequired. Safe integer.
expiryDayExpiry DayRequired. Safe integer.
inclusiveInclusiveRequired. Boolean.
attributionSourceAttribution SourceRequired. Text; maximum UTF-16 length 8192.
Output fieldInterpretationReturned shape
withinWindowExpiry-side comparison only; there is no opening-boundary check.Required. Boolean.
sourceCaller-supplied source label, not independently authenticated.Required. Text; maximum UTF-16 length 8192.
json
{
  "input": {
    "conversionDay": 10,
    "expiryDay": 10,
    "inclusive": true,
    "attributionSource": "campaign-A"
  },
  "output": {
    "withinWindow": true,
    "source": "campaign-A"
  }
}

Limitations and assumptions

  • There is no opening boundary or attribution model; a passing expiry test does not establish a valid conversion or credit entitlement.
  • Inputs must satisfy both the field types and the cross-field conditions above. Invalid input causes an error; a successful false flag or documented placeholder is a different result.
  • Numeric calculations use binary floating point unless exact decimal-integer arithmetic is explicitly stated. No hidden measurement tolerance or decimal rounding is added; nonfinite or out-of-contract results are rejected. Numeric signed-zero results are exported as zero.

Alternative or Complementary methods

Inspect actual rendered creatives and verified delivery/billing records, and consult applicable platform, advertising and tax requirements for real decisions.

References

  1. Calculation and input contract: advertising/coupon-attribution-last-day-flag — tool.io

Similar or alternative tools

  • Frequency Cap Window Offset

    Divide their exact integer difference using floor semantics, returning numeric window index and a nonnegative offset below windowLength.

  • Ad Frequency Reset Boundary Token

    Return eventTime>=resetTime when equalityInNewPeriod=true; otherwise require strict eventTime>resetTime for newPeriod.