REST Resource: networks.pricingRules

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.