# Targeting

Target Amazon Ads campaigns by product (ASIN), category, Amazon's automatic targeting or Sponsored Display audience, and read an ad group's targets.

import { Tab, Tabs } from 'fumadocs-ui/components/tabs';

An Amazon ad group shows on keywords, on products and categories, or, on Sponsored Display, to audiences. This page covers targets; keywords have their own page.

## Targeting fields

Targets go in `platformSpecificData` on `POST /v1/ads/create`, in Amazon's own expression shape. This Sponsored Display campaign reaches shoppers who viewed similar products in the last 30 days.

<Tabs items={['Node.js', 'Python', 'curl']}>
<Tab value="Node.js">
```typescript
const { data: created } = await zernio.adcampaigns.createStandaloneAd({
  body: {
    accountId: '66b2e19d8c3f5a7e9d0b1c2d',
    adAccountId: '3245678901234567',
    name: 'Trail bottle remarketing',
    goal: 'conversions',
    budgetAmount: 15,
    budgetType: 'daily',
    platformSpecificData: {
      adProduct: 'SPONSORED_DISPLAY',
      tactic: 'T00030',
      defaultBid: 0.9,
      asins: ['B0C1234567'],
      targets: [
        { expression: [{ type: 'views', value: [{ type: 'similarProduct' }, { type: 'lookback', value: '30' }] }] }
      ]
    }
  }
});
```
</Tab>
<Tab value="Python">
```python
created = client.ad_campaigns.create_standalone_ad(
    account_id="66b2e19d8c3f5a7e9d0b1c2d",
    ad_account_id="3245678901234567",
    name="Trail bottle remarketing",
    goal="conversions",
    budget_amount=15,
    budget_type="daily",
    platform_specific_data={
        "adProduct": "SPONSORED_DISPLAY",
        "tactic": "T00030",
        "defaultBid": 0.9,
        "asins": ["B0C1234567"],
        "targets": [
            {"expression": [{"type": "views", "value": [{"type": "similarProduct"}, {"type": "lookback", "value": "30"}]}]}
        ],
    },
)
```
</Tab>
<Tab value="curl">
```bash
curl -X POST "https://zernio.com/api/v1/ads/create" \
  -H "Authorization: Bearer $ZERNIO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "accountId": "66b2e19d8c3f5a7e9d0b1c2d",
    "adAccountId": "3245678901234567",
    "name": "Trail bottle remarketing",
    "goal": "conversions",
    "budgetAmount": 15,
    "budgetType": "daily",
    "platformSpecificData": {
      "adProduct": "SPONSORED_DISPLAY",
      "tactic": "T00030",
      "defaultBid": 0.9,
      "asins": ["B0C1234567"],
      "targets": [
        { "expression": [{ "type": "views", "value": [{ "type": "similarProduct" }, { "type": "lookback", "value": "30" }] }] }
      ]
    }
  }'
```
</Tab>
</Tabs>

The response is the created ad, as in [Create ads](/platforms/amazon-ads/create-ads#create-a-campaign).

| Ad product | Field | What it targets |
|------------|-------|-----------------|
| Sponsored Products, `MANUAL` | `productTargets` | Products (`ASIN_SAME_AS`) and categories (`ASIN_CATEGORY_SAME_AS`), refined by brand, price, rating or Prime |
| Sponsored Products, `AUTO` | `autoTargeting` | Switches off, or bids on, Amazon's close match, loose match, substitutes and complements groups |
| Sponsored Brands | `productTargets` | Products and categories (`asinSameAs`, `asinCategorySameAs`), refined by brand, price or rating |
| Sponsored Display | `targets` | Similar products, products, categories and content categories; with `tactic: "T00030"`, views and purchases remarketing and Amazon audiences |

Negatives exclude products or brands: `negativeProductTargets` on Sponsored Products and Sponsored Brands, `negativeTargets` on Sponsored Display.

## Read an ad group's targets

`GET /v1/ads/ad-sets/{adSetId}/targeting` returns the ad group's live targets and negative targets in the same shape. Targets cannot be edited after creation through Zernio: change them in the Amazon Ads console.

## How it behaves

- Targets made in the Amazon Ads console sync in with their ad group.
- A target's `bid` overrides the ad group's `defaultBid`.
- `targetingType` is fixed once the campaign exists: an automatic campaign cannot become manual.
- Audiences need `tactic: "T00030"` on Sponsored Display.

## If it fails

| Error | Cause | Fix |
|-------|-------|-----|
| `400` on `platformSpecificData` | A target key the ad product does not take, such as `targets` on Sponsored Products | Use the field from the table above. |
| `400` on `countries` or `interests` | A unified targeting field | Remove it: the marketplace is set by the profile. |

## Related

- [Create ads](/platforms/amazon-ads/create-ads): the rest of the create request.
- [Keywords](/platforms/amazon-ads/keywords): keyword targeting on Sponsored Products and Sponsored Brands.
- [Limits & errors](/platforms/amazon-ads/reference): what Amazon Ads does not support yet.