Skip to content

Commit b11ea5d

Browse files
yoshi-automationsofisl
authored andcommitted
feat(youtube)!: update the API
BREAKING CHANGE: This release has breaking changes. #### youtube:v3 The following keys were deleted: - schemas.SubscriptionSnippet.properties.channelTitle.description - schemas.SubscriptionSnippet.properties.channelTitle.type The following keys were added: - schemas.Video.properties.paidProductPlacementDetails.$ref - schemas.VideoPaidProductPlacementDetails.description - schemas.VideoPaidProductPlacementDetails.id - schemas.VideoPaidProductPlacementDetails.properties.hasPaidProductPlacement.description - schemas.VideoPaidProductPlacementDetails.properties.hasPaidProductPlacement.type - schemas.VideoPaidProductPlacementDetails.type The following keys were changed: - schemas.VideoStatus.description
1 parent 332cca5 commit b11ea5d

File tree

2 files changed

+27
-11
lines changed

2 files changed

+27
-11
lines changed

discovery/youtube-v3.json

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4072,7 +4072,7 @@
40724072
}
40734073
}
40744074
},
4075-
"revision": "20240814",
4075+
"revision": "20240926",
40764076
"rootUrl": "https://youtube.googleapis.com/",
40774077
"schemas": {
40784078
"AbuseReport": {
@@ -10573,10 +10573,6 @@
1057310573
"description": "The ID that YouTube uses to uniquely identify the subscriber's channel.",
1057410574
"type": "string"
1057510575
},
10576-
"channelTitle": {
10577-
"description": "Channel title for the channel that the subscription belongs to.",
10578-
"type": "string"
10579-
},
1058010576
"description": {
1058110577
"description": "The subscription's details.",
1058210578
"type": "string"
@@ -11016,6 +11012,9 @@
1101611012
"$ref": "VideoMonetizationDetails",
1101711013
"description": "The monetizationDetails object encapsulates information about the monetization status of the video."
1101811014
},
11015+
"paidProductPlacementDetails": {
11016+
"$ref": "VideoPaidProductPlacementDetails"
11017+
},
1101911018
"player": {
1102011019
"$ref": "VideoPlayer",
1102111020
"description": "The player object contains information that you would use to play the video in an embedded player."
@@ -11678,6 +11677,17 @@
1167811677
},
1167911678
"type": "object"
1168011679
},
11680+
"VideoPaidProductPlacementDetails": {
11681+
"description": "Details about paid content, such as paid product placement, sponsorships or endorsement, contained in a YouTube video and a method to inform viewers of paid promotion. This data can only be retrieved by the video owner.",
11682+
"id": "VideoPaidProductPlacementDetails",
11683+
"properties": {
11684+
"hasPaidProductPlacement": {
11685+
"description": "This boolean represents whether the video contains Paid Product Placement, Studio equivalent: https://screenshot.googleplex.com/4Me79DE6AfT2ktp.png",
11686+
"type": "boolean"
11687+
}
11688+
},
11689+
"type": "object"
11690+
},
1168111691
"VideoPlayer": {
1168211692
"description": "Player to be used for a video playback.",
1168311693
"id": "VideoPlayer",
@@ -11939,7 +11949,7 @@
1193911949
"type": "object"
1194011950
},
1194111951
"VideoStatus": {
11942-
"description": "Basic details about a video category, such as its localized title. Next Id: 18",
11952+
"description": "Basic details about a video category, such as its localized title. Next Id: 19",
1194311953
"id": "VideoStatus",
1194411954
"properties": {
1194511955
"embeddable": {

src/apis/youtube/v3.ts

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3573,10 +3573,6 @@ export namespace youtube_v3 {
35733573
* The ID that YouTube uses to uniquely identify the subscriber's channel.
35743574
*/
35753575
channelId?: string | null;
3576-
/**
3577-
* Channel title for the channel that the subscription belongs to.
3578-
*/
3579-
channelTitle?: string | null;
35803576
/**
35813577
* The subscription's details.
35823578
*/
@@ -3894,6 +3890,7 @@ export namespace youtube_v3 {
38943890
* The monetizationDetails object encapsulates information about the monetization status of the video.
38953891
*/
38963892
monetizationDetails?: Schema$VideoMonetizationDetails;
3893+
paidProductPlacementDetails?: Schema$VideoPaidProductPlacementDetails;
38973894
/**
38983895
* The player object contains information that you would use to play the video in an embedded player.
38993896
*/
@@ -4365,6 +4362,15 @@ export namespace youtube_v3 {
43654362
*/
43664363
access?: Schema$AccessPolicy;
43674364
}
4365+
/**
4366+
* Details about paid content, such as paid product placement, sponsorships or endorsement, contained in a YouTube video and a method to inform viewers of paid promotion. This data can only be retrieved by the video owner.
4367+
*/
4368+
export interface Schema$VideoPaidProductPlacementDetails {
4369+
/**
4370+
* This boolean represents whether the video contains Paid Product Placement, Studio equivalent: https://screenshot.googleplex.com/4Me79DE6AfT2ktp.png
4371+
*/
4372+
hasPaidProductPlacement?: boolean | null;
4373+
}
43684374
/**
43694375
* Player to be used for a video playback.
43704376
*/
@@ -4546,7 +4552,7 @@ export namespace youtube_v3 {
45464552
viewCount?: string | null;
45474553
}
45484554
/**
4549-
* Basic details about a video category, such as its localized title. Next Id: 18
4555+
* Basic details about a video category, such as its localized title. Next Id: 19
45504556
*/
45514557
export interface Schema$VideoStatus {
45524558
/**

0 commit comments

Comments
 (0)