Optional. A list of ad units that should be excluded. Excluded AUs take precedence over targeted AUs. In fact an AU can be excluded only if one of its ancestors is targeted. Subsequently child AUs of an excluded AU can not be targeted (except via a placement).
↳ targeted_placements
array
Optional. The resource names of the placements that should be targeted/included.
getTargetedAdUnits
Optional. A list of ad units that should be targeted/included.
Optional. A list of ad units that should be excluded.
Excluded AUs take precedence over targeted AUs. In fact an AU can be
excluded only if one of its ancestors is targeted. Subsequently child
AUs of an excluded AU can not be targeted (except via a placement).
Optional. A list of ad units that should be excluded.
Excluded AUs take precedence over targeted AUs. In fact an AU can be
excluded only if one of its ancestors is targeted. Subsequently child
AUs of an excluded AU can not be targeted (except via a placement).
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Ads Ad Manager V1 Client - Class InventoryTargeting (0.3.1)\n\nVersion latestkeyboard_arrow_down\n\n- [0.3.1 (latest)](/php/docs/reference/ad-manager/latest/V1.InventoryTargeting)\n- [0.3.0](/php/docs/reference/ad-manager/0.3.0/V1.InventoryTargeting)\n- [0.2.0](/php/docs/reference/ad-manager/0.2.0/V1.InventoryTargeting)\n- [0.1.3](/php/docs/reference/ad-manager/0.1.3/V1.InventoryTargeting) \nReference documentation and code samples for the Google Ads Ad Manager V1 Client class InventoryTargeting.\n\nTargeted ad units and AU placements are applied with\nlogical OR. Example:\n(au:1 OR au:2 OR au_placement:5) AND (NOT (au:3))\n\nGenerated from protobuf message `google.ads.admanager.v1.InventoryTargeting`\n\nNamespace\n---------\n\nGoogle \\\\ Ads \\\\ AdManager \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getTargetedAdUnits\n\nOptional. A list of ad units that should be targeted/included.\n\n### setTargetedAdUnits\n\nOptional. A list of ad units that should be targeted/included.\n\n### getExcludedAdUnits\n\nOptional. A list of ad units that should be excluded.\n\nExcluded AUs take precedence over targeted AUs. In fact an AU can be\nexcluded only if one of its ancestors is targeted. Subsequently child\nAUs of an excluded AU can not be targeted (except via a placement).\n\n### setExcludedAdUnits\n\nOptional. A list of ad units that should be excluded.\n\nExcluded AUs take precedence over targeted AUs. In fact an AU can be\nexcluded only if one of its ancestors is targeted. Subsequently child\nAUs of an excluded AU can not be targeted (except via a placement).\n\n### getTargetedPlacements\n\nOptional. The resource names of the placements that should be\ntargeted/included.\n\n### setTargetedPlacements\n\nOptional. The resource names of the placements that should be\ntargeted/included."]]