In iOS 14, you are required to update the Google IMA SDK to support tracking of advertisements.
It requires you to add a new function in order to request access to the user's IDFA:
func requestIDFA() {
ATTrackingManager.requestTrackingAuthorization(completionHandler: { status in
// Tracking authorization completed. Start loading ads here.
// loadAd()
})
}
When this function is called, it initiates a pop up that asks the user if they want to be tracked and gives the user the option to allow or disallow tracking.
The problem I'm having with the Google IMA SDK is i'm running a video pre-roll and when I test the updates for iOS 14 after when I choose "Do not track", i'm no longer able to produce a video preroll.
Does anyone have any insight into this? How can I still show video prerolls to users who choose to not be tracked?