I Need Small Help From you Guys. I Had Implemented UMP Consent On my Game Using AS3 Script. Even I Had Enabled GDPR Settings on My AdMob Account too. But While Testing on my Mobile Using Test Device, Form Its not Opening on my Device. While Debugging on my Device I got this Output Log :
IDFA.isSupported true
authorisationStatus authorised
Adverts.service.ump.isSupported true
params [object ConsentRequestParameters]
consentInformation [object _ConsentInformationImpl]
consent getConsentStatus(): 0
consent getConsentType(): 0
status authorised
TrackingAuthorisationStatus.AUTHORISED authorised
getIdFA condition true by developer
Event in event.authorisationStatus authorised
identifier: xxxx-xxxx-xxxx-xxx-xxxxxx
isLimitAdTrackingEnabled: false
consentInformation_updateSuccessHandler()
consentisConsentFormAvailable(): false
umploadForm() No form available
But After this Form Its not Opening. Please Guys Help me to Fix this Issue.. Below I Had attached Script:
import com.distriqt.extension.idfa.IDFA;
import com.distriqt.extension.idfa.TrackingAuthorisationStatus;
import com.distriqt.extension.idfa.events.IDFAEvent;
import com.distriqt.extension.adverts.ump.*;
import com.distriqt.extension.adverts.ump.events.*;
import com.distriqt.extension.adverts.*;
import `com.distriqt.extension.adverts.consent.ConsentStatus;
if (IDFA.isSupported) {
// Functionality here
IDFA.service.addEventListener(IDFAEvent.COMPLETE, idfaCompleteHandler);
authorisationStatus = IDFA.service.authorisationStatus();`
trace("authorisationStatus " + authorisationStatus)
IDFA.service.requestAuthorisation(
function (status: String): void {
trace("status " + status)
trace("TrackingAuthorisationStatus.AUTHORISED " + TrackingAuthorisationStatus.AUTHORISED)
if (status == TrackingAuthorisationStatus.AUTHORISED) {
trace("getIdFA condition true by developer")
IDFA.service.getIDFA();
}
}
);
}
/////////////////////////////////////Consent
trace("Adverts.service.ump.isSupported " + Adverts.service.ump.isSupported);
if (Adverts.service.ump.isSupported) {
consentInformation = Adverts.service.ump.getConsentInformation();
var params: ConsentRequestParameters = new ConsentRequestParameters()
.setTagForUnderAgeOfConsent(false)
.setConsentDebugSettings(
new ConsentDebugSettings() //.addTestDeviceHashedId("ACD1D936A7320003236EF0C6E33A3100")
.addTestDeviceHashedId("xxxx-xxxx-xxxx-xxx-xxxxxx")
.setDebugGeography(DebugGeography.DEBUG_GEOGRAPHY_EEA)
);
trace("params " + params)
consentInformation.requestConsentInfoUpdate(params);
consentInformation.addEventListener(ConsentInformationEvent.CONSENT_INFO_UPDATE_SUCCESS, consentInformation_updateSuccessHandler);
consentInformation.addEventListener(ConsentInformationEvent.CONSENT_INFO_UPDATE_FAILURE, consentInformation_updateFailureHandler);
trace("consentInformation " + consentInformation)
trace("consent getConsentStatus(): " + consentInformation.getConsentStatus());
trace("consent getConsentType(): " + consentInformation.getConsentType());
}
}
function idfaCompleteHandler(event: IDFAEvent): void {
trace("Event in event.authorisationStatus " + authorisationStatus)
trace("identifier: " + event.identifier);
trace("isLimitAdTrackingEnabled: " + event.isLimitAdTrackingEnabled);
}
function consentInformation_updateSuccessHandler(event: ConsentInformationEvent): void {
trace("consentInformation_updateSuccessHandler()");
trace("consent isConsentFormAvailable(): " + consentInformation.isConsentFormAvailable());
if (consentInformation.isConsentFormAvailable()) {
Adverts.service.ump.addEventListener(UserMessagingPlatformEvent.CONSENT_FORM_LOAD_SUCCESS, ump_loadFormSuccessHandler);
Adverts.service.ump.addEventListener(UserMessagingPlatformEvent.CONSENT_FORM_LOAD_FAILURE, ump_loadFormFailureHandler);
Adverts.service.ump.loadConsentForm();
} else {
trace("ump_loadForm() No form available");
}
}
function consentInformation_updateFailureHandler(event: ConsentInformationEvent): void {
trace("consentInformation_updateFailureHandler() : [" + event.error.errorID + "] " + event.error.message);
event.currentTarget.removeEventListener(ConsentInformationEvent.CONSENT_INFO_UPDATE_SUCCESS, consentInformation_updateSuccessHandler);
event.currentTarget.removeEventListener(ConsentInformationEvent.CONSENT_INFO_UPDATE_FAILURE, consentInformation_updateFailureHandler);
}
function ump_loadFormSuccessHandler(event: UserMessagingPlatformEvent): void {
trace("ump_loadFormSuccessHandler() " + Adverts.service.ump.getConsentInformation().getConsentStatus());
if (Adverts.service.ump.getConsentInformation().getConsentStatus() == ConsentStatus.REQUIRED) {
trace(" Form loaded and ready to be showed");
Adverts.service.ump.addEventListener(UserMessagingPlatformEvent.CONSENT_FORM_DISMISSED, formDismissedHandler);
Adverts.service.ump.showConsentForm();
}
}
function ump_loadFormFailureHandler(event: UserMessagingPlatformEvent): void {
trace("ump_loadFormFailureHandler() : [" + event.error.errorID + "] " + event.error.message);
}
private function formDismissedHandler(event: UserMessagingPlatformEvent): void {
trace(" Handle form dismissal");
}
Am Expecting You Guys To Solve My Issue. So that I would be Free of mind. Because am Struggling to Solve this Issue.