title: How to implement UMP SDK correctly for eu consent?
body: <p>I have lots of confusion regarding the implementation of the UMP SDK. I have not found much information or a complete tutorial other than google. I am following <a href="https://developers.google.com/admob/ump/android/quick-start" rel="noreferrer">this</a> and <a href="https://support.google.com/adsense/answer/7666366?hl=en&amp;ref_topic=7670012&amp;visit_id=637438558661263361-1393486928&amp;rd=1" rel="noreferrer">this</a> but unable to understand bellow issues:</p>
  <ol>
  <li><p>Is it required to call <code>MobileAds.initialize()</code> after getting the requesting consent? If so, then where should it be called? It might be called after obtaining the consent:</p>
  <pre><code>public void onConsentFormLoadSuccess(ConsentForm consentForm) {
      if(consentInformation.getConsentStatus() == ConsentInformation.ConsentStatus.OBTAINED) {
  }
  }
  </code></pre>
  </li>
  <li><p>How would I check if a user is not from EEA? I wanted to request consent or initialize mobile ads based on user location. In <a href="https://developers.google.com/admob/android/eu-consent" rel="noreferrer">Consent SDK</a>, there is a method <code>isRequestLocationInEeaOrUnknown()</code>, but this SDK is deprecated. I have not found something similar in UMP SDK. One approach might be to always <code>requestConsentInfoUpdate</code> and call <code>isConsentFormAvailable</code> inside <code>onConsentInfoUpdateSuccess</code>. This method returns false if the user is not from EEA.</p>
  </li>
  <li><p>I am always getting consent type <code>consentInformation.getConsentType()</code> 0 or UnKnown. I have tried with <a href="https://support.google.com/adsense/answer/9804260?hl=en&amp;ref_topic=7670012" rel="noreferrer">different combination</a> but always 0.</p>
  </li>
  <li><p>Is it required to forward consent information to AdMob SDK or SDK will handle it.</p>
  </li>
  <li><p>Regarding mediation, I need the consent information but do not know how to get it. From docs: <code>The UMP SDK writes consent status information to local storage</code></p>
  </li>
  <li><p>In AdMob -&gt; EU user consent, One of my mediation partners is not included in the <code>Commonly used set of ad technology providers</code>. If I use <code>Custom set of ad technology providers</code>, do I need to include all of <code>Commonly used set of ad technology providers</code> where there are 198 ad tech providers. Or including ad tech providers in Funding Choices is enough.</p>
  </li>
  </ol>