TargetRule Model

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 http://tera-wurfl.com/explore/. Looking at some of the preset rules defined by HasOffers can provide additional guidance on how to use each field.

NameTypeDescription
categoryNullable String Only applies to rules having a "source" of "preset"; used to categorize the HasOffers rules
descriptionNullable String Description for the rule
idIntegerID of unique, auto-generated object for this rule
This parameter is non-writable
nameString Name given to the rule
req_affiliate_info1Nullable String A regular expression to match against the "affiliate_info" / "affiliate_info1" parameter
req_affiliate_info2Nullable String A regular expression to match against the "affiliate_info2" parameter
req_affiliate_info3Nullable String A regular expression to match against the "affiliate_info3" parameter
req_affiliate_info4Nullable String A regular expression to match against the "affiliate_info4" parameter
req_affiliate_info5Nullable String A regular expression to match against the "affiliate_info5" parameter
req_browser_nameNullable String A regular expression to match against the requesting browser's name
req_browser_versionNullable String A regular expression to match against the requesting browser's version
req_connection_speedNullable String A regular expression to match against the connection speed of the request
req_device_brandNullable String A regular expression to match against the device brand making the request
req_device_marketing_nameNullable String A regular expression to match against the marketing name of the device making the request
req_device_modelNullable String A regular expression to match against the device model making the request
req_device_osNullable String A regular expression to match against the device operating system making the request
req_device_os_versionNullable String A regular expression to match against the device operating system version making the request
req_languageNullable String A regular expression to match against the language of the client making the request
req_mobile_carrierNullable String A regular expression to match against the mobile carrier that the client is using to make the request
req_user_agentNullable String A regular expression to match against the user agent making the request
sourceString 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
Have a Question? Please contact support@tune.com for technical support.