Skip to content

Instantly share code, notes, and snippets.

@marchbold
Created September 18, 2020 12:46
Show Gist options
  • Save marchbold/983521e64d59230708578ae2ebf5594b to your computer and use it in GitHub Desktop.
Save marchbold/983521e64d59230708578ae2ebf5594b to your computer and use it in GitHub Desktop.
Request the IDFA with authorisation
IDFA.service.addEventListener( IDFAEvent.COMPLETE, idfaCompleteHandler );
IDFA.service.requestAuthorisation(
function ( status:String ):void
{
if (status == TrackingAuthorisationStatus.AUTHORISED)
{
IDFA.service.getIDFA();
}
}
);
function idfaCompleteHandler( event:IDFAEvent ):void
{
trace( "identifier: " + event.identifier );
trace( "isLimitAdTrackingEnabled: " + event.isLimitAdTrackingEnabled );
}
// com.distriqt.IDFA
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment