An ad integration tracks three independent states: the user's choices, operating system permissions, and whether the SDK can make an ad request. On iOS, denying the App Tracking Transparency (ATT) prompt restricts tracking as Apple defines it. It says nothing about the options selected on an ad platform's consent form. Likewise, on Android, an initialized SDK that can load an ad tells you little about which serving mode is appropriate.
Start with a data-flow map
Record which component receives the screen category, which components process identifiers, and where impression events go. Include analytics SDKs, mediation, and every integrated adapter. A single placement can get ads from several networks, so the primary SDK's settings give only part of the picture.
Every field on the map should have a purpose, such as ad selection, frequency capping, or reporting. Google's documentation says non-personalized ads do not use past behavior for targeting, although local identifiers may still be used for frequency capping and aggregate reporting. Limited ads and technical ad delivery have different conditions. An app setting called “contextual advertising” cannot represent all of those modes on its own.
Set the startup sequence
Open the main interface independently of ad loading. Follow each vendor's initialization requirements for components that make network calls, taking the current privacy choices into account.
In a Google UMP integration, refresh consent information on each launch. Show the form when required and provide an entry point to privacy options when the SDK calls for one.
Use UMP's canRequestAds to determine whether you can initiate an ad request. The app decides whether the placement and moment are suitable for display. Deduplicate the startup call because readiness may be detected both after the refresh and after the form closes.
When the user's choice changes, reevaluate new requests and discard prepared ads tied to the old state. Test the return from the background to confirm that restoring the screen cannot restore the stale creative.
Consent transition test matrix
Scenario | What to observe |
First launch | Order of initialization, form display, and the first permitted request |
Repeat launch | State refresh and no repeated form when the platform does not require one |
Change of choice | Access to privacy settings and cancellation of stale impressions |
Refresh failure | Behavior specified by the SDK and continued access to core app features |
Record the sequence on the device. Event markers such as consent_update_started, consent_form_closed, and first_ad_request are enough. Raw consent strings, advertising IDs, and personal data are unnecessary for checking order. Run the scenarios on a clean install, after an app update, and after a settings change. Keep debug geography and reset options out of production builds.
What Apple ATT covers
Apple describes tracking as linking app data about a specific user or device to data from other companies for targeted advertising or measurement. Certain disclosures to data brokers also count. Compare each provider's actual behavior with that definition. When ATT is denied, do not substitute device fingerprinting or other tracking signals for an unavailable identifier. Local ad selection by screen category still needs to account for SDK policies, App Store disclosures, and other data-handling requirements.
Adapter calls with permission granted or denied
Run a scenario with third-party demand disabled, then add its adapters one by one in a test configuration. Record the timing of each call before the first ad and compare the call list after denial. Distinguish adapter initialization, technical network traffic, and an actual ad request. A screenshot taken after the form closes cannot establish the order in which those operations happened.
Treat SDK updates as potential changes to the data flow. A new adapter or reporting mode warrants another look at store disclosures and consent settings. Keep a per-source switch in case you need to turn off a provider while the rest of the app continues to work. Assign an owner and define the condition that warrants using the switch.
A common failure with preloaded ads
A fullscreen ad loaded in advance can survive a settings change in memory. Store the privacy-state version with the prepared ad. If the versions differ, release the object and decide again whether to load. Enforce this both in the ad wrapper and on the screen that calls show.
Design the states for one placement
A results screen can prepare an ad early when the integration allows the request. After startup, the app waits for the consent information refresh. A positive readiness check triggers loading. Tag the creative with the privacy state, placement, and time received. When the reader reaches the results, check permission again even if the server response was successful.
Represent “checking settings,” “request allowed,” “request temporarily unavailable,” and “suppressed by product rules” as distinct states. A placement might be allowed to request while no campaign is active. A screen with personal data may prohibit display even when the SDK permits a request. Use different reason codes so that a user decision never appears as an SDK error.
Decision | Source of truth | Diagnostic record |
Can the SDK make an ad request? | Provider state and API | Result and reason code |
Does iOS permit tracking? | ATT status | Status category without a device identifier |
Can this screen display an ad? | Product rules | Placement ID |
Is the loaded ad still current? | Context and privacy version comparison | Match status and cancellation reason |
On refresh failure, follow the procedure for your SDK version. UMP readiness can depend on state from the previous session. Avoid substituting a flag the app once wrote to storage. Test a clean install with no history to see whether ad activity starts before the SDK can determine the permitted mode.
Handle a change of choice mid-session
A user leaves an open feed, changes privacy settings, and returns to the same scroll position. Ads fetched before the change may still be in memory. The Back button and confirmation can both return to the feed while producing different results. Closing settings without changes should restore the previous state. Log form dismissal and the saving of a new choice as different events so dismissal alone does not trigger a reload. Preserve scroll position and access to the primary task.
The reverse transition is also possible: a user permits a mode they previously declined. The open feed should remain stable when the first response arrives. Schedule display for a safe moment, such as the next time the feed opens. This gives request readiness and UI readiness their own timing. Closing the form alone should never trigger a banner or fullscreen display.
Delay a test request, change settings, and wait for a successful SDK response. Define the expected result in advance: the response belongs to an old state and produces no impression. Test this with an auto-refreshing banner and with a fullscreen ad cached while the user moves to another screen.
Cover platform and device transitions
On iOS, test combinations such as “ATT denied, consent form completed,” “ATT allowed, personalization declined,” and “ATT not requested yet.” Each check has its own result. When the product does no tracking, compare the selected SDKs and their observed behavior with store disclosures and Apple's rules.
App sign-in is a separate question from ad privacy. On a shared device, one person may sign out and another sign in. Refresh the product context and use the provider's documentation to determine whose choice applies after the switch. Where choices are shared across apps or devices, use a supported mechanism with defined conflict behavior. Copying a single Boolean value between devices cannot represent those decisions reliably.
Build a release trace that someone else can read
On a clean build, record cold launch, repeat launch, and return from the background. Open the same public screen each time and compare the timestamp of the first request with the consent refresh.
Test grant, denial, dismissal, and a network failure. Record the readiness result and the actual number of initial requests. One eligible launch should make one initial request for the selected placement.
Enable mediation adapters individually using the versions in the release. Once a source is disabled, the next request should bypass it and old cached creatives should stay out of view.
Open privacy choices from settings using a screen reader and large text. Users should be able to reach the form without visiting an ad screen and return to their original task.
Go beyond recording that the form appeared. Include app and SDK versions, tested states, event order, and expected fallback behavior. The product should remain usable when a given choice results in no ads. Where a request did occur, identify the branch that allowed it. This gives the next team a trace to compare after it updates an adapter or changes preload timing.
Changes that warrant another run
Repeat the suite when adding a network, changing the consent form, introducing an auto-refreshing format, or moving SDK initialization earlier. Network calls can shift without a visible change to the interface. Timestamps expose that difference in the test build before users receive the update.