# advertisingIdentifier

> The device advertising ID (IDFA) for ad attribution and analytics.

## Definition

* **Type:** Property
* **Namespace:** [UnityEngine.iOS](/engine/6000.7/script-reference/unityengine/ios.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
public static string advertisingIdentifier { get; }
```

### Remarks

A UUID that identifies the device for advertising. This is the same as Apple's `ASIdentifierManager.advertisingIdentifier`. Use of this property may require extra App Store steps for advertising and privacy. If the user has limited ad tracking (use [Device.advertisingTrackingEnabled](/engine/6000.7/script-reference/unityengine/ios/device/advertisingtrackingenabled.md) to check), the ID may be zeroed or restricted. You must not use the ID for cross-app tracking when it is zeroed or restricted.

For an async option that also returns tracking status, use [Application.RequestAdvertisingIdentifierAsync](/engine/6000.7/script-reference/unityengine/application/requestadvertisingidentifierasync.md).
