| 1 |
<html><body> |
| 2 |
<style> |
| 3 |
|
| 4 |
body, h1, h2, h3, div, span, p, pre, a { |
| 5 |
margin: 0; |
| 6 |
padding: 0; |
| 7 |
border: 0; |
| 8 |
font-weight: inherit; |
| 9 |
font-style: inherit; |
| 10 |
font-size: 100%; |
| 11 |
font-family: inherit; |
| 12 |
vertical-align: baseline; |
| 13 |
} |
| 14 |
|
| 15 |
body { |
| 16 |
font-size: 13px; |
| 17 |
padding: 1em; |
| 18 |
} |
| 19 |
|
| 20 |
h1 { |
| 21 |
font-size: 26px; |
| 22 |
margin-bottom: 1em; |
| 23 |
} |
| 24 |
|
| 25 |
h2 { |
| 26 |
font-size: 24px; |
| 27 |
margin-bottom: 1em; |
| 28 |
} |
| 29 |
|
| 30 |
h3 { |
| 31 |
font-size: 20px; |
| 32 |
margin-bottom: 1em; |
| 33 |
margin-top: 1em; |
| 34 |
} |
| 35 |
|
| 36 |
pre, code { |
| 37 |
line-height: 1.5; |
| 38 |
font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; |
| 39 |
} |
| 40 |
|
| 41 |
pre { |
| 42 |
margin-top: 0.5em; |
| 43 |
} |
| 44 |
|
| 45 |
h1, h2, h3, p { |
| 46 |
font-family: Arial, sans serif; |
| 47 |
} |
| 48 |
|
| 49 |
h1, h2, h3 { |
| 50 |
border-bottom: solid #CCC 1px; |
| 51 |
} |
| 52 |
|
| 53 |
.toc_element { |
| 54 |
margin-top: 0.5em; |
| 55 |
} |
| 56 |
|
| 57 |
.firstline { |
| 58 |
margin-left: 2 em; |
| 59 |
} |
| 60 |
|
| 61 |
.method { |
| 62 |
margin-top: 1em; |
| 63 |
border: solid 1px #CCC; |
| 64 |
padding: 1em; |
| 65 |
background: #EEE; |
| 66 |
} |
| 67 |
|
| 68 |
.details { |
| 69 |
font-weight: bold; |
| 70 |
font-size: 14px; |
| 71 |
} |
| 72 |
|
| 73 |
</style> |
| 74 |
|
| 75 |
<h1><a href="youtube_v3.html">YouTube Data API v3</a> . <a href="youtube_v3.thirdPartyLinks.html">thirdPartyLinks</a></h1> |
| 76 |
<h2>Instance Methods</h2> |
| 77 |
<p class="toc_element"> |
| 78 |
<code><a href="#close">close()</a></code></p> |
| 79 |
<p class="firstline">Close httplib2 connections.</p> |
| 80 |
<p class="toc_element"> |
| 81 |
<code><a href="#delete">delete(linkingToken, type, externalChannelId=None, part=None, x__xgafv=None)</a></code></p> |
| 82 |
<p class="firstline">Deletes a resource.</p> |
| 83 |
<p class="toc_element"> |
| 84 |
<code><a href="#insert">insert(part, body=None, externalChannelId=None, x__xgafv=None)</a></code></p> |
| 85 |
<p class="firstline">Inserts a new resource into this collection.</p> |
| 86 |
<p class="toc_element"> |
| 87 |
<code><a href="#list">list(part, externalChannelId=None, linkingToken=None, type=None, x__xgafv=None)</a></code></p> |
| 88 |
<p class="firstline">Retrieves a list of resources, possibly filtered.</p> |
| 89 |
<p class="toc_element"> |
| 90 |
<code><a href="#update">update(part, body=None, externalChannelId=None, x__xgafv=None)</a></code></p> |
| 91 |
<p class="firstline">Updates an existing resource.</p> |
| 92 |
<h3>Method Details</h3> |
| 93 |
<div class="method"> |
| 94 |
<code class="details" id="close">close()</code> |
| 95 |
<pre>Close httplib2 connections.</pre> |
| 96 |
</div> |
| 97 |
|
| 98 |
<div class="method"> |
| 99 |
<code class="details" id="delete">delete(linkingToken, type, externalChannelId=None, part=None, x__xgafv=None)</code> |
| 100 |
<pre>Deletes a resource. |
| 101 |
|
| 102 |
Args: |
| 103 |
linkingToken: string, Delete the partner links with the given linking token. (required) |
| 104 |
type: string, Type of the link to be deleted. (required) |
| 105 |
Allowed values |
| 106 |
linkUnspecified - |
| 107 |
channelToStoreLink - A link that is connecting (or about to connect) a channel with a store on a merchandising platform in order to enable retail commerce capabilities for that channel on YouTube. |
| 108 |
channelToAffiliateProgramLink - A link that is connecting (or about to connect) a channel with an affiliate program of a partner to enable that channel to earn commissions from that partner through affiliate links. |
| 109 |
externalChannelId: string, Channel ID to which changes should be applied, for delegation. |
| 110 |
part: string, Do not use. Required for compatibility. (repeated) |
| 111 |
x__xgafv: string, V1 error format. |
| 112 |
Allowed values |
| 113 |
1 - v1 error format |
| 114 |
2 - v2 error format |
| 115 |
</pre> |
| 116 |
</div> |
| 117 |
|
| 118 |
<div class="method"> |
| 119 |
<code class="details" id="insert">insert(part, body=None, externalChannelId=None, x__xgafv=None)</code> |
| 120 |
<pre>Inserts a new resource into this collection. |
| 121 |
|
| 122 |
Args: |
| 123 |
part: string, The *part* parameter specifies the thirdPartyLink resource parts that the API request and response will include. Supported values are linkingToken, status, and snippet. (required) (repeated) |
| 124 |
body: object, The request body. |
| 125 |
The object takes the form of: |
| 126 |
|
| 127 |
{ # A *third party account link* resource represents a link between a YouTube account or a channel and an account on a third-party service. |
| 128 |
"etag": "A String", # Etag of this resource |
| 129 |
"kind": "youtube#thirdPartyLink", # Identifies what kind of resource this is. Value: the fixed string "youtube#thirdPartyLink". |
| 130 |
"linkingToken": "A String", # The linking_token identifies a YouTube account and channel with which the third party account is linked. |
| 131 |
"snippet": { # Basic information about a third party account link, including its type and type-specific information. # The snippet object contains basic details about the third- party account link. |
| 132 |
"channelToAffiliateProgramLink": { # Information specific to a creator in an affiliate program linked to a YouTube channel. # Information specific to a link between a channel and an affiliate program of a partner. |
| 133 |
"merchantId": "A String", # Required. Google Merchant Center ID of the partner. |
| 134 |
"programStatus": "A String", # Required. Affiliate program status. |
| 135 |
"statusUpdateReason": "A String", # Optional. Reason for the last update of the affiliate program status. |
| 136 |
"statusUpdateTime": "A String", # Optional. Timestamp when the affiliate program status was last updated. |
| 137 |
}, |
| 138 |
"channelToStoreLink": { # Information specific to a store on a merchandising platform linked to a YouTube channel. # Information specific to a link between a channel and a store on a merchandising platform. |
| 139 |
"billingDetails": { # Information specific to billing. # Information specific to billing (read-only). |
| 140 |
"billingStatus": "A String", # The current billing profile status. |
| 141 |
}, |
| 142 |
"merchantAffiliateProgramDetails": { # Information specific to merchant affiliate program. # Information specific to merchant affiliate program (read-only). |
| 143 |
"status": "A String", # The current merchant affiliate program status. |
| 144 |
}, |
| 145 |
"merchantId": "A String", # Google Merchant Center id of the store. |
| 146 |
"storeName": "A String", # Name of the store. |
| 147 |
"storeUrl": "A String", # Landing page of the store. |
| 148 |
}, |
| 149 |
"type": "A String", # Type of the link named after the entities that are being linked. |
| 150 |
}, |
| 151 |
"status": { # The third-party link status object contains information about the status of the link. # The status object contains information about the status of the link. |
| 152 |
"linkStatus": "A String", |
| 153 |
}, |
| 154 |
} |
| 155 |
|
| 156 |
externalChannelId: string, Channel ID to which changes should be applied, for delegation. |
| 157 |
x__xgafv: string, V1 error format. |
| 158 |
Allowed values |
| 159 |
1 - v1 error format |
| 160 |
2 - v2 error format |
| 161 |
|
| 162 |
Returns: |
| 163 |
An object of the form: |
| 164 |
|
| 165 |
{ # A *third party account link* resource represents a link between a YouTube account or a channel and an account on a third-party service. |
| 166 |
"etag": "A String", # Etag of this resource |
| 167 |
"kind": "youtube#thirdPartyLink", # Identifies what kind of resource this is. Value: the fixed string "youtube#thirdPartyLink". |
| 168 |
"linkingToken": "A String", # The linking_token identifies a YouTube account and channel with which the third party account is linked. |
| 169 |
"snippet": { # Basic information about a third party account link, including its type and type-specific information. # The snippet object contains basic details about the third- party account link. |
| 170 |
"channelToAffiliateProgramLink": { # Information specific to a creator in an affiliate program linked to a YouTube channel. # Information specific to a link between a channel and an affiliate program of a partner. |
| 171 |
"merchantId": "A String", # Required. Google Merchant Center ID of the partner. |
| 172 |
"programStatus": "A String", # Required. Affiliate program status. |
| 173 |
"statusUpdateReason": "A String", # Optional. Reason for the last update of the affiliate program status. |
| 174 |
"statusUpdateTime": "A String", # Optional. Timestamp when the affiliate program status was last updated. |
| 175 |
}, |
| 176 |
"channelToStoreLink": { # Information specific to a store on a merchandising platform linked to a YouTube channel. # Information specific to a link between a channel and a store on a merchandising platform. |
| 177 |
"billingDetails": { # Information specific to billing. # Information specific to billing (read-only). |
| 178 |
"billingStatus": "A String", # The current billing profile status. |
| 179 |
}, |
| 180 |
"merchantAffiliateProgramDetails": { # Information specific to merchant affiliate program. # Information specific to merchant affiliate program (read-only). |
| 181 |
"status": "A String", # The current merchant affiliate program status. |
| 182 |
}, |
| 183 |
"merchantId": "A String", # Google Merchant Center id of the store. |
| 184 |
"storeName": "A String", # Name of the store. |
| 185 |
"storeUrl": "A String", # Landing page of the store. |
| 186 |
}, |
| 187 |
"type": "A String", # Type of the link named after the entities that are being linked. |
| 188 |
}, |
| 189 |
"status": { # The third-party link status object contains information about the status of the link. # The status object contains information about the status of the link. |
| 190 |
"linkStatus": "A String", |
| 191 |
}, |
| 192 |
}</pre> |
| 193 |
</div> |
| 194 |
|
| 195 |
<div class="method"> |
| 196 |
<code class="details" id="list">list(part, externalChannelId=None, linkingToken=None, type=None, x__xgafv=None)</code> |
| 197 |
<pre>Retrieves a list of resources, possibly filtered. |
| 198 |
|
| 199 |
Args: |
| 200 |
part: string, The *part* parameter specifies the thirdPartyLink resource parts that the API response will include. Supported values are linkingToken, status, and snippet. (required) (repeated) |
| 201 |
externalChannelId: string, Channel ID to which changes should be applied, for delegation. |
| 202 |
linkingToken: string, Get a third party link with the given linking token. |
| 203 |
type: string, Get a third party link of the given type. |
| 204 |
Allowed values |
| 205 |
linkUnspecified - |
| 206 |
channelToStoreLink - A link that is connecting (or about to connect) a channel with a store on a merchandising platform in order to enable retail commerce capabilities for that channel on YouTube. |
| 207 |
channelToAffiliateProgramLink - A link that is connecting (or about to connect) a channel with an affiliate program of a partner to enable that channel to earn commissions from that partner through affiliate links. |
| 208 |
x__xgafv: string, V1 error format. |
| 209 |
Allowed values |
| 210 |
1 - v1 error format |
| 211 |
2 - v2 error format |
| 212 |
|
| 213 |
Returns: |
| 214 |
An object of the form: |
| 215 |
|
| 216 |
{ |
| 217 |
"etag": "A String", # Etag of this resource. |
| 218 |
"items": [ |
| 219 |
{ # A *third party account link* resource represents a link between a YouTube account or a channel and an account on a third-party service. |
| 220 |
"etag": "A String", # Etag of this resource |
| 221 |
"kind": "youtube#thirdPartyLink", # Identifies what kind of resource this is. Value: the fixed string "youtube#thirdPartyLink". |
| 222 |
"linkingToken": "A String", # The linking_token identifies a YouTube account and channel with which the third party account is linked. |
| 223 |
"snippet": { # Basic information about a third party account link, including its type and type-specific information. # The snippet object contains basic details about the third- party account link. |
| 224 |
"channelToAffiliateProgramLink": { # Information specific to a creator in an affiliate program linked to a YouTube channel. # Information specific to a link between a channel and an affiliate program of a partner. |
| 225 |
"merchantId": "A String", # Required. Google Merchant Center ID of the partner. |
| 226 |
"programStatus": "A String", # Required. Affiliate program status. |
| 227 |
"statusUpdateReason": "A String", # Optional. Reason for the last update of the affiliate program status. |
| 228 |
"statusUpdateTime": "A String", # Optional. Timestamp when the affiliate program status was last updated. |
| 229 |
}, |
| 230 |
"channelToStoreLink": { # Information specific to a store on a merchandising platform linked to a YouTube channel. # Information specific to a link between a channel and a store on a merchandising platform. |
| 231 |
"billingDetails": { # Information specific to billing. # Information specific to billing (read-only). |
| 232 |
"billingStatus": "A String", # The current billing profile status. |
| 233 |
}, |
| 234 |
"merchantAffiliateProgramDetails": { # Information specific to merchant affiliate program. # Information specific to merchant affiliate program (read-only). |
| 235 |
"status": "A String", # The current merchant affiliate program status. |
| 236 |
}, |
| 237 |
"merchantId": "A String", # Google Merchant Center id of the store. |
| 238 |
"storeName": "A String", # Name of the store. |
| 239 |
"storeUrl": "A String", # Landing page of the store. |
| 240 |
}, |
| 241 |
"type": "A String", # Type of the link named after the entities that are being linked. |
| 242 |
}, |
| 243 |
"status": { # The third-party link status object contains information about the status of the link. # The status object contains information about the status of the link. |
| 244 |
"linkStatus": "A String", |
| 245 |
}, |
| 246 |
}, |
| 247 |
], |
| 248 |
"kind": "youtube#thirdPartyLinkListResponse", # Identifies what kind of resource this is. Value: the fixed string "youtube#thirdPartyLinkListResponse". |
| 249 |
}</pre> |
| 250 |
</div> |
| 251 |
|
| 252 |
<div class="method"> |
| 253 |
<code class="details" id="update">update(part, body=None, externalChannelId=None, x__xgafv=None)</code> |
| 254 |
<pre>Updates an existing resource. |
| 255 |
|
| 256 |
Args: |
| 257 |
part: string, The *part* parameter specifies the thirdPartyLink resource parts that the API request and response will include. Supported values are linkingToken, status, and snippet. (required) (repeated) |
| 258 |
body: object, The request body. |
| 259 |
The object takes the form of: |
| 260 |
|
| 261 |
{ # A *third party account link* resource represents a link between a YouTube account or a channel and an account on a third-party service. |
| 262 |
"etag": "A String", # Etag of this resource |
| 263 |
"kind": "youtube#thirdPartyLink", # Identifies what kind of resource this is. Value: the fixed string "youtube#thirdPartyLink". |
| 264 |
"linkingToken": "A String", # The linking_token identifies a YouTube account and channel with which the third party account is linked. |
| 265 |
"snippet": { # Basic information about a third party account link, including its type and type-specific information. # The snippet object contains basic details about the third- party account link. |
| 266 |
"channelToAffiliateProgramLink": { # Information specific to a creator in an affiliate program linked to a YouTube channel. # Information specific to a link between a channel and an affiliate program of a partner. |
| 267 |
"merchantId": "A String", # Required. Google Merchant Center ID of the partner. |
| 268 |
"programStatus": "A String", # Required. Affiliate program status. |
| 269 |
"statusUpdateReason": "A String", # Optional. Reason for the last update of the affiliate program status. |
| 270 |
"statusUpdateTime": "A String", # Optional. Timestamp when the affiliate program status was last updated. |
| 271 |
}, |
| 272 |
"channelToStoreLink": { # Information specific to a store on a merchandising platform linked to a YouTube channel. # Information specific to a link between a channel and a store on a merchandising platform. |
| 273 |
"billingDetails": { # Information specific to billing. # Information specific to billing (read-only). |
| 274 |
"billingStatus": "A String", # The current billing profile status. |
| 275 |
}, |
| 276 |
"merchantAffiliateProgramDetails": { # Information specific to merchant affiliate program. # Information specific to merchant affiliate program (read-only). |
| 277 |
"status": "A String", # The current merchant affiliate program status. |
| 278 |
}, |
| 279 |
"merchantId": "A String", # Google Merchant Center id of the store. |
| 280 |
"storeName": "A String", # Name of the store. |
| 281 |
"storeUrl": "A String", # Landing page of the store. |
| 282 |
}, |
| 283 |
"type": "A String", # Type of the link named after the entities that are being linked. |
| 284 |
}, |
| 285 |
"status": { # The third-party link status object contains information about the status of the link. # The status object contains information about the status of the link. |
| 286 |
"linkStatus": "A String", |
| 287 |
}, |
| 288 |
} |
| 289 |
|
| 290 |
externalChannelId: string, Channel ID to which changes should be applied, for delegation. |
| 291 |
x__xgafv: string, V1 error format. |
| 292 |
Allowed values |
| 293 |
1 - v1 error format |
| 294 |
2 - v2 error format |
| 295 |
|
| 296 |
Returns: |
| 297 |
An object of the form: |
| 298 |
|
| 299 |
{ # A *third party account link* resource represents a link between a YouTube account or a channel and an account on a third-party service. |
| 300 |
"etag": "A String", # Etag of this resource |
| 301 |
"kind": "youtube#thirdPartyLink", # Identifies what kind of resource this is. Value: the fixed string "youtube#thirdPartyLink". |
| 302 |
"linkingToken": "A String", # The linking_token identifies a YouTube account and channel with which the third party account is linked. |
| 303 |
"snippet": { # Basic information about a third party account link, including its type and type-specific information. # The snippet object contains basic details about the third- party account link. |
| 304 |
"channelToAffiliateProgramLink": { # Information specific to a creator in an affiliate program linked to a YouTube channel. # Information specific to a link between a channel and an affiliate program of a partner. |
| 305 |
"merchantId": "A String", # Required. Google Merchant Center ID of the partner. |
| 306 |
"programStatus": "A String", # Required. Affiliate program status. |
| 307 |
"statusUpdateReason": "A String", # Optional. Reason for the last update of the affiliate program status. |
| 308 |
"statusUpdateTime": "A String", # Optional. Timestamp when the affiliate program status was last updated. |
| 309 |
}, |
| 310 |
"channelToStoreLink": { # Information specific to a store on a merchandising platform linked to a YouTube channel. # Information specific to a link between a channel and a store on a merchandising platform. |
| 311 |
"billingDetails": { # Information specific to billing. # Information specific to billing (read-only). |
| 312 |
"billingStatus": "A String", # The current billing profile status. |
| 313 |
}, |
| 314 |
"merchantAffiliateProgramDetails": { # Information specific to merchant affiliate program. # Information specific to merchant affiliate program (read-only). |
| 315 |
"status": "A String", # The current merchant affiliate program status. |
| 316 |
}, |
| 317 |
"merchantId": "A String", # Google Merchant Center id of the store. |
| 318 |
"storeName": "A String", # Name of the store. |
| 319 |
"storeUrl": "A String", # Landing page of the store. |
| 320 |
}, |
| 321 |
"type": "A String", # Type of the link named after the entities that are being linked. |
| 322 |
}, |
| 323 |
"status": { # The third-party link status object contains information about the status of the link. # The status object contains information about the status of the link. |
| 324 |
"linkStatus": "A String", |
| 325 |
}, |
| 326 |
}</pre> |
| 327 |
</div> |
| 328 |
|
| 329 |
</body></html> |