commit | author | age
|
96fe76
|
1 |
// |
L |
2 |
// GADMediationAdRequest.h |
|
3 |
// Google Mobile Ads SDK |
|
4 |
// |
|
5 |
// Copyright 2015 Google. All rights reserved. |
|
6 |
// |
|
7 |
|
|
8 |
#import <Foundation/Foundation.h> |
|
9 |
|
|
10 |
#import <GoogleMobileAds/GADAdNetworkExtras.h> |
|
11 |
#import <GoogleMobileAds/GADRequest.h> |
|
12 |
#import <GoogleMobileAds/GADRequestConfiguration.h> |
|
13 |
#import <GoogleMobileAds/Mediation/GADMEnums.h> |
|
14 |
|
|
15 |
/// Provides information which can be used for making ad requests during mediation. |
|
16 |
@protocol GADMediationAdRequest <NSObject> |
|
17 |
|
|
18 |
/// Publisher ID set by the publisher on the AdMob frontend. |
|
19 |
- (nullable NSString *)publisherId; |
|
20 |
|
|
21 |
/// Mediation configurations set by the publisher on the AdMob frontend. |
|
22 |
- (nullable NSDictionary *)credentials; |
|
23 |
|
|
24 |
/// Returns YES if the publisher is requesting test ads. |
|
25 |
- (BOOL)testMode; |
|
26 |
|
|
27 |
/// The adapter's ad network extras specified in GADRequest. |
|
28 |
- (nullable id<GADAdNetworkExtras>)networkExtras; |
|
29 |
|
|
30 |
/// Returns the value of childDirectedTreatment supplied by the publisher. Returns nil if the |
|
31 |
/// publisher hasn't specified child directed treatment. Returns @YES if child directed treatment is |
|
32 |
/// enabled. |
|
33 |
- (nullable NSNumber *)childDirectedTreatment; |
|
34 |
|
|
35 |
/// Returns the maximum ad content rating supplied by the publisher. Returns nil if the publisher |
|
36 |
/// hasn't specified a max ad content rating. |
|
37 |
- (nullable GADMaxAdContentRating)maxAdContentRating; |
|
38 |
|
|
39 |
/// Returns the value of underAgeOfConsent supplied by the publisher. Returns nil if the publisher |
|
40 |
/// hasn't specified the user is under the age of consent. Returns @YES if the user is under the age |
|
41 |
/// of consent. |
|
42 |
- (nullable NSNumber *)underAgeOfConsent; |
|
43 |
|
|
44 |
/// Keywords describing the user's current activity. Example: @"Sport Scores". |
|
45 |
- (nullable NSArray *)userKeywords; |
|
46 |
|
|
47 |
@end |