ViewableImpression | Button SDK for Android v7.0.0

ViewableImpression

Class Overview

What is a viewable impression?

A viewable impression is one that has met the following criteria:

See Also

Summary

Public Constructors
ViewableImpression( String url, String offerId, CreativeType creativeType, VisibleRateType visibleRateType, float visibleRate)
Creates a Viewable Impression instance to be tracked.
Public Methods
boolean
CreativeType
String
String
float
VisibleRateType
int

Public Constructors

public ViewableImpression( String url, String offerId, CreativeType creativeType, VisibleRateType visibleRateType, float visibleRate)

Creates a Viewable Impression instance to be tracked.

Parameters
Parameter Description
url The url of the served offer.
offerId The Button-provided value that identifies the rate of the served offer.
creativeType An enum value representing the creative type of the offer.
visibleRateType The visibleRateType of the served offer.
visibleRate The visibleRate of the served offer.

Public Methods

public boolean equals( Object o)

public CreativeTypegetCreativeType()

An enum value representing the creative type of the offer associated with this viewable impression. Default is OTHER

Returns

public StringgetOfferId()

The optional Button-provided value that identifies the rate of the served offer.

Returns

public StringgetUrl()

The URL that is associated with the offer.

Returns

public float getVisibleRate()

The rate visible to the user. If the VisibleRateType is FIXED, this value represents the amount in the currency of the offer. Otherwise, if it is PERCENT, this will be a value ranging from 0.0 to 100.0.

Returns

public VisibleRateTypegetVisibleRateType()

An enum value representing type of the visibleRate for the offer that is displayed to the user, either PERCENT or FIXED. Default is UNKNOWN

Returns

public int hashCode()