Skip to main content
POST
/
monetization
/
ads
/
v1
/
sponsorship_collections
cURL
curl --request POST \
  --url https://api.mottostreaming.com/monetization/ads/v1/sponsorship_collections \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "id": "<string>",
  "project_id": "<string>",
  "name": "<string>",
  "slots": [
    {
      "asset_id": {},
      "destination_url": {}
    }
  ],
  "visibility": "VISIBILITY_UNSPECIFIED"
}'
{
  "sponsorship_collection": {
    "id": "<string>",
    "project_id": "<string>",
    "name": "<string>",
    "slots": [
      {
        "asset_id": {},
        "destination_url": {}
      }
    ],
    "visibility": "VISIBILITY_UNSPECIFIED"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

SponsorshipCollection represents a collection of sponsorship slots that can be displayed in one of various layouts on an end-user facing web/app page.

id
string
required

A unique identifier for the sponsorship collection. This can be set manually, or auto-generated if left empty.

project_id
string
required
name
string
required

A name for visual identification within the management UI. Does not appear towards end users.

slots
object[]

A list of sponsorship slots that should be included in this sponsorship collection. The order of this list determines the order in which the sponsorship slots are displayed towards end users.

visibility
enum<string>
Available options:
VISIBILITY_UNSPECIFIED,
VISIBILITY_PUBLISHED,
VISIBILITY_UNLISTED,
VISIBILITY_HIDDEN

Response

OK

sponsorship_collection
object

SponsorshipCollection represents a collection of sponsorship slots that can be displayed in one of various layouts on an end-user facing web/app page.