Lists existing routing rules.
Parameters
Name
optional
Name
optionalName of the routing rule.
Condition
optional
Condition
optionalWhat triggers the routing rule.
Possible enum values | |
---|---|
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. |
Action
optional
Action
optionalWhat traffic will experience if the routing rule is triggered.
Possible enum values | |
---|---|
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. |
Rank
optional
Rank
optionalThis determines the specific routing rule's rank in relation to others that have the same conditions.
Possible enum values | |
---|---|
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
optional
State
optionalWhat state of use the routing rule is in.
Possible enum values | |
---|---|
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. |
More parameters
Click to view...
StartDateBefore
optional
StartDateBefore
optionalReturn routing rules that start before a specific date and time. See ISO 8601.
StartDateAfter
optional
StartDateAfter
optionalReturn routing rules that start after a specific date and time. See ISO 8601.
EndDateBefore
optional
EndDateBefore
optionalReturn routing rules that end before a specific date and time. See ISO 8601.
EndDateAfter
optional
EndDateAfter
optionalReturn routing rules that end after a specific date and time. See ISO 8601.
DateLastUpdateBefore
optional
DateLastUpdateBefore
optionalReturn routing rules that were updated before a specific date and time. See ISO 8601.
DateLastUpdatedAfter
optional
DateLastUpdatedAfter
optionalReturn routing rules that were last updated after a specific date and time. See ISO 8601.
DateCreatedBefore
optional
DateCreatedBefore
optionalReturn routing rules that were created before a specific date and time. See ISO 8601.
DateCreatedAfter
optional
DateCreatedAfter
optionalReturn routing rules that were created after a specific date and time. See ISO 8601.
CreatedBy
optional
CreatedBy
optionalReturn routing rules that were created by a specific account user.
LastUpdatedBy
optional
LastUpdatedBy
optionalReturn routing rules that were last updated by a specific account user.
Source
optional
Source
optionalFrom where the routing rule was created.
Possible enum values | |
---|---|
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. |
Returns
Returns an array of routing rules objects up to a limit dictated by @pagesize
. Each entry in the array is a separate routing rules object. If no routing rules objects meet the criteria, the resulting array will be empty. This request should never return an error.
Example Request
curl 'https://api.impact.com/Advertisers/<AccountSID>/Campaigns/1000/BlockRedirectRules' \
-X GET \
-u '<AccountSID>:<AuthToken>' \
-H 'Accept: application/json' \
-H 'Content-Type: application/x-www-form-urlencoded' \
-d 'Condition=Country' \
-d 'Action=REDIRECT' \
-d 'Source=GENERIC' \
-d 'Rank=HIGH' \
-d 'State=RUNNING' \
-G
Example Response
{
"@page": "1",
...
"BlockRedirectRules": [
{
"Id": "50000",
"Name": "Redirect 4",
"Condition": [
{
"SubConditions": [
{
"Variable": "COUNTRY",
"Operator": "IN",
"Values": [
"US"
]
}
]
}
],
"Action": "REDIRECT",
"RedirectUrl": "http://impact.com",
"Source": "GENERIC",
"Rank": "HIGH",
"State": "RUNNING",
"DateCreated": "2019-10-28T17:53:01-04:00",
"DateLastUpdated": "2019-10-28T17:53:01-04:00",
"CreatedBy": "ACME Corp",
"LastUpdatedBy": "ACME Corp",
"Uri": "/Advertisers/<AccountSID>/Programs/1000/BlockRedirectRules/50000"
},
...
]
}