Package Service
Sellers use this service to create and manage their packages. Packages are pre-made combinations of inventory and/or data. Buyers can use the Package Buyer Access Service to browse packages and then use the Deal From Package Service to create deals from them "off-the-shelf", or they can use packages as a jumping-off point for deal negotiations.
In cases where packages don't meet a buyer's needs, sellers can use the Deal Service to create one-off custom deals.
REST API
Add a new package:
POST http://api.appnexus.com/package
(add_package JSON)
Update a package:
PUT http://api.appnexus.com/package?id=PACKAGE_ID
(modify_package JSON)
View all of your packages:
GET http://api.appnexus.com/package
View a specific package:
GET http://api.appnexus.com/package?id=PACKAGE_ID
Delete a package:
DELETE http://api.appnexus.com/package?id=PACKAGE_ID
Deleting a package deletes all of its associated deals as well. Campaigns targeting these associated deals will stop serving. The deletions are permanent and cannot be reverted. Although deleted deals continue to be available in reporting, you will no longer have visibility into their specific settings.
Find out which fields you can filter and sort by:
GET http://api.appnexus.com/package/meta
JSON Fields
Name | Type (Length) | Description | Default | Required on |
---|---|---|---|---|
| int | The ID of the package. | Auto-generated number |
|
| string (255) | The name of the package. |
|
|
| string (65535) | The description of the package. You can use this field to provide buyers additional insight and details about the package. |
|
|
| Boolean | If |
|
|
| int | The ID of the profile associated to the package. You can use a profile to specify publishers, placements, sites, content categories, segments, segment groups, or sizes that need to be involved in the auction in order for the deal to be available to the buyer. For more details, see Any other targeting settings in the associated profile will not be respected. |
|
|
| double | The ask price that will be applied to all deals generated from the package. When a buyer generates a deal, the Deal Service will automatically calculate the You must use the |
|
|
| enum | The ask price currency that will be applied to all deals generated from the package. For a full list of available currencies, use the read-only Currency Service . |
|
|
| Boolean | If If |
|
|
| timestamp | The day and time when the package was last modified. |
|
|
data_protected | Boolean | Not yet supported. | false | |
allow_creative_add_on_view | Boolean | Not yet supported. | false | |
allow_creative_add_on_click | true | Not yet supported. | true | |
visibility_profile_id | int | Not yet supported. | null | |
seller_rank | int | The seller's ranking for the package. This controls where the package will appear in the seller's full list of packages in the Console UI. Allowed range: 1 - 65355, where 1 is the highest ranking. | 100 | |
size_preference | enum | Specifies how this package handles private sizes. Private sizes are placement sizes (set in the
| ||
technical_attribute_restrict | Boolean | Specifies whether the package is restricted only to the technical attributes listed in the Technical Attributes object.
| true | |
seller | object | The name and ID of the seller who is offering the package. For more details, see Seller below. |
|
|
default_deal_type | object | The deal type that will be applied to all deals generated from the package. For more details, see Deal Type below. |
|
|
visibility_type | object | Defines if the package is visible to all buyers or select buyers. For more details, see Visibility Type below. | ||
members | array of objects | If | ||
setting | object | The type of content included in the package. For more details, see Setting below. | ||
technical_attributes | array of objects | The technical attributes of creatives that are eligible for the package. For more details, see Technical Attributes below. | ||
sizes | array of objects | If the profile associated with the package has size targets set, you can use this field to expose the specific sizes to buyers. For more details, see Sizes below. |
Seller
The seller
object contains the following fields.
Field | Type | Description | Default | Required On |
---|---|---|---|---|
id | int | Read-only. The member ID of the seller. | Seller's member ID | POST |
name | string | Read-only. The member name of the seller. | Seller's member name |
Default Deal Type
The default_deal_type
object contains the following fields. By default, all packages will generate deals with an open auction deal type.
Field | Type | Description | Default | Required On |
---|---|---|---|---|
id | int | The ID representing the type of deal. Possible values: 1 (Open Auction) or 2 (Private Auction). For more information about open and private auctions, see the Deal Service. | 1 | |
name | string | Read-only. The name of the type of deal. Possible values: "Open Auction" or "Private Auction" . | "Open Auction" |
Visibility Type
The visibility_type
object contains the following fields.
Field | Type | Description | Default | Required On |
---|---|---|---|---|
id | int | The ID of the visibility level for your package. Possible values:
| 1 | |
name | string | Read-only. The name of the visibility level for your package. Possible values: "console", "private", or "hidden". |
Members
If visibility_type
is set to "private"
, only the buyers listed in this array can view the package. If visibility_type
is set to "console"
, all buyers can view the package but you can define a different ask price for each of the buyers listed in this array. Each member
object in this array contains the following fields.
Field | Type | Description | Default | Required On |
---|---|---|---|---|
id | int | The member ID of the buyer. | ||
name | string | Read-only. The member name of the buyer. | Buyer's member name | |
member_use_deal_floor | Boolean | If true, the The | true | |
member_ask_price | int | The ask price that will be applied to deals the buyer generates from the package. When the buyer generates a deal, the Deal From Package Service will automatically calculate the If |
Setting
This information is used to give buyers a general understanding of the inventory included in the package. The setting
object contains the following fields.
Field | Type | Description | Default | Required On |
---|---|---|---|---|
has_inventory | Boolean | Set this field to true if the profile associated with the package has publisher, placement, site, or content category targets set. For more information, see the profile_id field. | false | |
inventory_description | string | If | ||
has_segments | Boolean | Set this field to | false | |
segments_description | string | If | ||
has_sizes | Boolean | Set this field to true if the profile associated with the package has size targets set. For more information, see the profile_id field. If you want buyers to see the specific sizes you have included, use the sizes field. | false |
Sizes
Each object in the sizes
array contains the following fields.
Field | Type | Description |
---|---|---|
width | string | The width of the creative. |
height | string | The size of the creative. |
Technical Attributes
Each technical_attribute
object contains the following fields:
Field | Type | Description | Default | Required On |
---|---|---|---|---|
id | int | The ID of the technical attribute that is eligible for the package. You can use the Technical Attribute Service to retrieve technical attribute IDs. | ||
name | string | The name of the technical attribute that is eligible for the package. | ||
override | Boolean | Set to | false |