1

I am implementing AdMob in an iOS Games, using UNITY3D and want to know if there is any way to get Device Hash ID (to be used in AdMob) directly from Unity or any other way without Xcode. The condition is that I want to demo AdMob to client and he is not having mac/xcode, so how do get the device id which I can put in test devices list for admob.

For Android I found one app on play store which works fine but not getting it for iOS.

  • Possible duplicate of [How to get a "hashed device id" for testing admob on ios](http://stackoverflow.com/questions/24760150/how-to-get-a-hashed-device-id-for-testing-admob-on-ios) – Viral Patel Jan 14 '16 at 07:52

1 Answers1

0

Just compute the MD5 of the advertising identifier and use it as your test device id - Source

Here is apple's documentation to get the advertising identifier. Check section Getting the Advertising Identifier

The ASIdentifierManager class provides apps with access to an identifier that can be used only for serving advertisements, as well as a flag which indicates whether a user has limited ad tracking.

This class is expected to be used by developers who are implementing a system for serving ads. These organizations typically provide app developers with the code that interacts with this class. App developers may need to link against the Ad Support framework to use that code, but they should not need to interact with the ASIdentifierManager class directly.

To get the advertising identifier:

  1. Get a reference to the shared instance of this class using the sharedManager method.

  2. Check whether advertising tracking is limited using the advertisingTrackingEnabled property.

If the user has limited ad tracking, use the advertising identifier only for the following purposes: frequency capping, attribution, conversion events, estimating the number of unique users, advertising fraud detection, and debugging.

  1. Get the advertising identifier using the advertisingIdentifier property.
Community
  • 1
  • 1
Viral Patel
  • 32,418
  • 18
  • 82
  • 110
  • 1
    Any hints on how to get advertisingIdentifier? I am working with Unity3D. –  Jan 14 '16 at 08:22
  • Any sample code for this would be great, which will get and display the ID on screen. –  Jan 14 '16 at 16:25