AdGroupTargeting
The comprehensive audience and placement configuration for an ad group.
Declaration
object AdGroupTargetingProperties
| Name | Type | Description |
|---|---|---|
country | AdGroupTargeting.Country | Country targeting. Include a country ID returned by the Geo Search API. Include only. Used with App Store campaigns. See TargetingData. Mutable. |
adminArea | AdGroupTargeting.AdminArea | State or province targeting. Include admin area IDs returned by the Geo API. Include only. Used with App Store and Apple Maps campaigns. See TargetingData. Mutable. |
locality | AdGroupTargeting.Locality | City targeting. Include locality IDs returned by the Geo API. Include only. Used with App Store and Apple Maps campaigns. See TargetingData. Mutable. |
postalCode | AdGroupTargeting.PostalCode | Postal code targeting. Include postal code IDs returned by the Geo API. Include only. Used with Apple Maps campaigns. See TargetingData. Mutable. |
radius | AdGroupTargeting.Radius | Radius targeting, used with Apple Maps campaigns to restrict delivery to users within a given proximity of the brand’s locations. Valid values: |
deviceClass | AdGroupTargeting.DeviceClass | Device class targeting. Valid values: |
minAge | AdGroupTargeting.MinAge | Minimum age targeting. Sets the lower bound of the target age range. Minimum value is 18, maximum value is 64. Include only. Used with App Store campaigns. See TargetingData. Mutable. |
maxAge | AdGroupTargeting.MaxAge | Maximum age targeting. Sets the upper bound of the target age range. Minimum value is 18, maximum value is 64. To target users 65 and older, omit |
gender | AdGroupTargeting.Gender | Gender targeting, used with App Store campaigns. Valid values: |
appCategory | AdGroupTargeting.AppCategory | App category targeting. Category ID |
appDownloader | AdGroupTargeting.AppDownloader | Reach or suppress users based on whether they downloaded specific apps. Use |
daypart | AdGroupTargeting.Daypart | Hour-of-day targeting. Include slot integers (0–167) to restrict delivery to those hours. Include only. Used with App Store and Apple Maps campaigns. Values represent one-hour windows in a 7-day week grid starting on Sunday. See AdGroupTargeting.Daypart for the full slot reference. See TargetingData. Mutable. |
locationGroup | AdGroupTargeting.LocationGroup | Location group targeting. Include location group IDs to restrict delivery to the business locations in those groups. Include only. Used with Apple Maps campaigns. For creating and managing groups, see Managing Location Groups. See TargetingData. Mutable. |
Discussion
The AdGroupTargeting object is the comprehensive audience and placement configuration for an ad group. The CampaignTargeting establishes campaign-level supply source, placement, and geographic markets first, and AdGroupTargeting then refines audience and delivery within the bounds of that campaign.
Each field uses a TargetingData object with include and exclude arrays. Setting exclude on an include-only dimension has no effect.
Not every targeting dimension is meaningful for every campaign type in practice. The API represents every dimension as the same generic TargetingData shape, so campaign-type pairing is usage guidance rather than a constraint the schema enforces.
Combining multiple dimensions uses AND logic: a user must match all specified criteria to be eligible.
For valid location identifier values and geographic lookup, see Geo Targeting Endpoints. For managing location groups used in locationGroup targeting, see Managing Location Groups.
For a full request that embeds targeting alongside the other ad group fields, see Create an Ad Group (create) and Update an Ad Group (update).
Example
{
"country": {
"include": ["1125", "1107"]
},
"adminArea": {
"include": ["9070", "12683"]
},
"locality": {
"include": ["11390462"]
},
"postalCode": {
"include": ["11412181", "11412183"]
},
"radius": {
"include": ["MEDIUM"]
},
"deviceClass": {
"include": ["IPHONE", "IPAD"]
},
"minAge": {
"include": ["25"]
},
"maxAge": {
"include": ["54"]
},
"gender": {
"include": ["M", "F"]
},
"appCategory": {
"include": ["100"],
"exclude": ["100"]
},
"appDownloader": {
"include": ["987654321"],
"exclude": ["555666777"]
},
"daypart": {
"include": ["8", "9", "10", "32", "33", "34"]
},
"locationGroup": {
"include": ["123456789"]
}
}Topics
Dictionaries
AdGroupTargeting.AdminAreaAdGroupTargeting.AppCategoryAdGroupTargeting.AppDownloaderAdGroupTargeting.CountryAdGroupTargeting.DaypartAdGroupTargeting.DeviceClassAdGroupTargeting.GenderAdGroupTargeting.LocalityAdGroupTargeting.LocationGroupAdGroupTargeting.MaxAgeAdGroupTargeting.MinAgeAdGroupTargeting.PostalCodeAdGroupTargeting.Radius