# Read a Google campaign's device, location, excluded location, and language targeting

Reads a Google campaign's device, location, excluded location, and language targeting. Works with Google Ads.

```http
GET https://api.pozy.ai/v1/ads/campaigns/{campaignId}/targeting
```

- Area: Ads / Ad Campaigns
- Auth: Authorization: Bearer pz_live_...

## Path parameters

- `campaignId` (string, required)

## Query parameters

- `platform` (string): one of google

## Example request

```bash
curl -X GET "https://api.pozy.ai/v1/ads/campaigns/65a3737dd8b11ea61f199e6e/targeting" \
  -H "Authorization: Bearer $POZY_API_KEY"
```

```ts
const res = await fetch("https://api.pozy.ai/v1/ads/campaigns/65a3737dd8b11ea61f199e6e/targeting", {
  headers: { Authorization: `Bearer ${process.env.POZY_API_KEY}` },
});
const data = await res.json();
if (!res.ok) throw new Error(data?.error ?? `Request failed with status ${res.status}`);
console.log(data);
```

```python
import os
import requests

resp = requests.get(
    "https://api.pozy.ai/v1/ads/campaigns/65a3737dd8b11ea61f199e6e/targeting",
    headers={"Authorization": f"Bearer {os.environ['POZY_API_KEY']}"},
    timeout=30,
)
resp.raise_for_status()
print(resp.json())
```

## Response 200

- `devices`, array of object
  - `device`, string: One of `MOBILE`, `DESKTOP`, `TABLET`, `CONNECTED_TV`
  - `included`, boolean
  - `bidModifier`, number: Can be null
- `locations`, array of object
  - `geoTargetId`, string
  - `negative`, boolean
  - `name`, string: Can be null
  - `canonicalName`, string: Can be null
  - `type`, string: Can be null
  - `countryCode`, string: Can be null
- `excludedLocations`, array of object
  - `geoTargetId`, string
  - `negative`, boolean
  - `name`, string: Can be null
  - `canonicalName`, string: Can be null
  - `type`, string: Can be null
  - `countryCode`, string: Can be null
- `excludedLocationsEditable`, boolean
- `languages`, array of object
  - `code`, string
  - `id`, string
  - `name`, string
- `locationTargetingType`, string: One of `presence`, `presence_or_interest`. Can be null
- `cachedAt`, string (date-time): Can be null
- `stale`, boolean

```json
{
  "devices": [
    {
      "device": "MOBILE",
      "included": true,
      "bidModifier": 12.5
    }
  ],
  "locations": [
    {
      "geoTargetId": "686554da543721f04aabf2a9",
      "negative": true,
      "name": "Acme",
      "canonicalName": "Acme",
      "type": "string",
      "countryCode": "US"
    }
  ],
  "excludedLocations": [
    {
      "geoTargetId": "686554da543721f04aabf2a9",
      "negative": true,
      "name": "Acme",
      "canonicalName": "Acme",
      "type": "string",
      "countryCode": "US"
    }
  ],
  "excludedLocationsEditable": true,
  "languages": [
    {
      "code": "string",
      "id": "6bfebd43ddc270f6d2c56fc5",
      "name": "Acme"
    }
  ],
  "locationTargetingType": "presence",
  "cachedAt": "2026-10-02T09:00:00.000Z",
  "stale": true
}
```
