Quantcast
Channel: Active questions tagged youtube-api - Stack Overflow
Viewing all articles
Browse latest Browse all 3712

Youtube analytics reports response empty rows

$
0
0

sorry if this question already exists,i'm trying to get audience retention data from Youtube API: (https://youtubeanalytics.googleapis.com/v2/reports), most of them are FINE, but some of videos response empty rows, meanwhile I can export audience retention data to Google Sheets on Youtube manage page.

My headers:

        headers = {'Accept': 'application/json', 'Authorization': 'Bearer {}'.format(access_token)        }

Parametters:

        params = {'dimensions': 'elapsedVideoTimeRatio','ids': 'channel==MINE','metrics': 'audienceWatchRatio','startDate': video_published_date,'endDate': execute_date,'filters': 'video=={};audienceType=={}'.format(youtube_video_id, audience_type),'key': *youtube_api_key*        }

audience_type is ORGANIC and AD_INSTREAM

Response:

root - INFO : {"kind": "youtubeAnalytics#resultTable","columnHeaders": [    {"name": "elapsedVideoTimeRatio","columnType": "DIMENSION","dataType": "FLOAT"    },    {"name": "audienceWatchRatio","columnType": "METRIC","dataType": "FLOAT"    }  ],"rows": []}

Here is one of video audience retention data i got empty rows

What do I need to pay attention to in order to get audience retention data, Please let's me know


Viewing all articles
Browse latest Browse all 3712

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>