AdControl.AdUnitId Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
public:
property Platform::String ^ AdUnitId { Platform::String ^ get(); void set(Platform::String ^ value); };
winrt::hstring AdUnitId();
void AdUnitId(winrt::hstring value);
public string AdUnitId { get; set; }
var string = adControl.adUnitId;
adControl.adUnitId = string;
Public Property AdUnitId As String
Property Value
The ad unit identifier for this AdControl object.
Remarks
This property can be set only when the AdControl is first initialized. After it is set, this property cannot be modified. If you assign a new value to the AdUnitId property, the assignment will work and the property value will change without throwing an exception. However, after the next ad refresh the ErrorOccurred event will fire indicating that the value cannot be changed.