createLinkRoutingRule
inline suspend fun RtbFabricClient.createLinkRoutingRule(crossinline block: CreateLinkRoutingRuleRequest.Builder.() -> Unit): CreateLinkRoutingRuleResponse
Creates a routing rule for a link.
Routing rules use priority-based evaluation where lower priority numbers are evaluated first. Each rule specifies conditions that must all match for the rule to apply.
Samples
// Create a routing rule with host header and path prefix conditions
val resp = rtbFabricClient.createLinkRoutingRule {
gatewayId = "rtb-gw-12345678"
linkId = "link-87654321"
priority = 10
conditions = RuleCondition {
hostHeader = "api.customer.com"
pathPrefix = "/openrtb/"
}
clientToken = "550e8400-e29b-41d4-a716-446655440000"
}Content copied to clipboard