Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Response
OK
curl --request PATCH \
--url https://api.mottostreaming.com/monetization/ads/v1/video_ads/{video_ad_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"video_ad_id": "<string>",
"video_ad": {
"project_id": "<string>",
"name": "<string>",
"ad_manifest": {
"title": "<string>",
"video_files": [
{
"quality": "VIDEO_QUALITY_UNSPECIFIED",
"config": {
"asset_id": "<string>"
}
}
],
"aspect_ratio": "<string>",
"duration_seconds": 123,
"allow_skip_after_seconds": 123,
"clickthrough_url": "<string>",
"impression_tracking_url": "<string>",
"error_tracking_url": "<string>"
},
"ad_tag_url": "<string>",
"visibility": "VISIBILITY_UNSPECIFIED",
"geo_applicability_exempt": {
"country_codes": [
"<string>"
]
},
"geo_applicability_apply": {
"country_codes": [
"<string>"
]
},
"applies_to_all": true,
"target": {
"entity_ids": [
"<string>"
],
"event_ids": [
"<string>"
],
"creative_work_ids": [
"<string>"
],
"content_start_time": "2023-11-07T05:31:56Z",
"content_end_time": "2023-11-07T05:31:56Z"
},
"priority": "<string>"
},
"update_mask": "<string>"
}'{
"video_ad": {
"id": "<string>",
"project_id": "<string>",
"name": "<string>",
"ad_manifest": {
"title": "<string>",
"video_files": [
{
"quality": "VIDEO_QUALITY_UNSPECIFIED",
"config": {
"asset_id": "<string>"
}
}
],
"aspect_ratio": "<string>",
"duration_seconds": 123,
"allow_skip_after_seconds": 123,
"clickthrough_url": "<string>",
"impression_tracking_url": "<string>",
"error_tracking_url": "<string>"
},
"ad_tag_url": "<string>",
"visibility": "VISIBILITY_UNSPECIFIED",
"geo_applicability_exempt": {
"country_codes": [
"<string>"
]
},
"geo_applicability_apply": {
"country_codes": [
"<string>"
]
},
"applies_to_all": true,
"target": {
"entity_ids": [
"<string>"
],
"event_ids": [
"<string>"
],
"creative_work_ids": [
"<string>"
],
"content_start_time": "2023-11-07T05:31:56Z",
"content_end_time": "2023-11-07T05:31:56Z"
},
"priority": "<string>"
}
}UpdateVideoAd
Updates a video_ad. When updating a video_ad that is already attached to one or more videos, this change will apply to all of those videos (including past ones).
These changes apply asynchronously and may take a bit of time to propagate.
curl --request PATCH \
--url https://api.mottostreaming.com/monetization/ads/v1/video_ads/{video_ad_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"video_ad_id": "<string>",
"video_ad": {
"project_id": "<string>",
"name": "<string>",
"ad_manifest": {
"title": "<string>",
"video_files": [
{
"quality": "VIDEO_QUALITY_UNSPECIFIED",
"config": {
"asset_id": "<string>"
}
}
],
"aspect_ratio": "<string>",
"duration_seconds": 123,
"allow_skip_after_seconds": 123,
"clickthrough_url": "<string>",
"impression_tracking_url": "<string>",
"error_tracking_url": "<string>"
},
"ad_tag_url": "<string>",
"visibility": "VISIBILITY_UNSPECIFIED",
"geo_applicability_exempt": {
"country_codes": [
"<string>"
]
},
"geo_applicability_apply": {
"country_codes": [
"<string>"
]
},
"applies_to_all": true,
"target": {
"entity_ids": [
"<string>"
],
"event_ids": [
"<string>"
],
"creative_work_ids": [
"<string>"
],
"content_start_time": "2023-11-07T05:31:56Z",
"content_end_time": "2023-11-07T05:31:56Z"
},
"priority": "<string>"
},
"update_mask": "<string>"
}'{
"video_ad": {
"id": "<string>",
"project_id": "<string>",
"name": "<string>",
"ad_manifest": {
"title": "<string>",
"video_files": [
{
"quality": "VIDEO_QUALITY_UNSPECIFIED",
"config": {
"asset_id": "<string>"
}
}
],
"aspect_ratio": "<string>",
"duration_seconds": 123,
"allow_skip_after_seconds": 123,
"clickthrough_url": "<string>",
"impression_tracking_url": "<string>",
"error_tracking_url": "<string>"
},
"ad_tag_url": "<string>",
"visibility": "VISIBILITY_UNSPECIFIED",
"geo_applicability_exempt": {
"country_codes": [
"<string>"
]
},
"geo_applicability_apply": {
"country_codes": [
"<string>"
]
},
"applies_to_all": true,
"target": {
"entity_ids": [
"<string>"
],
"event_ids": [
"<string>"
],
"creative_work_ids": [
"<string>"
],
"content_start_time": "2023-11-07T05:31:56Z",
"content_end_time": "2023-11-07T05:31:56Z"
},
"priority": "<string>"
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
OK
Show child attributes