CurrentAppSimulator.GetAppPurchaseCampaignIdAsync Méthode

Définition

Récupère l’ID de campagne de promotion pour l’application actuelle.

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)

Retours

IAsyncOperation<String>

IAsyncOperation<Platform::String>

IAsyncOperation<winrt::hstring>

ID de campagne publicitaire pour votre application.

Attributs

Remarques

À partir de Windows 10, vous pouvez amorcer l’URL d’installation de votre application avec un ID qui représente une campagne de promotion personnalisée. Cela vous permet de faire connaître l’URL d’installation à différents emplacements et d’utiliser l’ID de campagne pour déterminer l’emplacement où le client a cliqué sur l’URL d’installation. Utilisez la méthode GetAppPurchaseCampaignIdAsync pour récupérer l’ID de campagne de l’application actuelle. Pour plus d’informations sur les campagnes de promotion d’applications personnalisées, consultez Créer une campagne de promotion d’application personnalisée.

S’applique à

Voir aussi