adSendUnitUsageData

GameSpy SDK

adSendUnitUsageData

Uploads usage data to the Ad Server.

AdResult adSendUnitUsageData(
AdInterfacePtr theInterface,
AdSendUnitUsageDataCallback theCallback,
gsi_time theTimeoutMs );
RoutineRequired HeaderDistribution
adSendUnitUsageData<ad.h>SDKZIP

Return Value

This function returns AdResult_NO_ERROR upon success. Otherwise a valid AdResult error condition is returned (see remarks).

Parameters

theInterface
[in] SDK interface previously initialized using adInitialize
theCallback
[in] Function to be triggered when the operation completes
theTimeoutMs
[in] Timeout for the operation, in milliseconds

Remarks

Win32 Specific: If the upload fails for any reason, the usage data will be stored in an offline file and sent the next time adSendUnitUsageData is called.