- Resource: InventorySource
- InventorySourceType
- InventorySourceProductType
- InventorySourceCommitment
- InventorySourceDeliveryMethod
- InventorySourceStatus
- InventorySourceConfigStatus
- RateDetails
- InventorySourceRateType
- Money
- TimeRange
- CreativeConfig
- InventorySourceDisplayCreativeConfig
- InventorySourceVideoCreativeConfig
- InventorySourceAccessors
- PartnerAccessor
- AdvertiserAccessors
- Methods
Resource: InventorySource
An inventory source.
JSON representation |
---|
{ "name": string, "inventorySourceId": string, "displayName": string, "inventorySourceType": enum ( |
Fields | |
---|---|
name |
Output only. The resource name of the inventory source. |
inventorySourceId |
Output only. The unique ID of the inventory source. Assigned by the system. |
displayName |
The display name of the inventory source. Must be UTF-8 encoded with a maximum size of 240 bytes. |
inventorySourceType |
Denotes the type of the inventory source. |
inventorySourceProductType |
Output only. The product type of the inventory source, denoting the way through which it sells inventory. |
commitment |
Whether the inventory source has a guaranteed or non-guaranteed delivery. |
deliveryMethod |
The delivery method of the inventory source.
|
dealId |
The ID in the exchange space that uniquely identifies the inventory source. Must be unique across buyers within each exchange but not necessarily unique across exchanges. |
status |
The status settings of the inventory source. |
exchange |
The exchange to which the inventory source belongs. |
updateTime |
Output only. The timestamp when the inventory source was last updated. Assigned by the system. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
rateDetails |
Required. The rate details of the inventory source. |
publisherName |
The publisher/seller name of the inventory source. |
timeRange |
The time range when this inventory source starts and stops serving. |
creativeConfigs[] |
The creative requirements of the inventory source. Not applicable for auction packages. |
guaranteedOrderId |
Immutable. The ID of the guaranteed order that this inventory source belongs to. Only applicable when |
readWriteAccessors |
The partner or advertisers that have read/write access to the inventory source. Output only when Required when If |
readAdvertiserIds[] |
Output only. The IDs of advertisers with read-only access to the inventory source. |
readPartnerIds[] |
Output only. The IDs of partners with read-only access to the inventory source. All advertisers of partners in this field inherit read-only access to the inventory source. |
InventorySourceType
Possible inventory source types.
Enums | |
---|---|
INVENTORY_SOURCE_TYPE_UNSPECIFIED |
The inventory source type is not specified or is unknown in this version. |
INVENTORY_SOURCE_TYPE_PRIVATE |
Private inventory source. |
INVENTORY_SOURCE_TYPE_AUCTION_PACKAGE |
Auction package. |
InventorySourceProductType
Possible product types of an inventory source.
Enums | |
---|---|
INVENTORY_SOURCE_PRODUCT_TYPE_UNSPECIFIED |
The product type is not specified or is unknown in this version. Modifying inventory sources of this product type are not supported via API. |
PREFERRED_DEAL |
The inventory source sells inventory through Preferred Deal. |
PRIVATE_AUCTION |
The inventory source sells inventory through Private Auction. |
PROGRAMMATIC_GUARANTEED |
The inventory source sells inventory through Programmatic Guaranteed. |
TAG_GUARANTEED |
The inventory source sells inventory through Tag Guaranteed. |
YOUTUBE_RESERVE |
The inventory source sells inventory through YouTube Reserve. |
INSTANT_RESERVE |
The inventory source sells inventory through Instant Reserve. Modifying inventory sources of this product type are not supported via API. |
GUARANTEED_PACKAGE |
The inventory source sells inventory through Guaranteed Package. Modifying inventory sources of this product type are not supported via API. |
PROGRAMMATIC_TV |
The inventory source sells inventory through Programmtic TV. Modifying inventory sources of this product type are not supported via API. |
AUCTION_PACKAGE |
The inventory source sells inventory through Auction Package. Modifying inventory sources of this product type are not supported via API. |
InventorySourceCommitment
Possible commitment types for an inventory source.
Enums | |
---|---|
INVENTORY_SOURCE_COMMITMENT_UNSPECIFIED |
The commitment is not specified or is unknown in this version. |
INVENTORY_SOURCE_COMMITMENT_GUARANTEED |
The commitment is guaranteed delivery. |
INVENTORY_SOURCE_COMMITMENT_NON_GUARANTEED |
The commitment is non-guaranteed delivery. |
InventorySourceDeliveryMethod
Possible delivery methods for an inventory source.
Enums | |
---|---|
INVENTORY_SOURCE_DELIVERY_METHOD_UNSPECIFIED |
The delivery method is not specified or is unknown in this version. |
INVENTORY_SOURCE_DELIVERY_METHOD_PROGRAMMATIC |
The delivery method is programmatic. |
INVENTORY_SOURCE_DELIVERY_METHOD_TAG |
The delivery method is tag. |
InventorySourceStatus
The status related settings of the inventory source.
JSON representation |
---|
{ "entityStatus": enum ( |
Fields | |
---|---|
entityStatus |
Whether or not the inventory source is servable. Acceptable values are |
entityPauseReason |
The user-provided reason for pausing this inventory source. Must not exceed 100 characters. Only applicable when |
sellerStatus |
Output only. The status set by the seller for the inventory source. Only applicable for inventory sources synced directly from the publishers. Acceptable values are |
sellerPauseReason |
Output only. The seller-provided reason for pausing this inventory source. Only applicable for inventory sources synced directly from the publishers and when |
configStatus |
Output only. The configuration status of the inventory source. Only applicable for guaranteed inventory sources. Acceptable values are An inventory source must be configured (fill in the required fields, choose creatives, and select a default campaign) before it can serve. |
InventorySourceConfigStatus
Possible configuration states for a guaranteed inventory source.
Enums | |
---|---|
INVENTORY_SOURCE_CONFIG_STATUS_UNSPECIFIED |
The approval status is not specified or is unknown in this version. |
INVENTORY_SOURCE_CONFIG_STATUS_PENDING |
The beginning state of a guaranteed inventory source. The inventory source in this state needs to be configured. |
INVENTORY_SOURCE_CONFIG_STATUS_COMPLETED |
The state after the buyer configures a guaranteed inventory source. |
RateDetails
The rate related settings of the inventory source.
JSON representation |
---|
{ "inventorySourceRateType": enum ( |
Fields | |
---|---|
inventorySourceRateType |
The rate type. Acceptable values are |
rate |
The rate for the inventory source. |
unitsPurchased |
Required for guaranteed inventory sources. The number of impressions guaranteed by the seller. |
minimumSpend |
Output only. The amount that the buyer has committed to spending on the inventory source up front. Only applicable for guaranteed inventory sources. |
InventorySourceRateType
Possible rate types for an inventory source.
Enums | |
---|---|
INVENTORY_SOURCE_RATE_TYPE_UNSPECIFIED |
The rate type is not specified or is unknown in this version. |
INVENTORY_SOURCE_RATE_TYPE_CPM_FIXED |
The rate type is CPM (Fixed). |
INVENTORY_SOURCE_RATE_TYPE_CPM_FLOOR |
The rate type is CPM (Floor). |
INVENTORY_SOURCE_RATE_TYPE_CPD |
The rate type is Cost per Day. |
INVENTORY_SOURCE_RATE_TYPE_FLAT |
The rate type is Flat. |
Money
Represents an amount of money with its currency type.
JSON representation |
---|
{ "currencyCode": string, "units": string, "nanos": integer } |
Fields | |
---|---|
currencyCode |
The three-letter currency code defined in ISO 4217. |
units |
The whole units of the amount. For example if |
nanos |
Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If |
TimeRange
A time range.
JSON representation |
---|
{ "startTime": string, "endTime": string } |
Fields | |
---|---|
startTime |
Required. The lower bound of a time range, inclusive. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
endTime |
Required. The upper bound of a time range, inclusive. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
CreativeConfig
Creative requirements configuration for the inventory source.
JSON representation |
---|
{ "creativeType": enum ( |
Fields | |
---|---|
creativeType |
The type of creative that can be assigned to the inventory source. Only the following types are supported:
|
Union field
The configuration for the creatives that can be assigned to the inventory source. |
|
displayCreativeConfig |
The configuration for display creatives. Applicable when |
videoCreativeConfig |
The configuration for video creatives. Applicable when |
InventorySourceDisplayCreativeConfig
The configuration for display creatives.
JSON representation |
---|
{
"creativeSize": {
object ( |
Fields | |
---|---|
creativeSize |
The size requirements for display creatives that can be assigned to the inventory source. |
InventorySourceVideoCreativeConfig
The configuration for video creatives.
JSON representation |
---|
{ "duration": string } |
Fields | |
---|---|
duration |
The duration requirements for the video creatives that can be assigned to the inventory source. A duration in seconds with up to nine fractional digits, ending with ' |
InventorySourceAccessors
The partner or advertisers with access to the inventory source.
JSON representation |
---|
{ // Union field |
Fields | |
---|---|
Union field accessors . The partner or advertisers with access to the inventory source. accessors can be only one of the following: |
|
partner |
The partner with access to the inventory source. |
advertisers |
The advertisers with access to the inventory source. All advertisers must belong to the same partner. |
PartnerAccessor
The partner with access to the inventory source.
JSON representation |
---|
{ "partnerId": string } |
Fields | |
---|---|
partnerId |
The ID of the partner. |
AdvertiserAccessors
The advertisers with access to the inventory source.
JSON representation |
---|
{ "advertiserIds": [ string ] } |
Fields | |
---|---|
advertiserIds[] |
The IDs of the advertisers. |
Methods |
|
---|---|
|
Creates a new inventory source. |
|
Edits read/write accessors of an inventory source. |
|
Gets an inventory source. |
|
Lists inventory sources that are accessible to the current user. |
|
Updates an existing inventory source. |