[Python] Gender Representation Mismatch in YouTube Analytics API

Discussão em 'Python' iniciado por Stack, Outubro 1, 2024.

  1. Stack

    Stack Membro Participativo

    My API Result

    {'kind': 'youtubeAnalytics#resultTable',
    'columnHeaders': [{'name': 'gender',
    'columnType': 'DIMENSION',
    'dataType': 'STRING'},
    {'name': 'viewerPercentage', 'columnType': 'METRIC', 'dataType': 'FLOAT'}],
    'rows': [['female', 0], ['male', 100]]}



    Where as the export from YouTube Data Studio I get the respective values: Excel Output from Data Studio

    Call I made:

    execute_api_request(
    youtubeAnalytics.reports().query,
    ids='channel=={MY_CHANNEL_ID}',
    startDate='2024-01-01',
    endDate='2024-09-30',
    metrics='viewerPercentage',
    dimensions='gender',
    )

    Continue reading...

Compartilhe esta Página