Target Rules are used to identify requests that have certain specific characteristics. For one or more of the fields prefixed with "req_", a regular expression is stored that is executed against the relevant fields from the request. Any regex field having a non-NULL value is ANDed together. Regular expressions are executed in case-insensitive mode. For example, if "req_device_os" is set to "^Android$" and "req_device_os_version" is set to "^4.0" then the rule would match requests made by Android device versions with Ice Cream Sandwich (versions 4.0 – 4.0.4). For more information or to find out how to match a particular device, visit https://tera-wurfl.com/explore/. Looking at some of the preset rules defined by HasOffers can provide additional guidance on how to use each field.
Name | Type | Description |
---|---|---|
category | Nullable String | Only applies to rules having a "source" of "preset"; used to categorize the HasOffers rules |
description | Nullable String | Description for the rule |
id | Integer | ID of unique, auto-generated object for this rule This parameter is non-writable |
name | String | Name given to the rule |
req_affiliate_info1 | Nullable String | A regular expression to match against the "affiliate_info" / "affiliate_info1" parameter |
req_affiliate_info2 | Nullable String | A regular expression to match against the "affiliate_info2" parameter |
req_affiliate_info3 | Nullable String | A regular expression to match against the "affiliate_info3" parameter |
req_affiliate_info4 | Nullable String | A regular expression to match against the "affiliate_info4" parameter |
req_affiliate_info5 | Nullable String | A regular expression to match against the "affiliate_info5" parameter |
req_browser_name | Nullable String | A regular expression to match against the requesting browser's name |
req_browser_version | Nullable String | A regular expression to match against the requesting browser's version |
req_connection_speed | Nullable String | A regular expression to match against the connection speed of the request |
req_device_brand | Nullable String | A regular expression to match against the device brand making the request |
req_device_marketing_name | Nullable String | A regular expression to match against the marketing name of the device making the request |
req_device_model | Nullable String | A regular expression to match against the device model making the request |
req_device_os | Nullable String | A regular expression to match against the device operating system making the request |
req_device_os_version | Nullable String | A regular expression to match against the device operating system version making the request |
req_language | Nullable String | A regular expression to match against the language of the client making the request |
req_mobile_carrier | Nullable String | A regular expression to match against the mobile carrier that the client is using to make the request |
req_user_agent | Nullable String | A regular expression to match against the user agent making the request |
source | String | Identifies whether this is a preset/HasOffers rule or one created by the brand/Network. Only "brand" source rules can be modified as the "preset" ones are managed by HasOffers.Show Supported Values |