Share via


AdControl.AddAdTag(String, String) Method

Definition

Adds an ad tag to the AdControl.

public:
 void AddAdTag(Platform::String ^ tagName, Platform::String ^ tagValue);
void AddAdTag(winrt::hstring const& tagName, winrt::hstring const& tagValue);
public void AddAdTag(string tagName, string tagValue);
function addAdTag(tagName, tagValue)
Public Sub AddAdTag (tagName As String, tagValue As String)

Parameters

tagName
String

Platform::String

winrt::hstring

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

tagValue
String

Platform::String

winrt::hstring

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.

Applies to