Title: Flutter: Is it neccessary to remove testdevice id from Firebase admob before publishing app?
Tags: firebase;flutter;admob
Question: I'm using Firebase Admob in my Flutter application, I guess I need to remove the TestDevice id from the code. If yes then:


I'm a bit confused that if I need to remove the TestDevice id before publishing my app than what thing/code should replace it?
When I remove the TestDevice id from the app than it shows an exception.



Here is the accepted answer: You don't need to remove test device id. 

Using test device id means your ads will be displayed as test ads in your device which is what Google suggest you, never run your own ads in your device, or your account may be suspended on doing so cause you'll be creating fake impressions. 

So, the bottom line is to keep using test device id no matter if it is for development or production. Only your test device will see test ads. End users will see real ad. 



{'source': 'StackExchangeDataset', 'subset': 'stackoverflow.com', 'metadata': {'AnswerCount': 1, 'CommentCount': 0, 'ContentLicense': 'CC BY-SA 4.0', 'CreationDate': '2019:00:10/15/19', 'FavoriteCount': None, 'PostTypeId': 1, 'Tags': '<firebase><flutter><admob>', 'Title': 'Flutter: Is it neccessary to remove testdevice id from Firebase admob before publishing app?', 'ViewCount': 647, 'id': 58400220, 'user_AboutMe': None, 'user_AccountId': 13713966.0, 'user_DisplayName': 'kiran', 'user_Reputation': 80.0, 'user_Views': 31.0, 'user_id': 9895496.0}}