Publisher Parameters
Program Term API — Publisher Reference
This page covers the publisher-side query structure for the Program Terms API, including query arguments, filters, and the result wrapper object.
Query: publisher
publisherReturns: PublisherQueries!
Top-level namespace for all publisher-related operations. Use the contracts field to retrieve program term data.
Field: contracts
contractsReturns: ContractList!
Returns one or more contracts filtered according to the supplied arguments.
| Argument | Type | Description |
|---|---|---|
publisherId | ID! | Required. The publisher company ID to query for. |
filters | ContractFilters | Optional set of filters to narrow results. |
limit | Int | How many contracts to request at once. Defaults to 10; maximum 100. |
offset | Int | Offset in the list of contracts, used for pagination. |
Input Object: ContractFilters
ContractFiltersOptional set of filters applied to the contracts query.
| Field | Type | Description |
|---|---|---|
advertiserId | ID | If given, returns all contracts with this specific advertiser. |
activeAfter | ISODateTime | If given, returns all contracts that are active after this time. |
activeBefore | ISODateTime | If given, returns all contracts that are active before this time. |
Object: ContractList
ContractListWrapper object returned by the contracts query.
| Field | Type | Description |
|---|---|---|
count | Long! | Count of contracts returned in this response. |
resultList | [Contract!]! | List of contracts matching the query, each including program terms. |
totalCount | Long! | Total count of all available contracts matching the query, regardless of limit. |
Updated 9 days ago
