- [Resource: PricingRule](https://developers.google.com/ad-manager/api/reference/rest/v1/networks.pricingRules.md.txt#PricingRule)
  - [JSON representation](https://developers.google.com/ad-manager/api/reference/rest/v1/networks.pricingRules.md.txt#PricingRule.SCHEMA_REPRESENTATION)
- [PricingSubrule](https://developers.google.com/ad-manager/api/reference/rest/v1/networks.pricingRules.md.txt#PricingSubrule)
  - [JSON representation](https://developers.google.com/ad-manager/api/reference/rest/v1/networks.pricingRules.md.txt#PricingSubrule.SCHEMA_REPRESENTATION)
- [PricingRuleCpmThresholdType](https://developers.google.com/ad-manager/api/reference/rest/v1/networks.pricingRules.md.txt#PricingRuleCpmThresholdType)
- [PricingRuleCandidateSelector](https://developers.google.com/ad-manager/api/reference/rest/v1/networks.pricingRules.md.txt#PricingRuleCandidateSelector)
  - [JSON representation](https://developers.google.com/ad-manager/api/reference/rest/v1/networks.pricingRules.md.txt#PricingRuleCandidateSelector.SCHEMA_REPRESENTATION)
- [AdvertiserBrandSelector](https://developers.google.com/ad-manager/api/reference/rest/v1/networks.pricingRules.md.txt#AdvertiserBrandSelector)
  - [JSON representation](https://developers.google.com/ad-manager/api/reference/rest/v1/networks.pricingRules.md.txt#AdvertiserBrandSelector.SCHEMA_REPRESENTATION)
- [PricingRuleCategorySelector](https://developers.google.com/ad-manager/api/reference/rest/v1/networks.pricingRules.md.txt#PricingRuleCategorySelector)
  - [JSON representation](https://developers.google.com/ad-manager/api/reference/rest/v1/networks.pricingRules.md.txt#PricingRuleCategorySelector.SCHEMA_REPRESENTATION)
- [PricingRuleCreativeFormatSelector](https://developers.google.com/ad-manager/api/reference/rest/v1/networks.pricingRules.md.txt#PricingRuleCreativeFormatSelector)
  - [JSON representation](https://developers.google.com/ad-manager/api/reference/rest/v1/networks.pricingRules.md.txt#PricingRuleCreativeFormatSelector.SCHEMA_REPRESENTATION)
- [PricingRuleCreativeFormat](https://developers.google.com/ad-manager/api/reference/rest/v1/networks.pricingRules.md.txt#PricingRuleCreativeFormat)
- [PricingRuleDurationSelector](https://developers.google.com/ad-manager/api/reference/rest/v1/networks.pricingRules.md.txt#PricingRuleDurationSelector)
  - [JSON representation](https://developers.google.com/ad-manager/api/reference/rest/v1/networks.pricingRules.md.txt#PricingRuleDurationSelector.SCHEMA_REPRESENTATION)
- [PricingRuleSizeSelector](https://developers.google.com/ad-manager/api/reference/rest/v1/networks.pricingRules.md.txt#PricingRuleSizeSelector)
  - [JSON representation](https://developers.google.com/ad-manager/api/reference/rest/v1/networks.pricingRules.md.txt#PricingRuleSizeSelector.SCHEMA_REPRESENTATION)
- [PricingRuleSkippabilitySelector](https://developers.google.com/ad-manager/api/reference/rest/v1/networks.pricingRules.md.txt#PricingRuleSkippabilitySelector)
  - [JSON representation](https://developers.google.com/ad-manager/api/reference/rest/v1/networks.pricingRules.md.txt#PricingRuleSkippabilitySelector.SCHEMA_REPRESENTATION)
- [PricingRuleSkipSelectType](https://developers.google.com/ad-manager/api/reference/rest/v1/networks.pricingRules.md.txt#PricingRuleSkipSelectType)
- [PricingRuleDemandSelector](https://developers.google.com/ad-manager/api/reference/rest/v1/networks.pricingRules.md.txt#PricingRuleDemandSelector)
  - [JSON representation](https://developers.google.com/ad-manager/api/reference/rest/v1/networks.pricingRules.md.txt#PricingRuleDemandSelector.SCHEMA_REPRESENTATION)
- [PricingRuleGoogleDemandType](https://developers.google.com/ad-manager/api/reference/rest/v1/networks.pricingRules.md.txt#PricingRuleGoogleDemandType)
- [PricingRuleDemandChannelBidderSet](https://developers.google.com/ad-manager/api/reference/rest/v1/networks.pricingRules.md.txt#PricingRuleDemandChannelBidderSet)
  - [JSON representation](https://developers.google.com/ad-manager/api/reference/rest/v1/networks.pricingRules.md.txt#PricingRuleDemandChannelBidderSet.SCHEMA_REPRESENTATION)
- [RuleStatus](https://developers.google.com/ad-manager/api/reference/rest/v1/networks.pricingRules.md.txt#RuleStatus)
- [Methods](https://developers.google.com/ad-manager/api/reference/rest/v1/networks.pricingRules.md.txt#METHODS_SUMMARY)

## Resource: PricingRule

Rule that dictates price thresholds for segments of inventory.

| JSON representation |
|---|
| ``` { "name": string, "pricingSubrules": [ { object (`PricingSubrule`) } ], "targeting": { object (`Targeting`) }, "displayName": string, "status": enum (`RuleStatus`) } ``` |

| Fields ||
|---|---|
| `name` | `string` Identifier. The resource name of the `PricingRule`. Format: `networks/{networkCode}/pricingRules/{pricing_rule_id}` |
| `pricingSubrules[]` | ``object (`PricingSubrule`)`` Required. Subrules that represent the creative-level targeting and price thresholds associated with this PricingRule. |
| `targeting` | ``object (`Targeting`)`` Optional. Inventory targeted by this PricingRule. |
| `displayName` | `string` Required. User-specified display name of this PricingRule. |
| `status` | ``enum (`RuleStatus`)`` Output only. Status of this PricingRule. |

## PricingSubrule

Subrule of a PricingRule that dictates price thresholds for given segments of the auction.

| JSON representation |
|---|
| ``` { "cpmThreshold": { object (`Money`) }, "updateTime": string, "candidateSelector": { object (`PricingRuleCandidateSelector`) }, "cpmThresholdType": enum (`PricingRuleCpmThresholdType`), "id": string } ``` |

| Fields ||
|---|---|
| `cpmThreshold` | ``object (`Money`)`` Optional. Minimum CPM for this subrule. |
| `updateTime` | ``string (`Timestamp` format)`` Output only. The last modified time of the `cpmThreshold` or the `cpmThresholdType`. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: `"2014-10-02T15:01:23Z"`, `"2014-10-02T15:01:23.045123456Z"` or `"2014-10-02T15:01:23+05:30"`. |
| `candidateSelector` | ``object (`PricingRuleCandidateSelector`)`` Optional. Specification for verticals of the Auction the threshold applies to. |
| `cpmThresholdType` | ``enum (`PricingRuleCpmThresholdType`)`` Required. Whether the threshold is floor, target, or optimized. |
| `id` | `string (int64 format)` Optional. Non-empty default. Unique identifier of the subrule. This field is assigned by Google when the subrule is created. Provide this ID when updating an existing subrule; omit it when adding a new subrule. |

## PricingRuleCpmThresholdType

Type of threshold.

| Enums ||
|---|---|
| `PRICING_RULE_CPM_THRESHOLD_TYPE_UNSPECIFIED` | Default value. This value is unused. |
| `FLOOR` | A fixed floor threshold value. |
| `OPTIMIZED` | The floor is optimized. |
| `TARGET` | A specific target is set as the threshold. |

## PricingRuleCandidateSelector

Selector for identifying candidate opportunities for pricing rules.

| JSON representation |
|---|
| ``` { "advertiserBrandSelectors": [ { object (`AdvertiserBrandSelector`) } ], "categorySelector": { object (`PricingRuleCategorySelector`) }, "creativeFormatSelector": { object (`PricingRuleCreativeFormatSelector`) }, "durationSelector": { object (`PricingRuleDurationSelector`) }, "sizeSelector": { object (`PricingRuleSizeSelector`) }, "skippabilitySelector": { object (`PricingRuleSkippabilitySelector`) }, "demandSelector": { object (`PricingRuleDemandSelector`) } } ``` |

| Fields ||
|---|---|
| `advertiserBrandSelectors[]` | ``object (`AdvertiserBrandSelector`)`` Optional. Selects candidates for specific advertisers and their brands. |
| `categorySelector` | ``object (`PricingRuleCategorySelector`)`` Optional. Selects candidates for specific categories. |
| `creativeFormatSelector` | ``object (`PricingRuleCreativeFormatSelector`)`` Optional. Selects candidates based on creative format. |
| `durationSelector` | ``object (`PricingRuleDurationSelector`)`` Optional. Selects candidates based on the minimum duration. |
| `sizeSelector` | ``object (`PricingRuleSizeSelector`)`` Optional. Selects candidates for specific ad sizes. |
| `skippabilitySelector` | ``object (`PricingRuleSkippabilitySelector`)`` Optional. Selects candidates based on the skippability. |
| `demandSelector` | ``object (`PricingRuleDemandSelector`)`` Optional. Selects candidates based on the demand source. |

## AdvertiserBrandSelector

A selection of an advertiser and associated child brands.

| JSON representation |
|---|
| ``` { "exchangeBrands": [ string ], "exchangeAdvertiser": string } ``` |

| Fields ||
|---|---|
| `exchangeBrands[]` | `string` Optional. Unordered list. The resource names for the set of `ExchangeBrand` resources for a given advertiser. Format: `networks/{networkCode}/exchangeBrands/{exchange_brand_id}` |
| `exchangeAdvertiser` | `string` Required. The resource name for the `ExchangeAdvertiser` for this selector. Format: `networks/{networkCode}/exchangeAdvertisers/{exchange_advertiser_id}` |

## PricingRuleCategorySelector

Selector for category-based targeting.

| JSON representation |
|---|
| ``` { "sensitiveCategories": [ string ], "generalCategories": [ string ] } ``` |

| Fields ||
|---|---|
| `sensitiveCategories[]` | `string` Optional. The targeted sensitive categories. Format: `networks/{networkCode}/adCategories/{adCategoryId}` |
| `generalCategories[]` | `string` Optional. The targeted general categories. Format: `networks/{networkCode}/adCategories/{adCategoryId}` |

## PricingRuleCreativeFormatSelector

Selector for creative format targeting.

| JSON representation |
|---|
| ``` { "creativeFormat": enum (`PricingRuleCreativeFormat`) } ``` |

| Fields ||
|---|---|
| `creativeFormat` | ``enum (`PricingRuleCreativeFormat`)`` Optional. The creative format to select. |

## PricingRuleCreativeFormat

The creative format targeted by a pricing rule.

| Enums ||
|---|---|
| `PRICING_RULE_CREATIVE_FORMAT_UNSPECIFIED` | Default value. This value is unused. |
| `DISPLAY` | Display creative format. |
| `VIDEO` | Video creative format. |

## PricingRuleDurationSelector

Selector for video duration targeting.

| JSON representation |
|---|
| ``` { "minimumDuration": string } ``` |

| Fields ||
|---|---|
| `minimumDuration` | ``string (`Duration` format)`` Optional. Minimum duration. A duration in seconds with up to nine fractional digits, ending with '`s`'. Example: `"3.5s"`. |

## PricingRuleSizeSelector

Selector for size-based targeting.

| JSON representation |
|---|
| ``` { "sizes": [ { object (`Size`) } ], "targeted": boolean } ``` |

| Fields ||
|---|---|
| `sizes[]` | ``object (`Size`)`` Optional. The sizes to select. |
| `targeted` | `boolean` Optional. Whether this selector targets the listed sizes. If false, it targets all sizes except those listed. |

## PricingRuleSkippabilitySelector

Selector for skippability targeting.

| JSON representation |
|---|
| ``` { "skipSelectType": enum (`PricingRuleSkipSelectType`) } ``` |

| Fields ||
|---|---|
| `skipSelectType` | ``enum (`PricingRuleSkipSelectType`)`` Optional. The skippability type to select. |

## PricingRuleSkipSelectType

The skippability type targeted by a pricing rule.

| Enums ||
|---|---|
| `PRICING_RULE_SKIP_SELECT_TYPE_UNSPECIFIED` | Default value. This value is unused. |
| `SKIPPABLE` | Target skippable inventory. |
| `NOT_SKIPPABLE` | Target non-skippable inventory. |

## PricingRuleDemandSelector

Selector for demand source targeting.

| JSON representation |
|---|
| ``` { "googleDemandTypes": [ enum (`PricingRuleGoogleDemandType`) ], "authorizedBuyers": { object (`PricingRuleDemandChannelBidderSet`) }, "openBidders": { object (`PricingRuleDemandChannelBidderSet`) }, "sdkBidders": { object (`PricingRuleDemandChannelBidderSet`) }, "headerBiddingBidders": { object (`PricingRuleDemandChannelBidderSet`) }, "remnantLineItemsSelected": boolean } ``` |

| Fields ||
|---|---|
| `googleDemandTypes[]` | ``enum (`PricingRuleGoogleDemandType`)`` Optional. Google demand types. |
| `authorizedBuyers` | ``object (`PricingRuleDemandChannelBidderSet`)`` Optional. Authorized Buyers. |
| `openBidders` | ``object (`PricingRuleDemandChannelBidderSet`)`` Optional. Open Bidders. |
| `sdkBidders` | ``object (`PricingRuleDemandChannelBidderSet`)`` Optional. SDK Bidders. |
| `headerBiddingBidders` | ``object (`PricingRuleDemandChannelBidderSet`)`` Optional. Header Bidding Trafficking bidders. |
| `remnantLineItemsSelected` | `boolean` Optional. Whether remnant line items are selected. |

## PricingRuleGoogleDemandType

The Google demand source type targeted by a pricing rule.

| Enums ||
|---|---|
| `PRICING_RULE_GOOGLE_DEMAND_TYPE_UNSPECIFIED` | Default value. This value is unused. |
| `GOOGLE_ADS` | Google Ads demand. |
| `DISPLAY_VIDEO_360` | Display \& Video 360 demand. |
| `CROSS_PUBLISHER_ADS` | Ad Manager cross-publisher ads campaigns. |

## PricingRuleDemandChannelBidderSet

Set of bidders for a demand channel.

| JSON representation |
|---|
| ``` { "bidders": [ string ], "allSelected": boolean } ``` |

| Fields ||
|---|---|
| `bidders[]` | `string` Optional. Unordered list. Bidders. Format: `networks/{networkCode}/bidders/{bidder_id}` |
| `allSelected` | `boolean` Optional. Whether all bidders are selected. |

## RuleStatus

Status of a rule.

| Enums ||
|---|---|
| `RULE_STATUS_UNSPECIFIED` | Default value. This value is unused. |
| `ACTIVE` | The rule is active. |
| `ARCHIVED` | The rule is archived. |
| `INACTIVE` | The rule is inactive. |

| ## Methods ||
|---|---|
| ### `batchActivate` | Activates a list of `PricingRule` objects. |
| ### `batchDeactivate` | Deactivates a list of `PricingRule` objects. |
| ### `batchEnableTargetCpm` | Enables target CPM for a list of `PricingRule` objects. |
| ### `create` | API to create a `PricingRule` object. |
| ### `get` | API to retrieve a `PricingRule` object. |
| ### `list` | API to retrieve a list of `PricingRule` objects. |
| ### `patch` | API to update a `PricingRule` object. |