The routing rules object holds information for the routing rules you have created. You can retrieve a routing rule, as well as list all routing rules within a program.
Attributes
Id
string
Id
stringUnique identifier for the object referred to as the Routing Rules Item Object.
Name
string
Name
stringName of the routing rule.
Condition
array
Condition
arrayArray of the various sub-conditions (which are listed as separate objects) that will trigger the routing rule.
View child attributes
SubConditions
array
SubConditions
arrayArray of objects that contain details (which are organized as separate objects) for each sub-condition.
View child attributes
Variable
enum
Variable
enumWhat the sub-condition looks for.
Possible enum arguments | |
---|---|
IP_ADDRESS | IP Address registered to a device. |
SHARED_ID | A partner-controlled query string parameter used in reporting. |
COUNTRY | Which country traffic is sourced from. |
REGION | Which geographical region traffic is sourced from. |
AD_STATUS | What state of use the associated ad is in. |
SUB_ID1 | A partner-controlled query string parameter used in reporting. |
SUB_ID2 | A partner-controlled query string parameter used in reporting. |
SUB_ID3 | A partner-controlled query string parameter used in reporting. |
MP_ID | impact.com's Id for the associated partner. |
DEVICE_TYPE | What type of device the customer used to perform the step. |
REF_URL | Url of the website that referred the traffic. |
LANDING_PAGE | Url of the website traffic is directed to. |
SKU | An Id for the subject of the ad. This is usually assigned in the product catalog. |
AD_ID | impact.com's Id for the associated ad. |
CURRENT_DATE | Date and time that traffic was rerouted. See ISO-8601 |
RANDOM | Routing rule will randomly grab traffic to be rerouted. |
MOBILE_FALLBACK | If an ad has mobile fallback configured, this routing rule can request to reroute them to their respective app store to download an app. |
Operator
enum
Operator
enumHow the Variable
is applied.
Possible enum arguments | |
---|---|
CONTAINS | The argument is a substring of what's in the `variable`. This argument is case-sensitive. |
STARTS_WITH | The variable begins with the argument. This argument is case-sensitive. |
ENDS_WITH | The variable ends with the argument. This argument is case-sensitive. |
EQUALS | The variable is exactly equal to the argument. This argument is case-sensitive.. |
MATCHES | This argument is only available for the Landing Page URL. The argument expression with wildcards (`*`) and named placeholders (`{name}`) that are pattern-matched against the variable. If a match is found, the corresponding placeholders are available as symbols for the matched part of the value to construct a replacement value. |
IP_RANGE |
The argument is a comma-separated list of IP ranges, specified as any combination of:
|
IN | The variable equals either of the values in the comma-separated list of the argument. This argument is case-sensitive. |
NOT_CONTAINS | The variable will not appear in the argument. |
NOT_STARTS_WITH | The variable does not begin with the argument. This argument is case-sensitive. |
NOT_ENDS_WITH | The variable does not end with the argument. This argument is case-sensitive. |
NOT_EQUALS | The variable does not exactly match the argument. This argument is case-sensitive. |
NOT_IN | The variable is not found in the argument. |
REGEX | The argument is a valid Regular expression to be tested against the variable. Learn more about regular expression. Test a regular expression. |
LT | The variable is less than the argument when the variable is numeric. Before the argument, when the variable is CURRENT_DATE the argument must be formatted as an ISO 8601 datetime string yyyy-MM-dd'T'HH:mm:ssZZ where:
|
GT | The variable is greater than the argument when the variable is numeric. After the argument, when the variable is CURRENT_DATE the argument must be formatted as an ISO 8601. See LT for the format of the date string. |
Values
array
Values
arrayAn array of strings that the Variable
will look for.
Action
enum
Action
enumWhat traffic will experience if the routing rule is triggered.
Possible enum arguments | |
---|---|
REDIRECT | Traffic will be redirected to another web page. |
BLOCK | Traffic will be blocked from viewing the web page. |
INTERSTITIAL | An interstitial screen will appear before traffic can view the web page. |
RedirectUrl
string
RedirectUrl
stringWhich web page traffic will be sent to if the routing rule is triggered.
Interstitial
object
Interstitial
objectDetails about the screen that will load when traffic is blocked.
View child attributes
HeaderText
string
HeaderText
stringPrimary text that will appear on the interstitial page or page blocker.
BodyText
string
BodyText
stringSecondary text that will appear on the interstitial page or page blocker.
RequireUserAcknowledgement
boolean
RequireUserAcknowledgement
booleanWhether the interstitial needs traffic to interact with it before they can continue being routed.
View child attributes
ButtonText
string
ButtonText
stringWhat the button on the interstitial will say. Will only appear if RequreUserAcknowledgement: true
.
ButtonColor
string
ButtonColor
stringHex code for the color of the button that traffic would interact with. Will only appear if RequreUserAcknowledgement: true
.
RequireUserInput
boolean
RequireUserInput
booleanWhether traffic needs to have a certain parameter passed in their browser to clear the redirect interstitial.
View child attributes
UserInputs
array
UserInputs
arrayArray of objects that contain details for each accepted parameter to bypass the interstitial.
View child attributes
Variable
enum
Variable
enumWhat parameter needs to be passed for the interstitial to clear.
Possible enum arguments | |
---|---|
SHARED_ID | The interstitial will look at the traffic's Shared Id value. Learn more about Shared Ids. |
SUB_ID1 | The interstitial will look at the traffic's Sub Id1 value |
SUB_ID2 | The interstitial will look at the traffic's Sub Id2 value |
SUB_ID3 | The interstitial will look at the traffic's Sub Id3 value |
PARAM1 | The interstitial will look at the traffic's Param parameter value. Learn more about Shared Ids. |
PARAM2 | The interstitial will look at the traffic's Param parameter value. Learn more about Shared Ids. |
PARAM3 | The interstitial will look at the traffic's Param parameter value. Learn more about Shared Ids. |
CUSTOMER_ID | The interstitial will look at the traffic's Customer Id value. |
DisplayValue
string
DisplayValue
stringWhat Variable
needs to be filled with for the interstitial to clear. This is the UI-friendly version of the parameter that needs to be passed—it may not necessarily be the same as what is passed to impact.com's database.
RegularExpression
string
RegularExpression
stringWhat is passed in Variable
must be a regex match of this string. Learn more about regular expression. Test a regular expression.
ErrorMessage
string
ErrorMessage
stringIf what is passed in Variable
is not a regex match of RegularExpression
, this error message will appear on the interstitial.
IncludeSkipOption
boolean
IncludeSkipOption
booleanWhether traffic can move through the interstitial before a minimum amount of time has passed on the interstitial screen.
ShowPageAtLeastOnce
boolean
ShowPageAtLeastOnce
booleanWhether traffic will need to see the interstitial screen at least once before they can be redirected.
CoBranded
boolean
CoBranded
booleanWhether the interstitial is cobranded with a specific partner (e.g., uses a partner's logo on the screen).
CustomizeCss
boolean
CustomizeCss
booleanWhether a custom CSS file is used on the interstitial screen.
CustomCss
string
CustomCss
stringIf CustomizeCSS: true
, the CSS file will appear.
Rank
enum
Rank
enumWhat priority level a routing rule has in relation to others. If more than one routing rule has the same Rank
, the one with the lower Id
will take priority.
Possible enum arguments | |
---|---|
HIGH | This routing rule has a higher priority than other routing rules. |
MEDIUM | This routing rule has average priority in relation to other routing rules. |
LOW | This routing rule has a lower priority than other routing rules. |
State
enum
State
enumWhat state of use the routing rule is in.
Possible enum arguments | |
---|---|
RUNNING | Routing rule is currently active. |
PAUSED | Routing rule is not currently redirecting or blocking traffic. |
ENDED | The scheduled end date for the routing rule has passed. |
ARCHIVED | Routing rule was deactivated. To reactivate a routing rule, use the impact.com web app. |
Uri
string
Uri
stringA Uri that directs to one specific routing rule.
More attributes
Click to view...
StartDate
datetime
StartDate
datetimeIf the routing rule is scheduled for a specific time frame, this will be the start date and time of the routing rule.
EndDate
datetime
EndDate
datetimeIf the routing rule is scheduled for a specific time frame, this will be the end date and time of the routing rule.
Source
enum
Source
enumFrom where the routing rule was created.
Possible enum arguments | |
---|---|
GENERIC | Routing rule was created either with the create a routing rule endpoint or on the Blocking and Redirect Technical Settings screen. |
AD | Routing rule was created when its associated ad was created. |
COMPLIANCE | Routing rule was created as the result of a Compliance violation. |
TASK | Routing rule was created from the web app's Task Management system. |
DateCreated
datetime
DateCreated
datetimeDate and time the routing rule was first created. See ISO 8601.
DateLastUpdated
datetime
DateLastUpdated
datetimeDate and time the routing rule was last updated. See ISO 8601.
CreatedBy
string
CreatedBy
stringWhich account user created the routing rule.
LastUpdatedBy
string
LastUpdatedBy
stringWhich account user last updated the routing rule.
{
"Id": "4000",
"Name": "Redirect W/ Interstitial",
"Condition": [
{
"SubConditions": [
{
"Variable": "COUNTRY",
"Operator": "IN",
"Values": [
"US"
],
...
},
...
]
}
],
"Action": "REDIRECT",
"RedirectUrl": "https://impact.com",
"Interstitial": {
"HeaderText": "This is header text.",
"RequireUserAcknowledgement": true,
"ButtonText": "Continue",
"ButtonColor": "00a618",
"RequireUserInput": true,
"UserInputs": [
{
"Variable": "SHARED_ID",
"DisplayValue": "DISPLAY",
"RegularExpression": "REGEX",
"ErrorMessage": "This is the invalid input message."
},
...
],
"IncludeSkipOption": true,
"ShowPageAtLeastOnce": true,
"CoBranded": true,
"CustomizeCss": true,
"CustomCss": "{A custom css file.}"
},
"StartDate": "2021-04-13T00:00:00-07:00",
"EndDate": "2021-05-13T00:00:00-07:00",
"Source": "GENERIC",
"Rank": "HIGH",
"State": "PAUSED",
"DateCreated": "2021-03-30T14:56:10-07:00",
"DateLastUpdated": "2021-03-30T14:56:10-07:00",
"CreatedBy": "Brand Account User",
"LastUpdatedBy": "Brand Account User",
"Uri": "/Advertisers/<AccountSID>/Programs/1000/BlockRedirectRules"
}
{
"Id": "67890",
"Name": "Block 47",
"Condition": [
{
"SubConditions": [
{
"Variable": "IP_ADDRESS",
"Operator": "EQUALS",
"Values": [
"192.168.1.101"
]
}
]
}
],
"Action": "BLOCK",
"Interstitial": {
"HeaderText": "This is header text.",
"BodyText": "This is body text."
},
"StartDate": "2021-03-04T00:00:00-05:00",
"EndDate": "2021-03-05T00:00:00-05:00",
"Source": "GENERIC",
"Rank": "LOW",
"State": "PAUSED",
"DateCreated": "2021-03-03T16:11:24-05:00",
"DateLastUpdated": "2021-03-03T16:11:24-05:00",
"CreatedBy": "ACME Corp",
"LastUpdatedBy": "ACME Corp",
"Uri": "/Advertisers/<AccountSID>/Programs/1000/BlockRedirectRules/67890"
}
{
"Id": "5000",
"Name": "App interstitial 14",
"Condition": [
{
"SubConditions": [
{
"Variable": "IP_ADDRESS",
"Operator": "EQUALS",
"Values": [
"192.168.1.101"
]
}
]
}
],
"Action": "INTERSTITIAL",
"Interstitial": {
"HeaderText": "This is header text.",
"BodyText": "This is body text.",
"RequireUserAcknowledgement": false,
"CoBranded": false,
"CustomizeCss": false
},
"StartDate": "2021-03-04T00:00:00-05:00",
"EndDate": "2021-03-05T00:00:00-05:00",
"Source": "GENERIC",
"Rank": "HIGH",
"State": "PAUSED",
"DateCreated": "2021-03-03T16:10:53-05:00",
"DateLastUpdated": "2021-03-03T16:10:53-05:00",
"CreatedBy": "ACME Corp",
"LastUpdatedBy": "ACME Corp",
"Uri": "/Advertisers/<AccountSID>/Programs/1000/BlockRedirectRules/50000"
}