Lista de métodos de Target que proporciona la biblioteca de la Plataforma universal de Windows.
Actualmente, el SDK admite varias soluciones de Adobe Experience Cloud, incluidas Analytics, Target y Audience Manager.
Métricas del ciclo vital se envían como parámetros a cada carga mbox.
Cuando consume winmd
a partir de winJS (JavaScript), la primera letra de todos los métodos se hace minúscula automáticamente.
property Platform::String ^name;
property Platform::String ^defaultContent;
property Windows::Foundation::Collections::IMap<Platform::String^, Platform::Object^> ^parameters;
Esta información le ayuda a establecer claves para los parámetros personalizados.
static property Platform::String ^TARGET_PARAMETER_ORDER_ID {
Platform::String ^get() { return L"orderId"; }
}
static property Platform::String ^TARGET_PARAMETER_ORDER_TOTAL {
Platform::String ^get() { return L"orderTotal"; }
}
static property Platform::String ^TARGET_PARAMETER_PRODUCT_PURCHASE_ID {
Platform::String ^get() { return L"productPurchasedId"; }
}
static property Platform::String ^TARGET_PARAMETER_CATEGORY_ID {
Platform::String ^get() { return L"categoryId"; }
}
static property Platform::String ^TARGET_PARAMETER_MBOX_3RDPARTY_ID {
Platform::String ^get() { return L"mbox3rdPartyId"; }
}
static property Platform::String ^TARGET_PARAMETER_MBOX_PAGE_VALUE {
Platform::String ^get() { return L"mboxPageValue"; }
}
static property Platform::String ^TARGET_PARAMETER_MBOX_PC {
Platform::String ^get() { return L"mboxPC"; }
}
static property Platform::String ^TARGET_PARAMETER_MBOX_SESSION_ID {
Platform::String ^get() { return L"mboxSession"; }
}
static property Platform::String ^TARGET_PARAMETER_MBOX_HOST {
Platform::String ^get() { return L"mboxHost"; }
}
LoadRequest (winJS: loadRequest)
Envíos request
al servidor Target configurado y devuelve el valor de cadena de la oferta generada en un bloque callback
.
Esta es la sintaxis para este método:
static Windows::Foundation::IAsyncOperation<Platform::String ^> ^LoadRequest(TargetLocationRequest ^request);
Este es un ejemplo de código para este método:
var fADB = ADBMobile;
ADB.Target.loadRequest(heroBannerRequest).then(function(content){
//do something with content returned from target server
});
CreateRequest (winJS: createRequest)
Crea un TargetLocationRequest
con los parámetros dados.
Esta es la sintaxis para este método:
static TargetLocationRequest ^CreateRequest(Platform::String ^name, Platform::String ^defaultContent,Windows::Foundation::Collections::IMap<Platform::String^,Platform::Object^> ^parameters);
Este es un ejemplo de código para este método:
var ADB = ADBMobile;
var heroBannerRequest = ADB.Target.createRequest("heroBanner","default.png", null);
CreateOrder ConfirmRequest (winJS: createOrder ConfirmRequest)
Crea un TargetLocationRequest
con los parámetros dados.
Esta es la sintaxis para este método:
static TargetLocationRequest ^CreateOrderConfirmRequest(Platform::String ^name, Platform::String ^orderId,Platform::String ^orderTotal,Platform::String ^productPurchasedId,Windows::Foundation::Collections::IMap<Platform::String^,Platform::Object^> ^parameters);
Este es un ejemplo de código para este método:
varADB = ADBMobile;
var orderConfirm = ADB.Target.createOrderConfirmRequest("orderConfirm","order","47.88","3722",null);
ClearCookies (winJS: clearCookies)
Borra las cookies de Target para la aplicación en el dispositivo actual.
Esta es la sintaxis para este método:
static void ClearCookies();
Este es un ejemplo de código para este método:
ADBMobile.Target.clearCookies();
GetPcId (winJS: getPcId)
Devuelve la cookie de ID de PC para el dispositivo actual.
Esta es la sintaxis para este método:
staticPlatform::String ^GetPcId();
Este es un ejemplo de código para este método:
autopcId = ADBMobile.Target.getPcId();
GetSessionId (winJS: getSessionId)
Devuelve la cookie ID de sesión del dispositivo actual.
Esta es la sintaxis para este método:
staticPlatform::String ^GetSessionId();
Este es un ejemplo de código para este método:
autosessionId=ADBMobile.Target.getSessionId();