Using User Interest
User Interest Listener
When receiving GFPNativeAd, Delegate could be linked to learning when the user expressed interest (1-second exposure of 100% of advertising section by SDK definition) and when the interest disappeared (exposure of 0% of advertising section by SDK definition).
The usage method is as follows:
- Swift
- Objective-C
nativeAd.userInterestDelegate = self
nativeAd.userInterestDelegate = self;
- Swift
- Objective-C
func ad(_ ad: NSObject!, didChangeUserInterest userInterest: Bool) {
if userInterest == true {
// 1-second exposure of 100% of advertising section by SDK definition
} else {
// exposure of 0% of advertising section by SDK definition
}
}
- (void)ad:(NSObject *)ad didChangeUserInterest:(BOOL)userInterest {
if (userInterest) {
// 1-second exposure of 100% of advertising section by SDK definition
} else {
// exposure of 0% of advertising section by SDK definition
}
}