Skip to main content
POST
Create a Publisher

Authorizations

Authorization
string
header
required

API key en el header Authorization: Basic TU_API_KEY. La key va tal cual, sin codificar en base64. Las credenciales se entregan al comenzar la integración.

Body

application/json
name
string
required

The name of the publisher.

Example:

"Example Publisher"

can_admin_account
boolean

Whether to grant administrator privileges to the publisher. When enabled, the publisher has the ability to add and delete their own ad items and zones. Defaults to false.

Example:

false

can_approve_ads
boolean

Whether to allow a publisher to approve or deny ad items assigned to their zones. Defaults to false.

Example:

false

can_change_password
boolean

Whether to allow the publisher to change their own password. Defaults to false.

Example:

false

can_view_wordpress_key
boolean

Whether to allow the publisher to view their WordPress key. Defaults to true. When false, the publisher has to request the Wordpress key from the admin.

Example:

false

default_payout
object

The default values paid out to the publisher. Setting this default will set the payout to all new ad assignments in zones owned by this publisher. Payouts can also be modified per ad item or campaign assignment, and specific payouts will always take precedence over the defaults.

This field is considered a classic PUT: any properties not included in the default_payout field will be set to 0.00, even if the property already had a value.

NOTE: Only subscribers on the Standard tier and above have access to the Financials feature. If you don't have that feature enabled, you must set this field's value to null, an empty array, or an empty object.

Example:
default_payout_percent
number<float>
deprecated

The default value for the percentage of revenue that will be paid out to the publisher.

DEPRECATED: This field has been expanded to the more detailed default_payout, though it may still be used as a simplified version. We encourage updating to use default_payout as default_payout_percent will likely be removed in later versions of the API.

NOTE: Only subscribers on the Standard tier and above have access to the Financials feature. If you don't have that feature enabled, you must set this field's value to null.

Example:

5.5

email
string

A valid email owned by the publisher that allows them to log in to the publisher portal. When set to the default, the publisher will not have access to the publisher portal.

Example:

"publisher@example.com"

domain
string

The domain of the publisher. Works only for top-level domains and subdomains, but not protocols or paths.

Example:

"publisher.com"

seller_type
string

Either "publisher", "intermediary", or "both".

NOTE: The ability to set a publisher as "intermediary" or "both" requires the Programmatic Advertising add-on. If you don't have the add-on, you must set this field's value to "publisher".

Example:

"intermediary"

metadata
object

An object containing any number of metadata keys and values. Keys and values must be strings.

Example:
password
string

The password of the optional user account tied to this publisher. The given password must be 8 or more characters and contain at least one uppercase character, lowercase character, and number. Password managers and special characters are recommended. If left blank on publisher creation, a random password will be generated. This field will never be returned in any responses.

Example:

"**********"

Response

default - application/json

successful operation

can_admin_account
boolean

Whether to grant administrator privileges to the publisher. When enabled, the publisher has the ability to add and delete their own ad items and zones. Defaults to false.

Example:

false

can_approve_ads
boolean

Whether to allow a publisher to approve or deny ad items assigned to their zones. Defaults to false.

Example:

false

can_change_password
boolean

Whether to allow the publisher to change their own password. Defaults to false.

Example:

false

can_view_wordpress_key
boolean

Whether to allow the publisher to view their WordPress key. Defaults to true. When false, the publisher has to request the Wordpress key from the admin.

Example:

false

default_payout
object

The default values paid out to the publisher. Setting this default will set the payout to all new ad assignments in zones owned by this publisher. Payouts can also be modified per ad item or campaign assignment, and specific payouts will always take precedence over the defaults.

This field is considered a classic PUT: any properties not included in the default_payout field will be set to 0.00, even if the property already had a value.

NOTE: Only subscribers on the Standard tier and above have access to the Financials feature. If you don't have that feature enabled, you must set this field's value to null, an empty array, or an empty object.

Example:
default_payout_percent
number<float>
deprecated

The default value for the percentage of revenue that will be paid out to the publisher.

DEPRECATED: This field has been expanded to the more detailed default_payout, though it may still be used as a simplified version. We encourage updating to use default_payout as default_payout_percent will likely be removed in later versions of the API.

NOTE: Only subscribers on the Standard tier and above have access to the Financials feature. If you don't have that feature enabled, you must set this field's value to null.

Example:

5.5

email
string

A valid email owned by the publisher that allows them to log in to the publisher portal. When set to the default, the publisher will not have access to the publisher portal.

Example:

"publisher@example.com"

name
string

The name of the publisher.

Example:

"Example Publisher"

domain
string

The domain of the publisher. Works only for top-level domains and subdomains, but not protocols or paths.

Example:

"publisher.com"

seller_type
string

Either "publisher", "intermediary", or "both".

NOTE: The ability to set a publisher as "intermediary" or "both" requires the Programmatic Advertising add-on. If you don't have the add-on, you must set this field's value to "publisher".

Example:

"intermediary"

metadata
object

An object containing any number of metadata keys and values. Keys and values must be strings.

Example:
object
string

A string denoting the current resource being requested or affected.

Example:

"publisher"

id
integer

The current resource identifier (ID).

Example:

4843

self
string

The relative URL of the current resource being requested or affected.

Example:

"/v2/publishers/4843"