Share your feedback and help shape the Google Mobile Ads SDK roadmap. Take the Google Mobile Ads SDK Annual Survey for 2023 before it closes on May 5th, 2023.

GoogleMobileAds Framework Reference

Stay organized with collections Save and categorize content based on your preferences.

GADQueryInfo

@interface GADQueryInfo : NSObject

Query info used in requests.

  • Query string used in requests.

    Declaration

    Swift

    var query: String { get }

    Objective-C

    @property (nonatomic, readonly, nonnull) NSString *query;
  • Creates query info that can be used as input in a Google request. Calls completionHandler asynchronously on the main thread once query info has been created or when an error occurs.

    Declaration

    Swift

    class func createQueryInfo(with request: GADRequest?, adFormat: GADAdFormat) async throws -> GADQueryInfo

    Objective-C

    + (void)createQueryInfoWithRequest:(nullable GADRequest *)request
                              adFormat:(GADAdFormat)adFormat
                     completionHandler:
                         (nonnull GADQueryInfoCreationCompletionHandler)
                             completionHandler;