AddAdTag | addAdTag method

InterstitialAd.AddAdTag | addAdTag method

Adds an ad tag to the InterstitialAd control.

Syntax


public:
void AddAdTag(
  String^ tagName, 
  String^ tagValue
)

Parameters

tagName

Type: String [JavaScript] | System.String [.NET] | Platform::String [C++]

The name of the tag. The maximum is 16 characters.

tagValue

Type: String [JavaScript] | System.String [.NET] | Platform::String [C++]

The value of the tag. The maximum is 128 characters.

Remarks

The maximum number of tags per control is 10. An ErrorOccurred event is raised if the maximum number of tags is exceeded or if the maximum characters for either parameter is exceeded.

Requirements

Minimum supported client

Windows 8.1

Minimum supported server

None supported

Minimum supported phone

Windows Phone 8.1

Namespace

Microsoft.Advertising.WinRT.UI
Microsoft::Advertising::WinRT::UI [C++]

Metadata

Microsoft.Advertising.winmd

See also

InterstitialAd
RemoveAdTag

 

 

Show:
© 2017 Microsoft