title: Google AdMob new SDK setup for iOS : SKAdNetworkItems, NSUserTrackingUsageDescription, ATTrackingManager. Guideline 5.1.2 - Legal - Privacy - Data Use
body: <p>Google AdMob now shows below warning.</p>
  <p><a href="https://i.stack.imgur.com/oDaeu.png" rel="noreferrer"><img src="https://i.stack.imgur.com/oDaeu.png" alt="enter image description here" /></a></p>
  <p>Prepare your apps for iOS 14 Apple announced the new AppTrackingTransparency framework, which requires changes to your iOS apps. Implement the GMA SDK 7.64.0 (or later) and set up consent messaging to help prevent a significant loss in ad revenue.</p>
  <p>Some apps haven't been configured to use Apple's SKAdNetwork To ensure you're getting credit for all ads activity, like app installs, be sure to configure SKAdNetwork with Google's network IDs.</p>
  <p>Some of your iOS apps require a GMA SDK update To keep ads serving normally and minimize a loss in ad revenue, implement the GMA SDK 7.64.0 (or later) for your iOS apps. And configure the SKAdNetwork in your apps with Google's network ID.</p>
  <p>For this I did these changes</p>
  <ol>
  <li>Updated GoogleMobileAds SDK to 8.0</li>
  </ol>
  <p>2.Updated app's Info.plist file with these 3 keys:</p>
  <pre><code>        1. GADApplicationIdentifier key with a string value of AdMob app ID.
          2. Added SKAdNetworkItems in plist as mentioned here https://developers.google.com/admob/ios/ios14
          3. NSUserTrackingUsageDescription key with value 'Game_Name would like to access IDFA for thirdparty advertising purpose'  
  </code></pre>
  <p>info.plist screenshot
  <a href="https://i.stack.imgur.com/sLuOA.png" rel="noreferrer"><img src="https://i.stack.imgur.com/sLuOA.png" alt="enter image description here" /></a></p>
  <p>Also added App Tracking Transparancy Alert:</p>
  <pre><code>- (void)requestIDFA
  {
      if (@available(iOS 14.0, *))
      {
          [ATTrackingManager requestTrackingAuthorizationWithCompletionHandler:^(ATTrackingManagerAuthorizationStatus status) {
              
              // Admob Ads
              [self loadAdmob_Ads];
              [self loadRewardedInterstitial];
              [self requestAppOpenAd];
          }];
      }
      else
      {
          // Admob Ads
          [self loadAdmob_Ads];
          [self loadRewardedInterstitial];
          [self requestAppOpenAd];
      }
  }
  </code></pre>
  <p>Is there anything else I need to do in Xcode ?</p>
  <p>See below image from Appstoreconnect, Am I need to set Yes Or No?(Yes, we use advertising data for tracking purpose?) we are not tracking user, not sure about Google AdMob.
  <a href="https://i.stack.imgur.com/AcUyN.png" rel="noreferrer"><img src="https://i.stack.imgur.com/AcUyN.png" alt="enter image description here" /></a></p>
  <p>Data Used to Track You ( Identifiers), Data Linked to You ( Identifiers ). Is it right settings for Google AdMob ?
  <a href="https://i.stack.imgur.com/kVhRE.png" rel="noreferrer"><img src="https://i.stack.imgur.com/kVhRE.png" alt="enter image description here" /></a></p>
  <p>Recent AppStore Rejection Message:</p>
  <p>Guideline 5.1.2 - Legal - Privacy - Data Use and Sharing</p>
  <p>We noticed you do not use App Tracking Transparency to request the user's permission before tracking their activity across apps and websites. The app privacy information you provided in App Store Connect indicates you collect data in order to track the user, including Device ID and Advertising Data.</p>
  <p>Starting with iOS 14.5, apps on the App Store need to receive the user’s permission through the AppTrackingTransparency framework before collecting data used to track them. This requirement protects the privacy of App Store users.</p>
  <p><strong>Updates:</strong> Game approved by Apple. Here is game with latest admob ads (GADInterstitialAd, GADAppOpenAd, GADRewardedInterstitialAd, GADRewardedAd): <a href="https://apps.apple.com/us/app/ocean-fishing-master-3d-games/id1550945081" rel="noreferrer">https://apps.apple.com/us/app/ocean-fishing-master-3d-games/id1550945081</a></p>