---
title: TargetingData
framework: Apple Ads Platform API
role: symbol
role_heading: Object
platforms: [apple ads platform api 1.0+]
path: apple-ads-platform-api/targetingdata
---

# TargetingData

The shared include and exclude pattern for all ad group and campaign targeting dimensions.

## Declaration

```data
object TargetingData
```

## Properties

include: Criteria to include in targeting. Mutable. exclude: Criteria to exclude from targeting. Mutable.

## Discussion

Discussion The TargetingData object is the shared include/exclude pattern for all ad group targeting dimensions. The include array restricts delivery to the specified values. The exclude array blocks delivery to those values. When you set both arrays, include takes precedence over exclude for overlapping values. Not all dimensions support both arrays. For AdGroupTargeting, only appCategory and appDownloader support both include and exclude. All other ad group targeting dimensions are include-only. For CampaignTargeting, all three dimensions (supplySource, supplyPlacement, countryOrRegion) are include-only. See the per-dimension support table in AdGroupTargeting. This object is embedded within CampaignTargeting fields supplySource, supplyPlacement, and countryOrRegion, which control the ad channel, placement, and geographic markets for a campaign. The AdGroupTargeting also embeds TargetingData within fields such as country, deviceClass, gender, minAge, and others, which refine audience and delivery within that campaign. The valid values for each field depend on the targeting dimension: supplySource accepts APPSTORE and MAPS. The deviceClass field accepts IPHONE and IPAD. Example {   "include": [     "APPSTORE"   ],   "exclude": [     "MAPS"   ] }

## See Also

- [AdGroup](apple-ads-platform-api/adgroup.md)
- [AdGroupCreate](apple-ads-platform-api/adgroupcreate.md)
- [AdGroupUpdate](apple-ads-platform-api/adgroupupdate.md)
- [AdGroupResponse](apple-ads-platform-api/adgroupresponse.md)
- [AdGroupQueryResponse](apple-ads-platform-api/adgroupqueryresponse.md)
- [AdGroupTargeting](apple-ads-platform-api/adgrouptargeting.md)
- [AdGroupTargetingCreate](apple-ads-platform-api/adgrouptargetingcreate.md)
- [AdGroupTargetingUpdate](apple-ads-platform-api/adgrouptargetingupdate.md)
- [BidStrategy](apple-ads-platform-api/bidstrategy.md)
- [BidStrategyCreate](apple-ads-platform-api/bidstrategycreate.md)
- [BidStrategyUpdate](apple-ads-platform-api/bidstrategyupdate.md)
- [CPAGoal](apple-ads-platform-api/cpagoal.md)
- [CPAGoalCreate](apple-ads-platform-api/cpagoalcreate.md)
- [CPAGoalUpdate](apple-ads-platform-api/cpagoalupdate.md)
- [TargetingDataCreate](apple-ads-platform-api/targetingdatacreate.md)
