# Content Targeting URL

### Set Global Content Targeting URL

Set the content targeting URL for all following ad requests, unless you have set a content targeting URL for a specific placement before.

```kotlin
setContentTargetingUrl(targetingUrl: String)
```

{% hint style="info" %}
Setting the content targeting URL must be done after initializing AATKit.
{% endhint %}

**Usage**

{% tabs %}
{% tab title="Java" %}
```java
AATKit.setContentTargetingUrl("https://www.gravite.net");
```
{% endtab %}

{% tab title="Kotlin" %}
```kotlin
AATKit.setContentTargetingUrl("https://www.addapptr.com");
```
{% endtab %}
{% endtabs %}

### Set Placement Specific Content Targeting URL

Set the content targeting URL for a specific placement for all following ad request**s**. The general setting of the content targeting URL will be overwritten for this placement.

**Usage**

{% tabs %}
{% tab title="Java" %}
```java
placement.setContentTargetingUrl("https://www.gravite.net");
```
{% endtab %}

{% tab title="Kotlin" %}
```kotlin
placement.contentTargetingUrl = "https://www.addapptr.com";
```
{% endtab %}
{% endtabs %}

#### Passing Multiple Values

In addition to single content targeting URL, AATKit supports passing a [multi-content URL](https://support.google.com/admanager/answer/11050896?sjid=4273175472428766390-EU#zippy=%2Chow-to-map-multi-content-url).  Please note that if multi-content URL is used, the single content targeting URL will no longer be passed.

**Usage**

{% tabs %}
{% tab title="Java" %}
```java
placement.setMultiContentTargetingUrls(listOfUrls);
```
{% endtab %}

{% tab title="Kotlin" %}
```kotlin
placement.multiContentTargetingUrls = listOfUrls
```
{% endtab %}
{% endtabs %}

where `listOfUrls` is a `List<String>` type.
