Millennial Media Android Ad SDK Public Documentation  6.6.1
Public Member Functions | List of all members
NativeAd.NativeAdMetadata Class Reference

Inherits AdPlacementMetadata< MetadataType >.

Public Member Functions

MetadataType setSupportedOrientations (String orientations)
 
List getSupportedOrientations ()
 
MetadataType setKeywords (String keywords)
 
String getKeywords ()
 
MetadataType setImpressionGroup (String impressionGroup)
 
String getImpressionGroup ()
 
MetadataType setCustomTargeting (String customTargetKey, String customTargetValue)
 
String getCustomTargeting (String customTargetKey)
 

Detailed Description

Specifies metadata for a NativeAd request. NativeAdMetadata contains targeting information used when loading new ad content. Ad requests are created using NativeAdMetadata

Member Function Documentation

◆ getCustomTargeting()

String getCustomTargeting ( String  customTargetKey)
inherited

Get the custom target value assigned to the given key.

Parameters
customTargetKeyThe custom targeting key to be retrieved
Returns
The custom target value assigned to the provided key

◆ getImpressionGroup()

String getImpressionGroup ( )
inherited

Get the impression group of the ad request

Returns
Impression group ID

◆ getKeywords()

String getKeywords ( )
inherited

Get the keywords of the ad request

Returns
Comma-delimited string of keywords

◆ getSupportedOrientations()

List getSupportedOrientations ( )
inherited

Get the supported orientations of the ad request

Returns
List of orientations

◆ setCustomTargeting()

MetadataType setCustomTargeting ( String  customTargetKey,
String  customTargetValue 
)
inherited

Set custom targeting key value pairs. These values are passed on each ad request.

Parameters
customTargetKeyThe custom targeting key
customTargetValueThe custom targeting value
Returns
InlineAd.InlineAdMetadata, InterstitialAd.InterstitialAdMetadata, or NativeAd.NativeAdMetadata

◆ setImpressionGroup()

MetadataType setImpressionGroup ( String  impressionGroup)
inherited

Set the impression group for the ad request

Parameters
impressionGroupImpression group ID for sites that are enabled to group traffic in this way.
Returns
InlineAd.InlineAdMetadata, InterstitialAd.InterstitialAdMetadata, or NativeAd.NativeAdMetadata

◆ setKeywords()

MetadataType setKeywords ( String  keywords)
inherited

Set the keywords of the ad request

Parameters
keywordscomma-delimited string of keywords
Returns
InlineAd.InlineAdMetadata, InterstitialAd.InterstitialAdMetadata, or NativeAd.NativeAdMetadata

◆ setSupportedOrientations()

MetadataType setSupportedOrientations ( String  orientations)
inherited

Set the supported orientations of the ad request

Parameters
orientationscomma-delimited string of supported orientations. Possible values include "portrait" and "landscape"
Returns
InlineAd.InlineAdMetadata, InterstitialAd.InterstitialAdMetadata, or NativeAd.NativeAdMetadata