commit | author | age
|
96fe76
|
1 |
// |
L |
2 |
// GADQueryInfo.h |
|
3 |
// Google Mobile Ads SDK |
|
4 |
// |
|
5 |
// Copyright 2019 Google LLC. All rights reserved. |
|
6 |
// |
|
7 |
|
|
8 |
#import <GoogleMobileAds/GADAdFormat.h> |
|
9 |
#import <GoogleMobileAds/GADRequest.h> |
|
10 |
|
|
11 |
@class GADQueryInfo; |
|
12 |
|
|
13 |
/// Completion handler for query creation. Returns query info or an error. |
|
14 |
typedef void (^GADQueryInfoCreationCompletionHandler)(GADQueryInfo *_Nullable queryInfo, |
|
15 |
NSError *_Nullable error); |
|
16 |
|
|
17 |
/// Query info used in requests. |
|
18 |
@interface GADQueryInfo : NSObject |
|
19 |
|
|
20 |
/// Query string used in requests. |
|
21 |
@property(nonatomic, readonly, nonnull) NSString *query; |
|
22 |
|
|
23 |
/// Creates query info that can be used as input in a Google request. Calls completionHandler |
|
24 |
/// asynchronously on the main thread once query info has been created or when an error occurs. |
|
25 |
+ (void)createQueryInfoWithRequest:(nullable GADRequest *)request |
|
26 |
adFormat:(GADAdFormat)adFormat |
|
27 |
completionHandler:(nonnull GADQueryInfoCreationCompletionHandler)completionHandler; |
|
28 |
|
|
29 |
/// Creates query info for adUnitID that can be used as input in a Google request. Calls |
|
30 |
/// completionHandler asynchronously on the main thread once query info has been created or when an |
|
31 |
/// error occurs. |
|
32 |
+ (void)createQueryInfoWithRequest:(nullable GADRequest *)request |
|
33 |
adFormat:(GADAdFormat)adFormat |
|
34 |
adUnitID:(nonnull NSString *)adUnitID |
|
35 |
completionHandler:(nonnull GADQueryInfoCreationCompletionHandler)completionHandler; |
|
36 |
|
|
37 |
@end |