AdControl.ApplicationId property
Gets or sets the application ID for this AdControl object.
Syntax
public string ApplicationId { get; set; }
Property value
Type: System.String.
The application ID for this AdControl object.
Exceptions
| Exception | Condition |
|---|---|
|
If more than one ApplicationId value is used in different AdControl objects that are in the app, some controls will not receive ads and will raise an ErrorOccurred event. |
Remarks
The application ID is available on the Monetize with ads page in the Windows Dev Center dashboard.
This value must be the same for all AdControl instances within the app.
Requirements
| Minimum supported phone | Windows Phone 8 Silverlight |
|---|---|
| Namespace | Microsoft.Advertising.Mobile.UI |
| Assembly | Microsoft.Advertising.Mobile.UI.dll |
Show: