# SearchInAppsSDK Framework Reference

# GetTrendingSearchesOptions

    @objc
    final class GetTrendingSearchesOptions

This class contains all the options necessary to request trending searches.
- `


  ### [clientId](https://developers.google.com/search-in-apps/ios/reference/api/swift_reference/Classes/GetTrendingSearchesOptions#/c:@M@SearchInAppsSDK@objc(cs)GetTrendingSearchesOptions(py)clientId)


  ` The client ID used to request trends if it is different from the
  client ID specified in Info.plist.

  #### Declaration

  Swift

      @objc
      final var clientId: String?

- `


  ### [maxNumTrends](https://developers.google.com/search-in-apps/ios/reference/api/swift_reference/Classes/GetTrendingSearchesOptions#/s:15SearchInAppsSDK26GetTrendingSearchesOptionsC12maxNumTrendsSiSgvp)


  ` The max number of trends returned. If not set, the api server will return all the trends
  returned from the hot trends server.

  #### Declaration

  Swift

      final var maxNumTrends: Int?

- `


  ### [maxNumTrendsC](https://developers.google.com/search-in-apps/ios/reference/api/swift_reference/Classes/GetTrendingSearchesOptions#/c:@M@SearchInAppsSDK@objc(cs)GetTrendingSearchesOptions(py)maxNumTrends)


  ` The max number of trends returned. If not set, the api server will return all the trends
  returned from the hot trends server.

  #### Declaration

  Swift

      @objc(https://developers.google.com/search-in-apps/ios/reference/api/swift_reference/Classes/GetTrendingSearchesOptions.html#/s:15SearchInAppsSDK26GetTrendingSearchesOptionsC12maxNumTrendsSiSgvp)
      final var maxNumTrendsC: NSNumber? { get set }