Millennial Media Android Ad SDK Public Documentation  6.4.0
Public Member Functions | List of all members
InlineAd.InlineAdMetadata Class Reference

Inherits AdPlacementMetadata< MetadataType >.

Public Member Functions

InlineAdMetadata setAdSize (AdSize adSize)
 
AdSize getAdSize ()
 
MetadataType setSupportedOrientations (String orientations)
 
List getSupportedOrientations ()
 
MetadataType setKeywords (String keywords)
 
String getKeywords ()
 
MetadataType setImpressionGroup (String impressionGroup)
 
String getImpressionGroup ()
 

Detailed Description

Specifies metadata for an InlineAd request. InlineAdMetadata contains targeting information used when loading new ad content. Ad requests are created using InlineAdMetadata.

Member Function Documentation

◆ getAdSize()

AdSize getAdSize ( )

Get the size of the ad to be loaded and displayed.

Returns
the AdSize to use when requesting a new ad

◆ 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

◆ setAdSize()

InlineAdMetadata setAdSize ( AdSize  adSize)

Sets the size of the ad to be loaded and displayed.

Parameters
adSizethe AdSize to use when requesting a new ad
Returns
InlineAdMetadata

◆ 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