1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

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