TargetingError

@objc
public enum TargetingError : Int, Error

TargetingError is an error that can occur when you try to activate a targeting rule using TargetingController.activateTargetingRule(targetingRule:).

  • The iAdvize SDK is not activated. Call activate(projectId:authenticationOption:gdprOption:completion:) first.

    Declaration

    Swift

    case sdkNotActivated
  • The request failed because of a network error. You must retry the targeting rule activation later.

    Declaration

    Swift

    case networkError
  • The request failed because of a technical error. You must retry the targeting rule activation later.

    Declaration

    Swift

    case otherError