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

Path Parameters

sponsorship_collection_id
string
required

Body

application/json
sponsorship_collection_id
string
required
project_id
string
required
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.

update_mask
string<field-mask>

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.