Right now one client ID can only support one search feature. If you want to use
multiple search features in your app, you should use multiple client IDs. In
addition, if you want to use the same search feature in different entry points
in your app, you should also use different client IDs for each of them to
distinguish the traffic.

For your each request, you can proactively set a client ID in
`GetSearchSuggestionsOptions`, `GetTrendingSearchesOptions` or
`GetSearchContentOptions`, and this ID will override the default client ID
in the `Info.plist` file (only for this request).

### Swift

[getSearchSuggestions(withOptions:)](https://developers.google.com/search-in-apps/ios/reference/api/swift_reference/Classes/ContextualSearchRuntime#getsearchsuggestionswithoptions:)

    Task {
        let options = GetSearchSuggestionsOptions(withTextContext:['Sample Query', 'Another query string'])
        options.clientId = "client id"
        let suggestions = try await searchRuntime.getSearchSuggestions(
                withOptions: options)
    }

### Objective-C

[getSearchSuggestionsWithOptions](https://developers.google.com/search-in-apps/ios/reference/api/objc_reference/Classes/ContextualSearchRuntime#-getsearchsuggestionswithoptions:completionhandler:)

      GetSearchSuggestionsOptions *options = [[GetSearchSuggestionsOptions alloc] initWithTextContext: @[@'Sample Query', @'Another query string' ]];
      options.clientId = [NSString stringWithFormat:@"client id"];
      [searchRuntime
          getSearchSuggestionsWithOptions:options
                                 completionHandler:^(SearchSuggestions *_Nullable suggestions,
                                                     NSError *_Nullable error) {
                                  // error will be not null if there is an error.
                                  // On success, suggestions will be non null.
                                }];