def ad_insights(range: Date.today..Date.today, level: nil, breakdowns: [], fields: [], limit: 1_000)
      query = {
        time_range: { since: range.first.to_s, until: range.last.to_s },
        level: level,
        breakdowns: breakdowns&.join(','),
        fields: fields&.join(','),
        limit: limit
      }.reject { |_key, value| value.nil? || (value.respond_to?(:empty?) && value.empty?) }

      AdInsight.paginate("/#{id}/insights", query: query)
    end
def ad_insights(range: Date.today..Date.today, level: nil, breakdowns: [], fields: [], limit: 1_000)
      query = {
        time_range: { since: range.first.to_s, until: range.last.to_s },
        level: level,
        breakdowns: breakdowns&.join(','),
        fields: fields&.join(','),
        limit: limit
      }.reject { |_key, value| value.nil? || (value.respond_to?(:empty?) && value.empty?) }

      AdInsight.paginate("/#{id}/insights", query: query)
    end
AdInsight
 levels = enum {ad, adset, campaign, account}
 breakdowns = list<enum {..., product_id, ...}>