Unity: How to automatically add Admob App ID

Admob is one of the most used Ad network used by developers all over the world. In recent sdk update Admob introduced a change which requires developers to add Admob App Id in iOS info.plist and Android’s AndroidManifest.xml file.

In iOS Admob requires you to add GADApplicationIdentifier as key with a value of Admob App Id.

This change can be done programatically in Unity by adding the parameter in PostProcessBuild.

Unity changes for iOS Admob

Create a new script file and save it inside Assets -> Editor folder.

Update the file to add key and value in info.plist after the build is completed programatically.





Leave a Reply