Skip to content

Commit

Permalink
MMSDK Licenses
Browse files Browse the repository at this point in the history
Deprecated code in AdMobAdaptor
  • Loading branch information
Mark Ha committed May 14, 2014
1 parent 1fac416 commit 3a38cb6
Show file tree
Hide file tree
Showing 4 changed files with 88 additions and 3 deletions.
8 changes: 6 additions & 2 deletions mediation/mediatedviews/AdMob/ANAdAdapterBannerAdMob.m
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@

#import "ANAdAdapterBannerAdMob.h"

#import "GADAdMobExtras.h"

@interface ANAdAdapterBannerAdMob ()
@property (nonatomic, readwrite, strong) GADBannerView *bannerView;
@end
Expand Down Expand Up @@ -94,8 +96,10 @@ - (GADRequest *)createRequestFromTargetingParameters:(ANTARGETINGPARAMETERS *)ta
longitude:location.longitude
accuracy:location.horizontalAccuracy];
}

request.additionalParameters = targetingParameters.customKeywords;

GADAdMobExtras *extras = [GADAdMobExtras new];
extras.additionalParameters = targetingParameters.customKeywords;
[request registerAdNetworkExtras:extras];

return request;
}
Expand Down
6 changes: 5 additions & 1 deletion mediation/mediatedviews/AdMob/ANAdAdapterInterstitialAdMob.m
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@

#import "ANAdAdapterInterstitialAdMob.h"

#import "GADAdMobExtras.h"

@interface ANAdAdapterInterstitialAdMob ()

@property (nonatomic, readwrite, strong) GADInterstitial *interstitialAd;
Expand Down Expand Up @@ -78,7 +80,9 @@ - (GADRequest *)createRequestFromTargetingParameters:(ANTARGETINGPARAMETERS *)ta
accuracy:location.horizontalAccuracy];
}

request.additionalParameters = targetingParameters.customKeywords;
GADAdMobExtras *extras = [GADAdMobExtras new];
extras.additionalParameters = targetingParameters.customKeywords;
[request registerAdNetworkExtras:extras];

return request;
}
Expand Down
Loading

0 comments on commit 3a38cb6

Please sign in to comment.