Home > Back-end >  Why is Xcode saying Google Mobile Ads SDK was initialised without an application ID
Why is Xcode saying Google Mobile Ads SDK was initialised without an application ID

Time:01-21

I have followed the exact instructions as given by the googleAdMob website however Xcode still complains that I have not added a GADApplication identifier to my info.plist. FYI- the application does build fine however it will crash as soon as it opens. The site I used: https://developers.google.com/ad-manager/mobile-ads-sdk/ios/quick-start#update_your_infoplist

enter image description here

<dict>
        <key>GADApplicationIdentifier</key>
        <string>ca-app-pub-7134464775664257~1540277419</string>
        <key>SKAdNetworkItems</key>
        <array>
<dict>

CodePudding user response:

Try to remove de <dict>...

Your <key>GADApplicationIdentifier</key> must be right under the <key>UIAplicationScene... something like that:

<dict>
<key>...
<key>UIAplicationSceneManifest</key>
<key>GADApplicationIdentifier</key>
<string>ca-app-pub-7134464775664257~1540277419</string>
<key>SKAdNetworkItems</key>
<array>..
</array>
</dict>
  •  Tags:  
  • Related