Delete the specified deals from the proposal
Add new deals for the specified proposal
List all the deals for a given proposal
Replaces all the deals in the proposal with the passed in deals
delete(proposalId, body)
Delete the specified deals from the proposal Args: proposalId: string, The proposalId to delete deals from. (required) body: object, The request body. (required) The object takes the form of: { "proposalRevisionNumber": "A String", # The last known proposal revision number. "updateAction": "A String", "dealIds": [ # List of deals to delete for a given proposal "A String", ], } Returns: An object of the form: { "deals": [ # List of deals deleted (in the same proposal as passed in the request) { # A proposal can contain multiple deals. A deal contains the terms and targeting information that is used for serving. "deliveryControl": { # The set of fields around delivery control that are interesting for a buyer to see but are non-negotiable. These are set by the publisher. This message is assigned an id of 100 since some day we would want to model this as a protobuf extension. "frequencyCaps": [ { "numTimeUnits": 42, "timeUnitType": "A String", "maxImpressions": 42, }, ], "creativeBlockingLevel": "A String", "deliveryRateType": "A String", }, "kind": "adexchangebuyer#marketplaceDeal", # Identifies what kind of resource this is. Value: the fixed string "adexchangebuyer#marketplaceDeal". "creativePreApprovalPolicy": "A String", # Specifies the creative pre-approval policy (buyer-readonly) "name": "A String", # The name of the deal. (updatable) "buyerPrivateData": { # Buyer private data (hidden from seller). "referenceId": "A String", "referencePayload": "A String", }, "syndicationProduct": "A String", # The syndication product associated with the deal. (readonly, except on create) "flightEndTimeMs": "A String", # Proposed flight end time of the deal (ms since epoch) This will generally be stored in a granularity of a second. (updatable) "sharedTargetings": [ # The shared targeting visible to buyers and sellers. (updatable) { "inclusions": [ # The list of value to include as part of the targeting. { "longValue": "A String", # The long value to exclude/include. "dayPartTargetingValue": { # The daypart targeting to include / exclude. Filled in when the key is GOOG_DAYPART_TARGETING. "dayParts": [ { "dayOfWeek": "A String", "endHour": 42, "startMinute": 42, "endMinute": 42, "startHour": 42, }, ], "timeZoneType": "A String", }, "creativeSizeValue": { # The creative size value to exclude/include. "creativeSizeType": "A String", # The Creative size type. "companionSizes": [ # For video size type, the list of companion sizes. { "width": 42, # The width of the creative. "height": 42, # The height of the creative. }, ], "size": { # For regular or video creative size type, specifies the size of the creative. "width": 42, # The width of the creative. "height": 42, # The height of the creative. }, }, "stringValue": "A String", # The string value to exclude/include. }, ], "exclusions": [ # The list of values to exclude from targeting. { "longValue": "A String", # The long value to exclude/include. "dayPartTargetingValue": { # The daypart targeting to include / exclude. Filled in when the key is GOOG_DAYPART_TARGETING. "dayParts": [ { "dayOfWeek": "A String", "endHour": 42, "startMinute": 42, "endMinute": 42, "startHour": 42, }, ], "timeZoneType": "A String", }, "creativeSizeValue": { # The creative size value to exclude/include. "creativeSizeType": "A String", # The Creative size type. "companionSizes": [ # For video size type, the list of companion sizes. { "width": 42, # The width of the creative. "height": 42, # The height of the creative. }, ], "size": { # For regular or video creative size type, specifies the size of the creative. "width": 42, # The width of the creative. "height": 42, # The height of the creative. }, }, "stringValue": "A String", # The string value to exclude/include. }, ], "key": "A String", # The key representing the shared targeting criterion. }, ], "productRevisionNumber": "A String", # The revision number of the product that the deal was created from (readonly, except on create) "dealId": "A String", # A unique deal=id for the deal (readonly). "sellerContacts": [ # Optional Seller contact information for the deal (buyer-readonly) { "email": "A String", # Email address of the contact. "name": "A String", # The name of the contact. }, ], "webPropertyCode": "A String", "proposalId": "A String", "flightStartTimeMs": "A String", # Proposed flight start time of the deal (ms since epoch) This will generally be stored in a granularity of a second. (updatable) "terms": { # The negotiable terms of the deal. (updatable) "brandingType": "A String", # Visibilty of the URL in bid requests. "estimatedGrossSpend": { # Non-binding estimate of the estimated gross spend for this deal Can be set by buyer or seller. "pricingType": "A String", # The pricing type for the deal/product. "currencyCode": "A String", # The currency code for the price. "amountMicros": 3.14, # The price value in micros. }, "estimatedImpressionsPerDay": "A String", # Non-binding estimate of the impressions served per day Can be set by buyer or seller. "nonGuaranteedFixedPriceTerms": { # The terms for non-guaranteed fixed price deals. "fixedPrices": [ # Fixed price for the specified buyer. { # Used to specify pricing rules for buyers/advertisers. Each PricePerBuyer in an product can become [0,1] deals. To check if there is a PricePerBuyer for a particular buyer or buyer/advertiser pair, we look for the most specific matching rule - we first look for a rule matching the buyer and advertiser, next a rule with the buyer but an empty advertiser list, and otherwise look for a matching rule where no buyer is set. "buyer": { # The buyer who will pay this price. If unset, all buyers can pay this price (if the advertisers match, and there's no more specific rule matching the buyer). "accountId": "A String", # Adx account id of the buyer. }, "price": { # The specified price "pricingType": "A String", # The pricing type for the deal/product. "currencyCode": "A String", # The currency code for the price. "amountMicros": 3.14, # The price value in micros. }, }, ], }, "guaranteedFixedPriceTerms": { # The terms for guaranteed fixed price deals. "guaranteedImpressions": "A String", # Guaranteed impressions as a percentage. This is the percentage of guaranteed looks that the buyer is guaranteeing to buy. "fixedPrices": [ # Fixed price for the specified buyer. { # Used to specify pricing rules for buyers/advertisers. Each PricePerBuyer in an product can become [0,1] deals. To check if there is a PricePerBuyer for a particular buyer or buyer/advertiser pair, we look for the most specific matching rule - we first look for a rule matching the buyer and advertiser, next a rule with the buyer but an empty advertiser list, and otherwise look for a matching rule where no buyer is set. "buyer": { # The buyer who will pay this price. If unset, all buyers can pay this price (if the advertisers match, and there's no more specific rule matching the buyer). "accountId": "A String", # Adx account id of the buyer. }, "price": { # The specified price "pricingType": "A String", # The pricing type for the deal/product. "currencyCode": "A String", # The currency code for the price. "amountMicros": 3.14, # The price value in micros. }, }, ], "guaranteedLooks": "A String", # Count of guaranteed looks. Required for deal, optional for product. }, "nonGuaranteedAuctionTerms": { # The terms for non-guaranteed auction deals. "reservePricePerBuyers": [ # Reserve price for the specified buyer. { # Used to specify pricing rules for buyers/advertisers. Each PricePerBuyer in an product can become [0,1] deals. To check if there is a PricePerBuyer for a particular buyer or buyer/advertiser pair, we look for the most specific matching rule - we first look for a rule matching the buyer and advertiser, next a rule with the buyer but an empty advertiser list, and otherwise look for a matching rule where no buyer is set. "buyer": { # The buyer who will pay this price. If unset, all buyers can pay this price (if the advertisers match, and there's no more specific rule matching the buyer). "accountId": "A String", # Adx account id of the buyer. }, "price": { # The specified price "pricingType": "A String", # The pricing type for the deal/product. "currencyCode": "A String", # The currency code for the price. "amountMicros": 3.14, # The price value in micros. }, }, ], "privateAuctionId": "A String", # Id of the corresponding private auction. }, "description": "A String", # Description for the proposed terms of the deal. }, "creationTimeMs": "A String", # The time (ms since epoch) of the deal creation. (readonly) "lastUpdateTimeMs": "A String", # The time (ms since epoch) when the deal was last updated. (readonly) "externalDealId": "A String", # The external deal id assigned to this deal once the deal is finalized. This is the deal-id that shows up in serving/reporting etc. (readonly) "inventoryDescription": "A String", # Description for the deal terms. (updatable) "productId": "A String", # The product-id from which this deal was created. (readonly, except on create) }, ], "proposalRevisionNumber": "A String", # The updated revision number for the proposal. }
insert(proposalId, body)
Add new deals for the specified proposal Args: proposalId: string, proposalId for which deals need to be added. (required) body: object, The request body. (required) The object takes the form of: { "deals": [ # The list of deals to add { # A proposal can contain multiple deals. A deal contains the terms and targeting information that is used for serving. "deliveryControl": { # The set of fields around delivery control that are interesting for a buyer to see but are non-negotiable. These are set by the publisher. This message is assigned an id of 100 since some day we would want to model this as a protobuf extension. "frequencyCaps": [ { "numTimeUnits": 42, "timeUnitType": "A String", "maxImpressions": 42, }, ], "creativeBlockingLevel": "A String", "deliveryRateType": "A String", }, "kind": "adexchangebuyer#marketplaceDeal", # Identifies what kind of resource this is. Value: the fixed string "adexchangebuyer#marketplaceDeal". "creativePreApprovalPolicy": "A String", # Specifies the creative pre-approval policy (buyer-readonly) "name": "A String", # The name of the deal. (updatable) "buyerPrivateData": { # Buyer private data (hidden from seller). "referenceId": "A String", "referencePayload": "A String", }, "syndicationProduct": "A String", # The syndication product associated with the deal. (readonly, except on create) "flightEndTimeMs": "A String", # Proposed flight end time of the deal (ms since epoch) This will generally be stored in a granularity of a second. (updatable) "sharedTargetings": [ # The shared targeting visible to buyers and sellers. (updatable) { "inclusions": [ # The list of value to include as part of the targeting. { "longValue": "A String", # The long value to exclude/include. "dayPartTargetingValue": { # The daypart targeting to include / exclude. Filled in when the key is GOOG_DAYPART_TARGETING. "dayParts": [ { "dayOfWeek": "A String", "endHour": 42, "startMinute": 42, "endMinute": 42, "startHour": 42, }, ], "timeZoneType": "A String", }, "creativeSizeValue": { # The creative size value to exclude/include. "creativeSizeType": "A String", # The Creative size type. "companionSizes": [ # For video size type, the list of companion sizes. { "width": 42, # The width of the creative. "height": 42, # The height of the creative. }, ], "size": { # For regular or video creative size type, specifies the size of the creative. "width": 42, # The width of the creative. "height": 42, # The height of the creative. }, }, "stringValue": "A String", # The string value to exclude/include. }, ], "exclusions": [ # The list of values to exclude from targeting. { "longValue": "A String", # The long value to exclude/include. "dayPartTargetingValue": { # The daypart targeting to include / exclude. Filled in when the key is GOOG_DAYPART_TARGETING. "dayParts": [ { "dayOfWeek": "A String", "endHour": 42, "startMinute": 42, "endMinute": 42, "startHour": 42, }, ], "timeZoneType": "A String", }, "creativeSizeValue": { # The creative size value to exclude/include. "creativeSizeType": "A String", # The Creative size type. "companionSizes": [ # For video size type, the list of companion sizes. { "width": 42, # The width of the creative. "height": 42, # The height of the creative. }, ], "size": { # For regular or video creative size type, specifies the size of the creative. "width": 42, # The width of the creative. "height": 42, # The height of the creative. }, }, "stringValue": "A String", # The string value to exclude/include. }, ], "key": "A String", # The key representing the shared targeting criterion. }, ], "productRevisionNumber": "A String", # The revision number of the product that the deal was created from (readonly, except on create) "dealId": "A String", # A unique deal=id for the deal (readonly). "sellerContacts": [ # Optional Seller contact information for the deal (buyer-readonly) { "email": "A String", # Email address of the contact. "name": "A String", # The name of the contact. }, ], "webPropertyCode": "A String", "proposalId": "A String", "flightStartTimeMs": "A String", # Proposed flight start time of the deal (ms since epoch) This will generally be stored in a granularity of a second. (updatable) "terms": { # The negotiable terms of the deal. (updatable) "brandingType": "A String", # Visibilty of the URL in bid requests. "estimatedGrossSpend": { # Non-binding estimate of the estimated gross spend for this deal Can be set by buyer or seller. "pricingType": "A String", # The pricing type for the deal/product. "currencyCode": "A String", # The currency code for the price. "amountMicros": 3.14, # The price value in micros. }, "estimatedImpressionsPerDay": "A String", # Non-binding estimate of the impressions served per day Can be set by buyer or seller. "nonGuaranteedFixedPriceTerms": { # The terms for non-guaranteed fixed price deals. "fixedPrices": [ # Fixed price for the specified buyer. { # Used to specify pricing rules for buyers/advertisers. Each PricePerBuyer in an product can become [0,1] deals. To check if there is a PricePerBuyer for a particular buyer or buyer/advertiser pair, we look for the most specific matching rule - we first look for a rule matching the buyer and advertiser, next a rule with the buyer but an empty advertiser list, and otherwise look for a matching rule where no buyer is set. "buyer": { # The buyer who will pay this price. If unset, all buyers can pay this price (if the advertisers match, and there's no more specific rule matching the buyer). "accountId": "A String", # Adx account id of the buyer. }, "price": { # The specified price "pricingType": "A String", # The pricing type for the deal/product. "currencyCode": "A String", # The currency code for the price. "amountMicros": 3.14, # The price value in micros. }, }, ], }, "guaranteedFixedPriceTerms": { # The terms for guaranteed fixed price deals. "guaranteedImpressions": "A String", # Guaranteed impressions as a percentage. This is the percentage of guaranteed looks that the buyer is guaranteeing to buy. "fixedPrices": [ # Fixed price for the specified buyer. { # Used to specify pricing rules for buyers/advertisers. Each PricePerBuyer in an product can become [0,1] deals. To check if there is a PricePerBuyer for a particular buyer or buyer/advertiser pair, we look for the most specific matching rule - we first look for a rule matching the buyer and advertiser, next a rule with the buyer but an empty advertiser list, and otherwise look for a matching rule where no buyer is set. "buyer": { # The buyer who will pay this price. If unset, all buyers can pay this price (if the advertisers match, and there's no more specific rule matching the buyer). "accountId": "A String", # Adx account id of the buyer. }, "price": { # The specified price "pricingType": "A String", # The pricing type for the deal/product. "currencyCode": "A String", # The currency code for the price. "amountMicros": 3.14, # The price value in micros. }, }, ], "guaranteedLooks": "A String", # Count of guaranteed looks. Required for deal, optional for product. }, "nonGuaranteedAuctionTerms": { # The terms for non-guaranteed auction deals. "reservePricePerBuyers": [ # Reserve price for the specified buyer. { # Used to specify pricing rules for buyers/advertisers. Each PricePerBuyer in an product can become [0,1] deals. To check if there is a PricePerBuyer for a particular buyer or buyer/advertiser pair, we look for the most specific matching rule - we first look for a rule matching the buyer and advertiser, next a rule with the buyer but an empty advertiser list, and otherwise look for a matching rule where no buyer is set. "buyer": { # The buyer who will pay this price. If unset, all buyers can pay this price (if the advertisers match, and there's no more specific rule matching the buyer). "accountId": "A String", # Adx account id of the buyer. }, "price": { # The specified price "pricingType": "A String", # The pricing type for the deal/product. "currencyCode": "A String", # The currency code for the price. "amountMicros": 3.14, # The price value in micros. }, }, ], "privateAuctionId": "A String", # Id of the corresponding private auction. }, "description": "A String", # Description for the proposed terms of the deal. }, "creationTimeMs": "A String", # The time (ms since epoch) of the deal creation. (readonly) "lastUpdateTimeMs": "A String", # The time (ms since epoch) when the deal was last updated. (readonly) "externalDealId": "A String", # The external deal id assigned to this deal once the deal is finalized. This is the deal-id that shows up in serving/reporting etc. (readonly) "inventoryDescription": "A String", # Description for the deal terms. (updatable) "productId": "A String", # The product-id from which this deal was created. (readonly, except on create) }, ], "proposalRevisionNumber": "A String", # The last known proposal revision number. "updateAction": "A String", # Indicates an optional action to take on the proposal } Returns: An object of the form: { "deals": [ # List of deals added (in the same proposal as passed in the request) { # A proposal can contain multiple deals. A deal contains the terms and targeting information that is used for serving. "deliveryControl": { # The set of fields around delivery control that are interesting for a buyer to see but are non-negotiable. These are set by the publisher. This message is assigned an id of 100 since some day we would want to model this as a protobuf extension. "frequencyCaps": [ { "numTimeUnits": 42, "timeUnitType": "A String", "maxImpressions": 42, }, ], "creativeBlockingLevel": "A String", "deliveryRateType": "A String", }, "kind": "adexchangebuyer#marketplaceDeal", # Identifies what kind of resource this is. Value: the fixed string "adexchangebuyer#marketplaceDeal". "creativePreApprovalPolicy": "A String", # Specifies the creative pre-approval policy (buyer-readonly) "name": "A String", # The name of the deal. (updatable) "buyerPrivateData": { # Buyer private data (hidden from seller). "referenceId": "A String", "referencePayload": "A String", }, "syndicationProduct": "A String", # The syndication product associated with the deal. (readonly, except on create) "flightEndTimeMs": "A String", # Proposed flight end time of the deal (ms since epoch) This will generally be stored in a granularity of a second. (updatable) "sharedTargetings": [ # The shared targeting visible to buyers and sellers. (updatable) { "inclusions": [ # The list of value to include as part of the targeting. { "longValue": "A String", # The long value to exclude/include. "dayPartTargetingValue": { # The daypart targeting to include / exclude. Filled in when the key is GOOG_DAYPART_TARGETING. "dayParts": [ { "dayOfWeek": "A String", "endHour": 42, "startMinute": 42, "endMinute": 42, "startHour": 42, }, ], "timeZoneType": "A String", }, "creativeSizeValue": { # The creative size value to exclude/include. "creativeSizeType": "A String", # The Creative size type. "companionSizes": [ # For video size type, the list of companion sizes. { "width": 42, # The width of the creative. "height": 42, # The height of the creative. }, ], "size": { # For regular or video creative size type, specifies the size of the creative. "width": 42, # The width of the creative. "height": 42, # The height of the creative. }, }, "stringValue": "A String", # The string value to exclude/include. }, ], "exclusions": [ # The list of values to exclude from targeting. { "longValue": "A String", # The long value to exclude/include. "dayPartTargetingValue": { # The daypart targeting to include / exclude. Filled in when the key is GOOG_DAYPART_TARGETING. "dayParts": [ { "dayOfWeek": "A String", "endHour": 42, "startMinute": 42, "endMinute": 42, "startHour": 42, }, ], "timeZoneType": "A String", }, "creativeSizeValue": { # The creative size value to exclude/include. "creativeSizeType": "A String", # The Creative size type. "companionSizes": [ # For video size type, the list of companion sizes. { "width": 42, # The width of the creative. "height": 42, # The height of the creative. }, ], "size": { # For regular or video creative size type, specifies the size of the creative. "width": 42, # The width of the creative. "height": 42, # The height of the creative. }, }, "stringValue": "A String", # The string value to exclude/include. }, ], "key": "A String", # The key representing the shared targeting criterion. }, ], "productRevisionNumber": "A String", # The revision number of the product that the deal was created from (readonly, except on create) "dealId": "A String", # A unique deal=id for the deal (readonly). "sellerContacts": [ # Optional Seller contact information for the deal (buyer-readonly) { "email": "A String", # Email address of the contact. "name": "A String", # The name of the contact. }, ], "webPropertyCode": "A String", "proposalId": "A String", "flightStartTimeMs": "A String", # Proposed flight start time of the deal (ms since epoch) This will generally be stored in a granularity of a second. (updatable) "terms": { # The negotiable terms of the deal. (updatable) "brandingType": "A String", # Visibilty of the URL in bid requests. "estimatedGrossSpend": { # Non-binding estimate of the estimated gross spend for this deal Can be set by buyer or seller. "pricingType": "A String", # The pricing type for the deal/product. "currencyCode": "A String", # The currency code for the price. "amountMicros": 3.14, # The price value in micros. }, "estimatedImpressionsPerDay": "A String", # Non-binding estimate of the impressions served per day Can be set by buyer or seller. "nonGuaranteedFixedPriceTerms": { # The terms for non-guaranteed fixed price deals. "fixedPrices": [ # Fixed price for the specified buyer. { # Used to specify pricing rules for buyers/advertisers. Each PricePerBuyer in an product can become [0,1] deals. To check if there is a PricePerBuyer for a particular buyer or buyer/advertiser pair, we look for the most specific matching rule - we first look for a rule matching the buyer and advertiser, next a rule with the buyer but an empty advertiser list, and otherwise look for a matching rule where no buyer is set. "buyer": { # The buyer who will pay this price. If unset, all buyers can pay this price (if the advertisers match, and there's no more specific rule matching the buyer). "accountId": "A String", # Adx account id of the buyer. }, "price": { # The specified price "pricingType": "A String", # The pricing type for the deal/product. "currencyCode": "A String", # The currency code for the price. "amountMicros": 3.14, # The price value in micros. }, }, ], }, "guaranteedFixedPriceTerms": { # The terms for guaranteed fixed price deals. "guaranteedImpressions": "A String", # Guaranteed impressions as a percentage. This is the percentage of guaranteed looks that the buyer is guaranteeing to buy. "fixedPrices": [ # Fixed price for the specified buyer. { # Used to specify pricing rules for buyers/advertisers. Each PricePerBuyer in an product can become [0,1] deals. To check if there is a PricePerBuyer for a particular buyer or buyer/advertiser pair, we look for the most specific matching rule - we first look for a rule matching the buyer and advertiser, next a rule with the buyer but an empty advertiser list, and otherwise look for a matching rule where no buyer is set. "buyer": { # The buyer who will pay this price. If unset, all buyers can pay this price (if the advertisers match, and there's no more specific rule matching the buyer). "accountId": "A String", # Adx account id of the buyer. }, "price": { # The specified price "pricingType": "A String", # The pricing type for the deal/product. "currencyCode": "A String", # The currency code for the price. "amountMicros": 3.14, # The price value in micros. }, }, ], "guaranteedLooks": "A String", # Count of guaranteed looks. Required for deal, optional for product. }, "nonGuaranteedAuctionTerms": { # The terms for non-guaranteed auction deals. "reservePricePerBuyers": [ # Reserve price for the specified buyer. { # Used to specify pricing rules for buyers/advertisers. Each PricePerBuyer in an product can become [0,1] deals. To check if there is a PricePerBuyer for a particular buyer or buyer/advertiser pair, we look for the most specific matching rule - we first look for a rule matching the buyer and advertiser, next a rule with the buyer but an empty advertiser list, and otherwise look for a matching rule where no buyer is set. "buyer": { # The buyer who will pay this price. If unset, all buyers can pay this price (if the advertisers match, and there's no more specific rule matching the buyer). "accountId": "A String", # Adx account id of the buyer. }, "price": { # The specified price "pricingType": "A String", # The pricing type for the deal/product. "currencyCode": "A String", # The currency code for the price. "amountMicros": 3.14, # The price value in micros. }, }, ], "privateAuctionId": "A String", # Id of the corresponding private auction. }, "description": "A String", # Description for the proposed terms of the deal. }, "creationTimeMs": "A String", # The time (ms since epoch) of the deal creation. (readonly) "lastUpdateTimeMs": "A String", # The time (ms since epoch) when the deal was last updated. (readonly) "externalDealId": "A String", # The external deal id assigned to this deal once the deal is finalized. This is the deal-id that shows up in serving/reporting etc. (readonly) "inventoryDescription": "A String", # Description for the deal terms. (updatable) "productId": "A String", # The product-id from which this deal was created. (readonly, except on create) }, ], "proposalRevisionNumber": "A String", # The updated revision number for the proposal. }
list(proposalId)
List all the deals for a given proposal Args: proposalId: string, The proposalId to get deals for. (required) Returns: An object of the form: { "deals": [ # List of deals for the proposal { # A proposal can contain multiple deals. A deal contains the terms and targeting information that is used for serving. "deliveryControl": { # The set of fields around delivery control that are interesting for a buyer to see but are non-negotiable. These are set by the publisher. This message is assigned an id of 100 since some day we would want to model this as a protobuf extension. "frequencyCaps": [ { "numTimeUnits": 42, "timeUnitType": "A String", "maxImpressions": 42, }, ], "creativeBlockingLevel": "A String", "deliveryRateType": "A String", }, "kind": "adexchangebuyer#marketplaceDeal", # Identifies what kind of resource this is. Value: the fixed string "adexchangebuyer#marketplaceDeal". "creativePreApprovalPolicy": "A String", # Specifies the creative pre-approval policy (buyer-readonly) "name": "A String", # The name of the deal. (updatable) "buyerPrivateData": { # Buyer private data (hidden from seller). "referenceId": "A String", "referencePayload": "A String", }, "syndicationProduct": "A String", # The syndication product associated with the deal. (readonly, except on create) "flightEndTimeMs": "A String", # Proposed flight end time of the deal (ms since epoch) This will generally be stored in a granularity of a second. (updatable) "sharedTargetings": [ # The shared targeting visible to buyers and sellers. (updatable) { "inclusions": [ # The list of value to include as part of the targeting. { "longValue": "A String", # The long value to exclude/include. "dayPartTargetingValue": { # The daypart targeting to include / exclude. Filled in when the key is GOOG_DAYPART_TARGETING. "dayParts": [ { "dayOfWeek": "A String", "endHour": 42, "startMinute": 42, "endMinute": 42, "startHour": 42, }, ], "timeZoneType": "A String", }, "creativeSizeValue": { # The creative size value to exclude/include. "creativeSizeType": "A String", # The Creative size type. "companionSizes": [ # For video size type, the list of companion sizes. { "width": 42, # The width of the creative. "height": 42, # The height of the creative. }, ], "size": { # For regular or video creative size type, specifies the size of the creative. "width": 42, # The width of the creative. "height": 42, # The height of the creative. }, }, "stringValue": "A String", # The string value to exclude/include. }, ], "exclusions": [ # The list of values to exclude from targeting. { "longValue": "A String", # The long value to exclude/include. "dayPartTargetingValue": { # The daypart targeting to include / exclude. Filled in when the key is GOOG_DAYPART_TARGETING. "dayParts": [ { "dayOfWeek": "A String", "endHour": 42, "startMinute": 42, "endMinute": 42, "startHour": 42, }, ], "timeZoneType": "A String", }, "creativeSizeValue": { # The creative size value to exclude/include. "creativeSizeType": "A String", # The Creative size type. "companionSizes": [ # For video size type, the list of companion sizes. { "width": 42, # The width of the creative. "height": 42, # The height of the creative. }, ], "size": { # For regular or video creative size type, specifies the size of the creative. "width": 42, # The width of the creative. "height": 42, # The height of the creative. }, }, "stringValue": "A String", # The string value to exclude/include. }, ], "key": "A String", # The key representing the shared targeting criterion. }, ], "productRevisionNumber": "A String", # The revision number of the product that the deal was created from (readonly, except on create) "dealId": "A String", # A unique deal=id for the deal (readonly). "sellerContacts": [ # Optional Seller contact information for the deal (buyer-readonly) { "email": "A String", # Email address of the contact. "name": "A String", # The name of the contact. }, ], "webPropertyCode": "A String", "proposalId": "A String", "flightStartTimeMs": "A String", # Proposed flight start time of the deal (ms since epoch) This will generally be stored in a granularity of a second. (updatable) "terms": { # The negotiable terms of the deal. (updatable) "brandingType": "A String", # Visibilty of the URL in bid requests. "estimatedGrossSpend": { # Non-binding estimate of the estimated gross spend for this deal Can be set by buyer or seller. "pricingType": "A String", # The pricing type for the deal/product. "currencyCode": "A String", # The currency code for the price. "amountMicros": 3.14, # The price value in micros. }, "estimatedImpressionsPerDay": "A String", # Non-binding estimate of the impressions served per day Can be set by buyer or seller. "nonGuaranteedFixedPriceTerms": { # The terms for non-guaranteed fixed price deals. "fixedPrices": [ # Fixed price for the specified buyer. { # Used to specify pricing rules for buyers/advertisers. Each PricePerBuyer in an product can become [0,1] deals. To check if there is a PricePerBuyer for a particular buyer or buyer/advertiser pair, we look for the most specific matching rule - we first look for a rule matching the buyer and advertiser, next a rule with the buyer but an empty advertiser list, and otherwise look for a matching rule where no buyer is set. "buyer": { # The buyer who will pay this price. If unset, all buyers can pay this price (if the advertisers match, and there's no more specific rule matching the buyer). "accountId": "A String", # Adx account id of the buyer. }, "price": { # The specified price "pricingType": "A String", # The pricing type for the deal/product. "currencyCode": "A String", # The currency code for the price. "amountMicros": 3.14, # The price value in micros. }, }, ], }, "guaranteedFixedPriceTerms": { # The terms for guaranteed fixed price deals. "guaranteedImpressions": "A String", # Guaranteed impressions as a percentage. This is the percentage of guaranteed looks that the buyer is guaranteeing to buy. "fixedPrices": [ # Fixed price for the specified buyer. { # Used to specify pricing rules for buyers/advertisers. Each PricePerBuyer in an product can become [0,1] deals. To check if there is a PricePerBuyer for a particular buyer or buyer/advertiser pair, we look for the most specific matching rule - we first look for a rule matching the buyer and advertiser, next a rule with the buyer but an empty advertiser list, and otherwise look for a matching rule where no buyer is set. "buyer": { # The buyer who will pay this price. If unset, all buyers can pay this price (if the advertisers match, and there's no more specific rule matching the buyer). "accountId": "A String", # Adx account id of the buyer. }, "price": { # The specified price "pricingType": "A String", # The pricing type for the deal/product. "currencyCode": "A String", # The currency code for the price. "amountMicros": 3.14, # The price value in micros. }, }, ], "guaranteedLooks": "A String", # Count of guaranteed looks. Required for deal, optional for product. }, "nonGuaranteedAuctionTerms": { # The terms for non-guaranteed auction deals. "reservePricePerBuyers": [ # Reserve price for the specified buyer. { # Used to specify pricing rules for buyers/advertisers. Each PricePerBuyer in an product can become [0,1] deals. To check if there is a PricePerBuyer for a particular buyer or buyer/advertiser pair, we look for the most specific matching rule - we first look for a rule matching the buyer and advertiser, next a rule with the buyer but an empty advertiser list, and otherwise look for a matching rule where no buyer is set. "buyer": { # The buyer who will pay this price. If unset, all buyers can pay this price (if the advertisers match, and there's no more specific rule matching the buyer). "accountId": "A String", # Adx account id of the buyer. }, "price": { # The specified price "pricingType": "A String", # The pricing type for the deal/product. "currencyCode": "A String", # The currency code for the price. "amountMicros": 3.14, # The price value in micros. }, }, ], "privateAuctionId": "A String", # Id of the corresponding private auction. }, "description": "A String", # Description for the proposed terms of the deal. }, "creationTimeMs": "A String", # The time (ms since epoch) of the deal creation. (readonly) "lastUpdateTimeMs": "A String", # The time (ms since epoch) when the deal was last updated. (readonly) "externalDealId": "A String", # The external deal id assigned to this deal once the deal is finalized. This is the deal-id that shows up in serving/reporting etc. (readonly) "inventoryDescription": "A String", # Description for the deal terms. (updatable) "productId": "A String", # The product-id from which this deal was created. (readonly, except on create) }, ], }
update(proposalId, body)
Replaces all the deals in the proposal with the passed in deals Args: proposalId: string, The proposalId to edit deals on. (required) body: object, The request body. (required) The object takes the form of: { "deals": [ # List of deals to edit. Service may perform 3 different operations based on comparison of deals in this list vs deals already persisted in database: 1. Add new deal to proposal If a deal in this list does not exist in the proposal, the service will create a new deal and add it to the proposal. Validation will follow AddOrderDealsRequest. 2. Update existing deal in the proposal If a deal in this list already exist in the proposal, the service will update that existing deal to this new deal in the request. Validation will follow UpdateOrderDealsRequest. 3. Delete deals from the proposal (just need the id) If a existing deal in the proposal is not present in this list, the service will delete that deal from the proposal. Validation will follow DeleteOrderDealsRequest. { # A proposal can contain multiple deals. A deal contains the terms and targeting information that is used for serving. "deliveryControl": { # The set of fields around delivery control that are interesting for a buyer to see but are non-negotiable. These are set by the publisher. This message is assigned an id of 100 since some day we would want to model this as a protobuf extension. "frequencyCaps": [ { "numTimeUnits": 42, "timeUnitType": "A String", "maxImpressions": 42, }, ], "creativeBlockingLevel": "A String", "deliveryRateType": "A String", }, "kind": "adexchangebuyer#marketplaceDeal", # Identifies what kind of resource this is. Value: the fixed string "adexchangebuyer#marketplaceDeal". "creativePreApprovalPolicy": "A String", # Specifies the creative pre-approval policy (buyer-readonly) "name": "A String", # The name of the deal. (updatable) "buyerPrivateData": { # Buyer private data (hidden from seller). "referenceId": "A String", "referencePayload": "A String", }, "syndicationProduct": "A String", # The syndication product associated with the deal. (readonly, except on create) "flightEndTimeMs": "A String", # Proposed flight end time of the deal (ms since epoch) This will generally be stored in a granularity of a second. (updatable) "sharedTargetings": [ # The shared targeting visible to buyers and sellers. (updatable) { "inclusions": [ # The list of value to include as part of the targeting. { "longValue": "A String", # The long value to exclude/include. "dayPartTargetingValue": { # The daypart targeting to include / exclude. Filled in when the key is GOOG_DAYPART_TARGETING. "dayParts": [ { "dayOfWeek": "A String", "endHour": 42, "startMinute": 42, "endMinute": 42, "startHour": 42, }, ], "timeZoneType": "A String", }, "creativeSizeValue": { # The creative size value to exclude/include. "creativeSizeType": "A String", # The Creative size type. "companionSizes": [ # For video size type, the list of companion sizes. { "width": 42, # The width of the creative. "height": 42, # The height of the creative. }, ], "size": { # For regular or video creative size type, specifies the size of the creative. "width": 42, # The width of the creative. "height": 42, # The height of the creative. }, }, "stringValue": "A String", # The string value to exclude/include. }, ], "exclusions": [ # The list of values to exclude from targeting. { "longValue": "A String", # The long value to exclude/include. "dayPartTargetingValue": { # The daypart targeting to include / exclude. Filled in when the key is GOOG_DAYPART_TARGETING. "dayParts": [ { "dayOfWeek": "A String", "endHour": 42, "startMinute": 42, "endMinute": 42, "startHour": 42, }, ], "timeZoneType": "A String", }, "creativeSizeValue": { # The creative size value to exclude/include. "creativeSizeType": "A String", # The Creative size type. "companionSizes": [ # For video size type, the list of companion sizes. { "width": 42, # The width of the creative. "height": 42, # The height of the creative. }, ], "size": { # For regular or video creative size type, specifies the size of the creative. "width": 42, # The width of the creative. "height": 42, # The height of the creative. }, }, "stringValue": "A String", # The string value to exclude/include. }, ], "key": "A String", # The key representing the shared targeting criterion. }, ], "productRevisionNumber": "A String", # The revision number of the product that the deal was created from (readonly, except on create) "dealId": "A String", # A unique deal=id for the deal (readonly). "sellerContacts": [ # Optional Seller contact information for the deal (buyer-readonly) { "email": "A String", # Email address of the contact. "name": "A String", # The name of the contact. }, ], "webPropertyCode": "A String", "proposalId": "A String", "flightStartTimeMs": "A String", # Proposed flight start time of the deal (ms since epoch) This will generally be stored in a granularity of a second. (updatable) "terms": { # The negotiable terms of the deal. (updatable) "brandingType": "A String", # Visibilty of the URL in bid requests. "estimatedGrossSpend": { # Non-binding estimate of the estimated gross spend for this deal Can be set by buyer or seller. "pricingType": "A String", # The pricing type for the deal/product. "currencyCode": "A String", # The currency code for the price. "amountMicros": 3.14, # The price value in micros. }, "estimatedImpressionsPerDay": "A String", # Non-binding estimate of the impressions served per day Can be set by buyer or seller. "nonGuaranteedFixedPriceTerms": { # The terms for non-guaranteed fixed price deals. "fixedPrices": [ # Fixed price for the specified buyer. { # Used to specify pricing rules for buyers/advertisers. Each PricePerBuyer in an product can become [0,1] deals. To check if there is a PricePerBuyer for a particular buyer or buyer/advertiser pair, we look for the most specific matching rule - we first look for a rule matching the buyer and advertiser, next a rule with the buyer but an empty advertiser list, and otherwise look for a matching rule where no buyer is set. "buyer": { # The buyer who will pay this price. If unset, all buyers can pay this price (if the advertisers match, and there's no more specific rule matching the buyer). "accountId": "A String", # Adx account id of the buyer. }, "price": { # The specified price "pricingType": "A String", # The pricing type for the deal/product. "currencyCode": "A String", # The currency code for the price. "amountMicros": 3.14, # The price value in micros. }, }, ], }, "guaranteedFixedPriceTerms": { # The terms for guaranteed fixed price deals. "guaranteedImpressions": "A String", # Guaranteed impressions as a percentage. This is the percentage of guaranteed looks that the buyer is guaranteeing to buy. "fixedPrices": [ # Fixed price for the specified buyer. { # Used to specify pricing rules for buyers/advertisers. Each PricePerBuyer in an product can become [0,1] deals. To check if there is a PricePerBuyer for a particular buyer or buyer/advertiser pair, we look for the most specific matching rule - we first look for a rule matching the buyer and advertiser, next a rule with the buyer but an empty advertiser list, and otherwise look for a matching rule where no buyer is set. "buyer": { # The buyer who will pay this price. If unset, all buyers can pay this price (if the advertisers match, and there's no more specific rule matching the buyer). "accountId": "A String", # Adx account id of the buyer. }, "price": { # The specified price "pricingType": "A String", # The pricing type for the deal/product. "currencyCode": "A String", # The currency code for the price. "amountMicros": 3.14, # The price value in micros. }, }, ], "guaranteedLooks": "A String", # Count of guaranteed looks. Required for deal, optional for product. }, "nonGuaranteedAuctionTerms": { # The terms for non-guaranteed auction deals. "reservePricePerBuyers": [ # Reserve price for the specified buyer. { # Used to specify pricing rules for buyers/advertisers. Each PricePerBuyer in an product can become [0,1] deals. To check if there is a PricePerBuyer for a particular buyer or buyer/advertiser pair, we look for the most specific matching rule - we first look for a rule matching the buyer and advertiser, next a rule with the buyer but an empty advertiser list, and otherwise look for a matching rule where no buyer is set. "buyer": { # The buyer who will pay this price. If unset, all buyers can pay this price (if the advertisers match, and there's no more specific rule matching the buyer). "accountId": "A String", # Adx account id of the buyer. }, "price": { # The specified price "pricingType": "A String", # The pricing type for the deal/product. "currencyCode": "A String", # The currency code for the price. "amountMicros": 3.14, # The price value in micros. }, }, ], "privateAuctionId": "A String", # Id of the corresponding private auction. }, "description": "A String", # Description for the proposed terms of the deal. }, "creationTimeMs": "A String", # The time (ms since epoch) of the deal creation. (readonly) "lastUpdateTimeMs": "A String", # The time (ms since epoch) when the deal was last updated. (readonly) "externalDealId": "A String", # The external deal id assigned to this deal once the deal is finalized. This is the deal-id that shows up in serving/reporting etc. (readonly) "inventoryDescription": "A String", # Description for the deal terms. (updatable) "productId": "A String", # The product-id from which this deal was created. (readonly, except on create) }, ], "proposal": { # Represents a proposal in the marketplace. A proposal is the unit of negotiation between a seller and a buyer and contains deals which are served. Each field in a proposal can have one of the following setting: # If specified, also updates the proposal in the batch transaction. This is useful when the proposal and the deals need to be updated in one transaction. # # (readonly) - It is an error to try and set this field. (buyer-readonly) - Only the seller can set this field. (seller-readonly) - Only the buyer can set this field. (updatable) - The field is updatable at all times by either buyer or the seller. "kind": "adexchangebuyer#proposal", # Identifies what kind of resource this is. Value: the fixed string "adexchangebuyer#proposal". "proposalState": "A String", # The current state of the proposal. (readonly) "name": "A String", # The name for the proposal (updatable) "buyerPrivateData": { # Private data for buyer. (hidden from seller). "referenceId": "A String", "referencePayload": "A String", }, "billedBuyer": { # Reference to the buyer that will get billed for this proposal. (readonly) "accountId": "A String", # Adx account id of the buyer. }, "labels": [ # List of labels associated with the proposal. (readonly) { "createTimeMs": "A String", # The creation time (in ms since epoch) for the label. "deprecatedMarketplaceDealParty": { # Information about the party that created the label. "buyer": { # The buyer/seller associated with the deal. One of buyer/seller is specified for a deal-party. "accountId": "A String", # Adx account id of the buyer. }, "seller": { # The buyer/seller associated with the deal. One of buyer/seller is specified for a deal party. "subAccountId": "A String", # Optional sub-account id for the seller. "accountId": "A String", # The unique id for the seller. The seller fills in this field. The seller account id is then available to buyer in the product. }, }, "label": "A String", # The label to use. "accountId": "A String", # The accountId of the party that created the label. }, ], "originatorRole": "A String", # Indicates whether the buyer/seller created the proposal.(readonly) "revisionTimeMs": "A String", # The time (ms since epoch) when the proposal was last revised (readonly). "sellerContacts": [ # Optional contact information for the seller (buyer-readonly). { "email": "A String", # Email address of the contact. "name": "A String", # The name of the contact. }, ], "lastUpdaterRole": "A String", "proposalId": "A String", # The unique id of the proposal. (readonly). "inventorySource": "A String", # What exchange will provide this inventory (readonly, except on create). "revisionNumber": "A String", # The revision number for the proposal (readonly). "hasSellerSignedOff": True or False, # When an proposal is in an accepted state, indicates whether the buyer has signed off Once both sides have signed off on a deal, the proposal can be finalized by the seller. (buyer-readonly) "isRenegotiating": True or False, # True if the proposal is being renegotiated (readonly). "buyer": { # Reference to the buyer on the proposal. (readonly, except on create) "accountId": "A String", # Adx account id of the buyer. }, "hasBuyerSignedOff": True or False, # When an proposal is in an accepted state, indicates whether the buyer has signed off Once both sides have signed off on a deal, the proposal can be finalized by the seller. (seller-readonly) "isSetupComplete": True or False, # True, if the buyside inventory setup is complete for this proposal. (readonly) "seller": { # Reference to the seller on the proposal. (readonly, except on create) "subAccountId": "A String", # Optional sub-account id for the seller. "accountId": "A String", # The unique id for the seller. The seller fills in this field. The seller account id is then available to buyer in the product. }, "lastUpdaterOrCommentorRole": "A String", # The role of the last user that either updated the proposal or left a comment. (readonly) "buyerContacts": [ # Optional contact information fort the buyer. (seller-readonly) { "email": "A String", # Email address of the contact. "name": "A String", # The name of the contact. }, ], }, "proposalRevisionNumber": "A String", # The last known revision number for the proposal. "updateAction": "A String", # Indicates an optional action to take on the proposal } Returns: An object of the form: { "deals": [ # List of all deals in the proposal after edit. { # A proposal can contain multiple deals. A deal contains the terms and targeting information that is used for serving. "deliveryControl": { # The set of fields around delivery control that are interesting for a buyer to see but are non-negotiable. These are set by the publisher. This message is assigned an id of 100 since some day we would want to model this as a protobuf extension. "frequencyCaps": [ { "numTimeUnits": 42, "timeUnitType": "A String", "maxImpressions": 42, }, ], "creativeBlockingLevel": "A String", "deliveryRateType": "A String", }, "kind": "adexchangebuyer#marketplaceDeal", # Identifies what kind of resource this is. Value: the fixed string "adexchangebuyer#marketplaceDeal". "creativePreApprovalPolicy": "A String", # Specifies the creative pre-approval policy (buyer-readonly) "name": "A String", # The name of the deal. (updatable) "buyerPrivateData": { # Buyer private data (hidden from seller). "referenceId": "A String", "referencePayload": "A String", }, "syndicationProduct": "A String", # The syndication product associated with the deal. (readonly, except on create) "flightEndTimeMs": "A String", # Proposed flight end time of the deal (ms since epoch) This will generally be stored in a granularity of a second. (updatable) "sharedTargetings": [ # The shared targeting visible to buyers and sellers. (updatable) { "inclusions": [ # The list of value to include as part of the targeting. { "longValue": "A String", # The long value to exclude/include. "dayPartTargetingValue": { # The daypart targeting to include / exclude. Filled in when the key is GOOG_DAYPART_TARGETING. "dayParts": [ { "dayOfWeek": "A String", "endHour": 42, "startMinute": 42, "endMinute": 42, "startHour": 42, }, ], "timeZoneType": "A String", }, "creativeSizeValue": { # The creative size value to exclude/include. "creativeSizeType": "A String", # The Creative size type. "companionSizes": [ # For video size type, the list of companion sizes. { "width": 42, # The width of the creative. "height": 42, # The height of the creative. }, ], "size": { # For regular or video creative size type, specifies the size of the creative. "width": 42, # The width of the creative. "height": 42, # The height of the creative. }, }, "stringValue": "A String", # The string value to exclude/include. }, ], "exclusions": [ # The list of values to exclude from targeting. { "longValue": "A String", # The long value to exclude/include. "dayPartTargetingValue": { # The daypart targeting to include / exclude. Filled in when the key is GOOG_DAYPART_TARGETING. "dayParts": [ { "dayOfWeek": "A String", "endHour": 42, "startMinute": 42, "endMinute": 42, "startHour": 42, }, ], "timeZoneType": "A String", }, "creativeSizeValue": { # The creative size value to exclude/include. "creativeSizeType": "A String", # The Creative size type. "companionSizes": [ # For video size type, the list of companion sizes. { "width": 42, # The width of the creative. "height": 42, # The height of the creative. }, ], "size": { # For regular or video creative size type, specifies the size of the creative. "width": 42, # The width of the creative. "height": 42, # The height of the creative. }, }, "stringValue": "A String", # The string value to exclude/include. }, ], "key": "A String", # The key representing the shared targeting criterion. }, ], "productRevisionNumber": "A String", # The revision number of the product that the deal was created from (readonly, except on create) "dealId": "A String", # A unique deal=id for the deal (readonly). "sellerContacts": [ # Optional Seller contact information for the deal (buyer-readonly) { "email": "A String", # Email address of the contact. "name": "A String", # The name of the contact. }, ], "webPropertyCode": "A String", "proposalId": "A String", "flightStartTimeMs": "A String", # Proposed flight start time of the deal (ms since epoch) This will generally be stored in a granularity of a second. (updatable) "terms": { # The negotiable terms of the deal. (updatable) "brandingType": "A String", # Visibilty of the URL in bid requests. "estimatedGrossSpend": { # Non-binding estimate of the estimated gross spend for this deal Can be set by buyer or seller. "pricingType": "A String", # The pricing type for the deal/product. "currencyCode": "A String", # The currency code for the price. "amountMicros": 3.14, # The price value in micros. }, "estimatedImpressionsPerDay": "A String", # Non-binding estimate of the impressions served per day Can be set by buyer or seller. "nonGuaranteedFixedPriceTerms": { # The terms for non-guaranteed fixed price deals. "fixedPrices": [ # Fixed price for the specified buyer. { # Used to specify pricing rules for buyers/advertisers. Each PricePerBuyer in an product can become [0,1] deals. To check if there is a PricePerBuyer for a particular buyer or buyer/advertiser pair, we look for the most specific matching rule - we first look for a rule matching the buyer and advertiser, next a rule with the buyer but an empty advertiser list, and otherwise look for a matching rule where no buyer is set. "buyer": { # The buyer who will pay this price. If unset, all buyers can pay this price (if the advertisers match, and there's no more specific rule matching the buyer). "accountId": "A String", # Adx account id of the buyer. }, "price": { # The specified price "pricingType": "A String", # The pricing type for the deal/product. "currencyCode": "A String", # The currency code for the price. "amountMicros": 3.14, # The price value in micros. }, }, ], }, "guaranteedFixedPriceTerms": { # The terms for guaranteed fixed price deals. "guaranteedImpressions": "A String", # Guaranteed impressions as a percentage. This is the percentage of guaranteed looks that the buyer is guaranteeing to buy. "fixedPrices": [ # Fixed price for the specified buyer. { # Used to specify pricing rules for buyers/advertisers. Each PricePerBuyer in an product can become [0,1] deals. To check if there is a PricePerBuyer for a particular buyer or buyer/advertiser pair, we look for the most specific matching rule - we first look for a rule matching the buyer and advertiser, next a rule with the buyer but an empty advertiser list, and otherwise look for a matching rule where no buyer is set. "buyer": { # The buyer who will pay this price. If unset, all buyers can pay this price (if the advertisers match, and there's no more specific rule matching the buyer). "accountId": "A String", # Adx account id of the buyer. }, "price": { # The specified price "pricingType": "A String", # The pricing type for the deal/product. "currencyCode": "A String", # The currency code for the price. "amountMicros": 3.14, # The price value in micros. }, }, ], "guaranteedLooks": "A String", # Count of guaranteed looks. Required for deal, optional for product. }, "nonGuaranteedAuctionTerms": { # The terms for non-guaranteed auction deals. "reservePricePerBuyers": [ # Reserve price for the specified buyer. { # Used to specify pricing rules for buyers/advertisers. Each PricePerBuyer in an product can become [0,1] deals. To check if there is a PricePerBuyer for a particular buyer or buyer/advertiser pair, we look for the most specific matching rule - we first look for a rule matching the buyer and advertiser, next a rule with the buyer but an empty advertiser list, and otherwise look for a matching rule where no buyer is set. "buyer": { # The buyer who will pay this price. If unset, all buyers can pay this price (if the advertisers match, and there's no more specific rule matching the buyer). "accountId": "A String", # Adx account id of the buyer. }, "price": { # The specified price "pricingType": "A String", # The pricing type for the deal/product. "currencyCode": "A String", # The currency code for the price. "amountMicros": 3.14, # The price value in micros. }, }, ], "privateAuctionId": "A String", # Id of the corresponding private auction. }, "description": "A String", # Description for the proposed terms of the deal. }, "creationTimeMs": "A String", # The time (ms since epoch) of the deal creation. (readonly) "lastUpdateTimeMs": "A String", # The time (ms since epoch) when the deal was last updated. (readonly) "externalDealId": "A String", # The external deal id assigned to this deal once the deal is finalized. This is the deal-id that shows up in serving/reporting etc. (readonly) "inventoryDescription": "A String", # Description for the deal terms. (updatable) "productId": "A String", # The product-id from which this deal was created. (readonly, except on create) }, ], }