Millennial Media Android Ad SDK Public Documentation  6.8.2
Public Member Functions | List of all members
AppInfo Class Reference

Public Member Functions

 AppInfo ()
 
AppInfo setSiteId (String siteId)
 
String getSiteId ()
 
AppInfo setMediator (String mediator)
 
String getMediator ()
 
AppInfo setCoppa (boolean compliance)
 
Boolean getCoppa ()
 
boolean isShareAdvertiserIdEnabled ()
 
void setShareAdvertiserIdEnabled (boolean shareAdvertiserIdEnabled)
 
boolean isShareApplicationIdEnabled ()
 
void setShareApplicationIdEnabled (boolean shareApplicationIdEnabled)
 

Detailed Description

Represents information about the application that can be passed along with an ad request to improve ad targeting.

Constructor & Destructor Documentation

◆ AppInfo()

AppInfo ( )

Creates a new AppInfo object.

Member Function Documentation

◆ getCoppa()

Boolean getCoppa ( )

Gets the COPPA (Children’s Online Privacy Protection Act) enabled value for the application.

◆ getMediator()

String getMediator ( )

Gets the mediator for the application.

◆ getSiteId()

String getSiteId ( )

Gets the site ID for the application.

Returns
the site ID for the application

◆ isShareAdvertiserIdEnabled()

boolean isShareAdvertiserIdEnabled ( )

Use this method to determine if sharing the user's advertising ID and opt-out settings with ads has been enabled.

Returns
true if shareAdvertiserIdEnabled is enabled and the user's advertising ID and opt-out settings can be shared with ads; false otherwise.

◆ isShareApplicationIdEnabled()

boolean isShareApplicationIdEnabled ( )

Use this method to determine if sharing your application ID with ads has been enabled.

Returns
true if isShareApplicationIdEnabled is enabled and your application ID can be shared with ads; false otherwise.

◆ setCoppa()

AppInfo setCoppa ( boolean  compliance)

Set to true to convey to ad buyers that COPPA (Children's Online Privacy Protection Act) restrictions need to be enforced for requests from this user.

Parameters
complianceWhether COPPA compliance is enforced.
Returns
AppInfo

◆ setMediator()

AppInfo setMediator ( String  mediator)

Sets the mediator for the application.

Parameters
mediatorshould include both the adapter name and version when mediating to the MM SDK
Returns
AppInfo

◆ setShareAdvertiserIdEnabled()

void setShareAdvertiserIdEnabled ( boolean  shareAdvertiserIdEnabled)

Set to true to share advertising IDs and opt-out settings with ads for your app. Sharing the advertising ID and opt-out settings can improve the ad experience for your users.

Parameters
shareAdvertiserIdEnabledtrue to share advertising IDs and opt-out settings with ads; false otherwise.

◆ setShareApplicationIdEnabled()

void setShareApplicationIdEnabled ( boolean  shareApplicationIdEnabled)

Set to true to share your application ID with ads. Sharing the application ID can improve the ad experience for your users.

Parameters
shareApplicationIdEnabledtrue to share you application ID with ads; false otherwise.

◆ setSiteId()

AppInfo setSiteId ( String  siteId)

Sets the site ID for the application.

Parameters
siteIdsite identifier
Returns
AppInfo