# AdTechIdentifier

# AdTechIdentifier

Artifact:[androidx.privacysandbox.ads:ads-adservices](https://developer.android.com/jetpack/androidx/releases/privacysandbox-ads)  
[View Source](https://cs.android.com/search?q=file:androidx/privacysandbox/ads/adservices/common/AdTechIdentifier.kt+class:androidx.privacysandbox.ads.adservices.common.AdTechIdentifier)  
Added in[1.0.0](https://developer.android.com/jetpack/androidx/releases/privacysandbox-ads#1.0.0)

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/androidx/privacysandbox/ads/adservices/common/AdTechIdentifier "View this page in Java")

<br />

```
class AdTechIdentifier
```

<br />

*** ** * ** ***

An Identifier representing an ad buyer or seller.

## Summary

|                                                                                                                       ### Public constructors                                                                                                                        |
|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [AdTechIdentifier](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/common/AdTechIdentifier#AdTechIdentifier(kotlin.String))`(identifier: `[String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)`)` |

|                                        ### Public functions                                         |
|-----------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `open operator `[Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) | [equals](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/common/AdTechIdentifier#equals(kotlin.Any))`(other: `[Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html)`?)` Compares this AdTechIdentifier to the specified object. |
| `open `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)                  | [hashCode](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/common/AdTechIdentifier#hashCode())`()` Returns a hash code corresponding to the string representation of this class obtained by calling .toString.                                        |
| `open `[String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)            | [toString](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/common/AdTechIdentifier#toString())`()`                                                                                                                                                    |

|                               ### Public properties                               |
|-----------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------|
| [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html) | [identifier](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ads/adservices/common/AdTechIdentifier#identifier()) The identifier. |

## Public constructors

### AdTechIdentifier

Added in[1.0.0](https://developer.android.com/jetpack/androidx/releases/privacysandbox-ads#1.0.0)  

```
AdTechIdentifier(identifier: String)
```  

|                                           Parameters                                            |
|-------------------------------------------------------------------------------------------------|-----------------|
| `identifier: `[String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html) | The identifier. |

## Public functions

### equals

```
open operator fun equals(other: Any?): Boolean
```

Compares this AdTechIdentifier to the specified object. The result is true if and only if the argument is not null and the identifier property of the two objects are equal. Note that this method will not perform any eTLD+1 normalization so two AdTechIdentifier objects with the same eTLD+1 could be not equal if the String representations of the objects was not equal.  

|                                       Parameters                                        |
|-----------------------------------------------------------------------------------------|-----------------------------------------------------|
| `other: `[Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html)`?` | The object to compare this AdTechIdentifier against |

|                                       Returns                                       |
|-------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------|
| [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) | true if the given object represents an AdTechIdentifier equivalent to this AdTechIdentifier, false otherwise |

### hashCode

```
open fun hashCode(): Int
```

Returns a hash code corresponding to the string representation of this class obtained by calling .toString. Note that this method will not perform any eTLD+1 normalization so two AdTechIdentifier objects with the same eTLD+1 could have different hash codes if the underlying string representation was different.  

|                                   Returns                                   |
|-----------------------------------------------------------------------------|------------------------------------|
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | a hash code value for this object. |

### toString

```
open fun toString(): String
```  

|                                      Returns                                      |
|-----------------------------------------------------------------------------------|--------------------------------|
| [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html) | The identifier in String form. |

## Public properties

### identifier

Added in[1.0.0](https://developer.android.com/jetpack/androidx/releases/privacysandbox-ads#1.0.0)  

```
val identifier: String
```

The identifier.