【iOS】The Google Mobile Ads SDK was initialized without an application ID というエラーが出た時の対処方法【AdMob】

AdMob(Google Mobile Ads SDK)更新してビルドしたら以下のようなエラーがでました。
こちらのエラーの対処方法をご紹介します。

Terminating app due to uncaught exception 'GADInvalidInitializationException', reason: 'The Google Mobile Ads SDK was initialized without an application ID. Google AdMob publishers, follow instructions here: https://googlemobileadssdk.page.link/admob-ios-update-plist to set GADApplicationIdentifier with a valid App ID. Google Ad Manager publishers, follow instructions here: https://googlemobileadssdk.page.link/ad-manager-ios-update-plist'

The Google Mobile Ads SDK was initialized without an application ID というエラーが出た時の対処方法

まずInfo.plistにGADApplicationIdentifierというKeyを追加します

次にAdMobよりアプリIDとなるca-app-pub~~~~をコピーします。

最後に先ほどInfo.plistに追加したしたGADApplicationIdentifierのvalueにAdMobで取得したアプリIDを貼り付けるだけです。