首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >缺少YouTube报表API的content_owner_ad_revenue_raw_a1表

缺少YouTube报表API的content_owner_ad_revenue_raw_a1表
EN

Stack Overflow用户
提问于 2019-01-14 04:10:35
回答 1查看 422关注 0票数 1

我正在使用报告下载数据分析。然后返回一个可用报告类型的列表,如下所示:

代码语言:javascript
复制
 name reporting type: content_owner_basic_a3

 name reporting type: content_owner_estimated_revenue_a1

 name reporting type: content_owner_asset_province_a2

 name reporting type: content_owner_asset_playback_location_a2

 name reporting type: content_owner_asset_basic_a2

 name reporting type: content_owner_asset_demographics_a1

 name reporting type: content_owner_demographics_a1

 name reporting type: content_owner_asset_cards_a1

 name reporting type: content_owner_cards_a1

 name reporting type: content_owner_asset_traffic_source_a2

 name reporting type: content_owner_asset_sharing_service_a1

 name reporting type: content_owner_traffic_source_a2

 name reporting type: content_owner_device_os_a2

 name reporting type: content_owner_playlist_combined_a1

 name reporting type: content_owner_playback_location_a2

 name reporting type: content_owner_subtitles_a2

 name reporting type: content_owner_playlist_device_os_a1

 name reporting type: content_owner_end_screens_a1

 name reporting type: content_owner_annotations_a1

 name reporting type: content_owner_ad_rates_a1

 name reporting type: content_owner_playlist_basic_a1

 name reporting type: content_owner_sharing_service_a1

 name reporting type: content_owner_asset_end_screens_a1

 name reporting type: content_owner_asset_device_os_a2

 name reporting type: content_owner_province_a2

 name reporting type: content_owner_playlist_traffic_source_a1

 name reporting type: content_owner_playlist_playback_location_a1

 name reporting type: content_owner_asset_estimated_revenue_a1

 name reporting type: content_owner_combined_a2

 name reporting type: content_owner_asset_annotations_a1

 name reporting type: content_owner_asset_combined_a2

 name reporting type: content_owner_playlist_province_a1

问题是,似乎content_owner_ad_revenue_raw_a1content_owner_video_metadata_a2/content_owner_video_metadata_a1.的报告无法获得报告类型。是否有任何方法从这些报告类型下载数据?

EN

回答 1

Stack Overflow用户

发布于 2019-02-15 16:23:54

这些是系统管理的报告。

您需要将includeSystemManaged=True作为参数添加到.list()中。在链接的代码示例上下文中,修改第152-158行,如下所示:

代码语言:javascript
复制
try:
    # If the user has not specified a job ID or report URL, retrieve a list
    # of available jobs and prompt the user to select one.
    if not args.job_id and not args.report_url:
      if list_reporting_jobs(youtube_reporting,
                             onBehalfOfContentOwner=args.content_owner
                             includeSystemManaged=True):
        args.job_id = get_job_id_from_user()

如果直接调用list()函数,

代码语言:javascript
复制
youtube_reporting.jobs().list(onBehalfOfContentOwner={your_content_owner_id}, includeSystemManaged=True).execute()
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/54175696

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档