Fix YPP monetize self-cert to use ANSWER_SKIPPED enum.
Matches youtube-studio library payload so Studio metadata_update accepts altered-content questionnaire. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
c9c71948cb
commit
a9c0af5f36
@ -36,6 +36,20 @@ _CERT_QUESTIONS = [
|
|||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
|
def _self_cert_skipped() -> dict[str, Any]:
|
||||||
|
"""Match youtube-studio library — skip altered-content questionnaire."""
|
||||||
|
return {
|
||||||
|
"newSelfCertificationData": {
|
||||||
|
"questionnaireAnswers": [
|
||||||
|
{"question": q, "answer": "VIDEO_SELF_CERTIFICATION_ANSWER_SKIPPED"}
|
||||||
|
for q in _CERT_QUESTIONS
|
||||||
|
],
|
||||||
|
"certificationMethod": "VIDEO_SELF_CERTIFICATION_METHOD_DEFAULT_NONE",
|
||||||
|
"questionnaireVersion": "VIDEO_SELF_CERTIFICATION_QUESTIONNAIRE_VERSION_8",
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
def _self_cert_no() -> dict[str, Any]:
|
def _self_cert_no() -> dict[str, Any]:
|
||||||
"""Answer altered-content quiz as all-No."""
|
"""Answer altered-content quiz as all-No."""
|
||||||
return {
|
return {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user