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 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.

NameTypeDescription
categoryNullable StringOnly applies to rules having a "source" of "preset"; used to categorize the HasOffers rules
descriptionNullable StringDescription for the rule
idIntegerID of unique, auto-generated object for this rule
This parameter is non-writable
nameStringName given to the rule
req_affiliate_info1Nullable StringA regular expression to match against the "affiliate_info" / "affiliate_info1" parameter
req_affiliate_info2Nullable StringA regular expression to match against the "affiliate_info2" parameter
req_affiliate_info3Nullable StringA regular expression to match against the "affiliate_info3" parameter
req_affiliate_info4Nullable StringA regular expression to match against the "affiliate_info4" parameter
req_affiliate_info5Nullable StringA regular expression to match against the "affiliate_info5" parameter
req_browser_nameNullable StringA regular expression to match against the requesting browser's name
req_browser_versionNullable StringA regular expression to match against the requesting browser's version
req_connection_speedNullable StringA regular expression to match against the connection speed of the request
req_device_brandNullable StringA regular expression to match against the device brand making the request
req_device_marketing_nameNullable StringA regular expression to match against the marketing name of the device making the request
req_device_modelNullable StringA regular expression to match against the device model making the request
req_device_osNullable StringA regular expression to match against the device operating system making the request
req_device_os_versionNullable StringA regular expression to match against the device operating system version making the request
req_languageNullable StringA regular expression to match against the language of the client making the request
req_mobile_carrierNullable StringA regular expression to match against the mobile carrier that the client is using to make the request
req_user_agentNullable StringA regular expression to match against the user agent making the request
sourceStringIdentifies 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 [email protected] for technical support.