---
title: "setAdditionalValue(_:forKey:)"
framework: storekit
role: symbol
role_heading: Instance Method
path: "storekit/skoverlay/appclipconfiguration/setadditionalvalue(_:forkey:)"
---

# setAdditionalValue(_:forKey:)

Sets an additional value for a key, such as a value for measuring the effectiveness of an ad campaign.

## Declaration

```swift
func setAdditionalValue(_ value: Any?, forKey key: String)
```

## Parameters

- `value`: The value to associate with the key.
- `key`: The string that identifies an additional value.

## Discussion

Discussion Set additional values to verify and associate an app installation with an ad campaign. For more information, see SKAdNetwork.

## See Also

### Verifying Advertising Campaigns

- [campaignToken](storekit/skoverlay/appclipconfiguration/campaigntoken.md)
- [providerToken](storekit/skoverlay/appclipconfiguration/providertoken.md)
- [additionalValue(forKey:)](storekit/skoverlay/appclipconfiguration/additionalvalue(forkey:).md)
