Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
CurrentAppSimulator.GetAppPurchaseCampaignIdAsync Method
Definition
- Namespace:
- Windows.ApplicationModel.Store
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.
Retrieves the promotion campaign ID for the current app.
public:
static IAsyncOperation<Platform::String ^> ^ GetAppPurchaseCampaignIdAsync();
/// [Windows.Foundation.Metadata.RemoteAsync]
static IAsyncOperation<winrt::hstring> GetAppPurchaseCampaignIdAsync();
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<string> GetAppPurchaseCampaignIdAsync();
function getAppPurchaseCampaignIdAsync()
Public Shared Function GetAppPurchaseCampaignIdAsync () As IAsyncOperation(Of String)
Returns
The advertising campaign ID for your app.
- Attributes
Remarks
Starting in Windows 10, you can seed the installation URL for your app with an ID that represents a custom promotion campaign. This enables you to publicize the installation URL in different locations and use the campaign ID to determine which location the customer clicked on the installation URL. Use the GetAppPurchaseCampaignIdAsync method to retrieve the campaign ID for the current app. For more information about custom app promotion campaigns, see Create a custom app promotion campaign.
Applies to
See also
Feedback
Was this page helpful?
