Ruby - Analytics 4, where is the view_id?

Discussion in 'Google API' started by Manolo12, Jan 18, 2023.

  1. #1
    Hi, so i have a project where i use 'google/apis/analytics_v3' to make some requests and get some data, the thing is that i need a view_id to do that.

    @service.get_ga_data(VIEW_ID, @start_date, @end_date, 'ga:users').totals_for_all_results

    the thing is that on the new version of the analytics we don't have the view_id and cannot find a way in ruby to do the same that this does.

    Thanks in advance to someone who can help me
     
    Manolo12, Jan 18, 2023 IP