Skip to content

Commit

Permalink
SDK v7.4
Browse files Browse the repository at this point in the history
* commit '34202f76441d57bb967a6b241e73ceb4fe5ac944': (32 commits)
  Updated SDK v7.4
  Updated delegate Name
  Benchmark performance stats for various ad formats
  Merge pull request #586 in MOBILE-SDK/app_mobile-sdk-ios from testVolumeChange to develop
  Merge pull request #567 in MOBILE-SDK/app_mobile-sdk-ios from 20200508,1537--dreeder--sdk--Lazy_Webview_feature to develop
  Merge pull request #571 in MOBILE-SDK/app_mobile-sdk-ios from MS-4365 to develop
  Merge pull request #585 in MOBILE-SDK/app_mobile-sdk-ios from Fix_Tests to develop
  network latecncy changes
  Revert Slider frame with zero
  code update as per comment
  Updated test cases
  Added MPVolumeSlider to get audioVolumeChange event
  ad registers for an audioVolumeChange event
  Update CSR log
  Code update for CSRAd
  Updated FB SDK 5.9.0 for UnitTest
  NetworkTimeout added for CSR Ad
  Respect Console timeout
  Updated v5.9.0
  Added shouldAllowBannerDemand
  ...
  • Loading branch information
asharmaa committed Jun 29, 2020
2 parents a9d2b01 + 34202f7 commit c52bc92
Show file tree
Hide file tree
Showing 151 changed files with 6,597 additions and 671 deletions.
6 changes: 3 additions & 3 deletions AppNexusSDK.podspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Pod::Spec.new do |s|

s.name = "AppNexusSDK"
s.version = "7.3.2"
s.version = "7.4"
s.platform = :ios, "9.0"

s.summary = "AppNexus iOS Mobile Advertising SDK"
Expand Down Expand Up @@ -45,15 +45,15 @@ DESC

s.subspec 'FacebookCSRAdapter' do |subspec|
subspec.dependency 'AppNexusSDK/AppNexusSDK', "#{s.version}"
subspec.dependency 'FBAudienceNetwork', '5.5.1'
subspec.dependency 'FBAudienceNetwork', '5.9.0'
subspec.source_files = "csr/Facebook/*.{h,m}"
subspec.public_header_files = "csr/Facebook/ANFBSettings.h"
subspec.xcconfig = { 'FRAMEWORK_SEARCH_PATHS' => '${PODS_ROOT}/FBAudienceNetwork/**' }
end

s.subspec 'FacebookAdapter' do |subspec|
subspec.dependency 'AppNexusSDK/AppNexusSDK', "#{s.version}"
subspec.dependency 'FBAudienceNetwork', '5.5.1'
subspec.dependency 'FBAudienceNetwork', '5.9.0'
subspec.source_files = "mediation/mediatedviews/Facebook/*.{h,m}"
subspec.public_header_files = "mediation/mediatedviews/Facebook/ANAdAdapterNativeFacebook.h"
subspec.xcconfig = { 'FRAMEWORK_SEARCH_PATHS' => '${PODS_ROOT}/FBAudienceNetwork/**' }
Expand Down
15 changes: 15 additions & 0 deletions RELEASE-NOTES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
## 7.4
### New Feature
+ MS-4214: Added support for loading the Ad lazily (Lazy Load) [https://wiki.xandr.com/x/VJFlBg]

### Mediation partner upgrade
+ FacebookAd SDK v5.9.0

### Improvements/Bug Fixes
+ MS-4231: Added support to respect timeout set in Console
+ MS-4284: Implemented support for MRAID v3.0 audioVolumeChange event
+ MS-4290: Added support to get Custom Keywords in the JavaScript layer via ANJAM
+ MS-4319: Added support to disable Banner demand for BannerAdView
+ MS-4335: Improved Banner Ad performance


## 7.3.2
### Improvements/Bug Fixes
+ MS-4352: Fixed NSHTTPCookieStorage setting
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ - (void)viewDidLoad

int adWidth = 300;
int adHeight = 250;
NSString *adID = @"1281482";
NSString *adID = @"19212468";

// We want to center our ad on the screen.
CGRect screenRect = [[UIScreen mainScreen] bounds];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ @implementation InterstitialAdViewController
- (void)viewDidLoad {
[super viewDidLoad];
self.title = @"Interstitial Ad";
self.interstitialAd = [[ANInterstitialAd alloc] initWithPlacementId:@"1281482"];
self.interstitialAd = [[ANInterstitialAd alloc] initWithPlacementId:@"19212468"];
self.interstitialAd.delegate = self;
self.interstitialAd.clickThroughAction = ANClickThroughActionReturnURL;
[self.interstitialAd loadAd];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ - (void)viewDidLoad {
// Create Banner Ad Object
- (ANBannerAdView *)createBannerAd:(UIView *) adView
{
self.bannerAd = [[ANBannerAdView alloc] initWithFrame:CGRectMake(0, 0, 300, 250) placementId:@"17982237" adSize:CGSizeMake(300, 250)];
self.bannerAd = [[ANBannerAdView alloc] initWithFrame:CGRectMake(0, 0, 300, 250) placementId:@"19212468" adSize:CGSizeMake(300, 250)];
self.bannerAd.rootViewController =self;
self.bannerAd.delegate =self;
self.bannerAd.shouldResizeAdToFitContainer = YES;
Expand All @@ -73,7 +73,7 @@ - (ANBannerAdView *)createBannerAd:(UIView *) adView
// Create Interstitial Ad Object
- (ANInterstitialAd *)createInterstitialAd
{
self.interstitialAd = [[ANInterstitialAd alloc] initWithPlacementId:@"17982237"];
self.interstitialAd = [[ANInterstitialAd alloc] initWithPlacementId:@"19212468"];
self.interstitialAd.delegate =self;
return self.interstitialAd;

Expand All @@ -83,7 +83,7 @@ - (ANInterstitialAd *)createInterstitialAd
// Create InstreamVideo Ad Object
- (ANInstreamVideoAd *)createVideoAd
{
self.videoAd = [[ANInstreamVideoAd alloc] initWithPlacementId:@"17982237"];
self.videoAd = [[ANInstreamVideoAd alloc] initWithPlacementId:@"19212468"];
self.videoAd.loadDelegate =self;
return self.videoAd;
}
Expand All @@ -92,7 +92,7 @@ - (ANInstreamVideoAd *)createVideoAd
- (ANNativeAdRequest *)createNativeAd
{
self.nativeAdRequest = [[ANNativeAdRequest alloc] init];
self.nativeAdRequest.placementId = @"17982237";
self.nativeAdRequest.placementId = @"19212468";
self.nativeAdRequest.shouldLoadIconImage = YES;
self.nativeAdRequest.shouldLoadMainImage = YES;
self.nativeAdRequest.delegate = self;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ - (void)viewDidLoad {
[ANLogManager setANLogLevel:ANLogLevelAll];

self.nativeAdRequest= [[ANNativeAdRequest alloc] init];
self.nativeAdRequest.placementId = @"1281482";
self.nativeAdRequest.placementId = @"19212468";
self.nativeAdRequest.gender = ANGenderMale;
self.nativeAdRequest.shouldLoadIconImage = YES;
self.nativeAdRequest.shouldLoadMainImage = YES;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@


NSString *const videoContent = @"https://acdn.adnxs.com/mobile/video_test/content/Scenario.mp4";
NSString *const placementId = @"9924001";
NSString *const placementId = @"19212468";



Expand Down Expand Up @@ -73,8 +73,8 @@ - (void)viewDidLoad {
}

[self setupContentPlayer];
// self.videoAd = [[ANInstreamVideoAd alloc] initWithPlacementId:placementId];
self.videoAd = [[ANInstreamVideoAd alloc] initWithMemberId:958 inventoryCode:@"trucksmash"];
self.videoAd = [[ANInstreamVideoAd alloc] initWithPlacementId:placementId];
// self.videoAd = [[ANInstreamVideoAd alloc] initWithMemberId:958 inventoryCode:@"trucksmash"];
[self.videoAd loadAdWithDelegate:self];
self.videoAd.clickThroughAction = ANClickThroughActionOpenSDKBrowser;

Expand Down
28 changes: 24 additions & 4 deletions sdk/AppNexusSDK.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@
0ECF336622D79A62007DB185 /* AppNexusSDK.h in Headers */ = {isa = PBXBuildFile; fileRef = 0ECF336022D79A62007DB185 /* AppNexusSDK.h */; settings = {ATTRIBUTES = (Public, ); }; };
0ED85345208A94F200A5FFA0 /* ANGDPRSettings.m in Sources */ = {isa = PBXBuildFile; fileRef = 0E35D4AC2088F67E000A6C27 /* ANGDPRSettings.m */; };
0EF636D322D7726000D3320F /* ANProxyViewController.h in Headers */ = {isa = PBXBuildFile; fileRef = 8ABC03D21C5AD3E100D7C789 /* ANProxyViewController.h */; settings = {ATTRIBUTES = (Public, ); }; };
381A0183245B17850093EBB2 /* ANAudioVolumeChangeListener.h in Headers */ = {isa = PBXBuildFile; fileRef = 381A0181245B17850093EBB2 /* ANAudioVolumeChangeListener.h */; };
381A0184245B17850093EBB2 /* ANAudioVolumeChangeListener.m in Sources */ = {isa = PBXBuildFile; fileRef = 381A0182245B17850093EBB2 /* ANAudioVolumeChangeListener.m */; };
4F06400823A2E7D700E7920A /* ANAdFetcherBase.m in Sources */ = {isa = PBXBuildFile; fileRef = 006F6B992295F70E003D2DF0 /* ANAdFetcherBase.m */; };
4F06400923A2E7DC00E7920A /* ANAdFetcherBase.h in Headers */ = {isa = PBXBuildFile; fileRef = 006F6B9D2295F72A003D2DF0 /* ANAdFetcherBase.h */; };
4F5758B12303A8CB00AFF4B6 /* ANMultiAdRequest.m in Sources */ = {isa = PBXBuildFile; fileRef = 4F5758B02303A8CB00AFF4B6 /* ANMultiAdRequest.m */; };
Expand All @@ -97,6 +99,10 @@
4F8EBCD4235E2F6200256BFB /* ANMultiAdRequest+PrivateMethods.h in Headers */ = {isa = PBXBuildFile; fileRef = 4F8EBCD3235E2F6200256BFB /* ANMultiAdRequest+PrivateMethods.h */; };
4F8EBCD5235E2F6200256BFB /* ANMultiAdRequest+PrivateMethods.h in Headers */ = {isa = PBXBuildFile; fileRef = 4F8EBCD3235E2F6200256BFB /* ANMultiAdRequest+PrivateMethods.h */; };
4F99240E2357BEC1008E31B6 /* ANMultiAdRequest.h in Headers */ = {isa = PBXBuildFile; fileRef = 4F61C690231F0C0C00678DB8 /* ANMultiAdRequest.h */; settings = {ATTRIBUTES = (Public, ); }; };
60165D262464823E00E8E07C /* ANHTTPNetworkSession.m in Sources */ = {isa = PBXBuildFile; fileRef = 60165D242464823D00E8E07C /* ANHTTPNetworkSession.m */; };
60165D272464823E00E8E07C /* ANHTTPNetworkSession.m in Sources */ = {isa = PBXBuildFile; fileRef = 60165D242464823D00E8E07C /* ANHTTPNetworkSession.m */; };
60165D282464823E00E8E07C /* ANHTTPNetworkSession.h in Headers */ = {isa = PBXBuildFile; fileRef = 60165D252464823E00E8E07C /* ANHTTPNetworkSession.h */; };
60165D292464823E00E8E07C /* ANHTTPNetworkSession.h in Headers */ = {isa = PBXBuildFile; fileRef = 60165D252464823E00E8E07C /* ANHTTPNetworkSession.h */; };
60183FD52293482700CFDE33 /* ANWebView.h in Headers */ = {isa = PBXBuildFile; fileRef = 60183FD222933E9500CFDE33 /* ANWebView.h */; settings = {ATTRIBUTES = (Private, ); }; };
60183FD622934AB500CFDE33 /* ANWebView.m in Sources */ = {isa = PBXBuildFile; fileRef = 60183FD322933E9500CFDE33 /* ANWebView.m */; };
602ADF6720178BAF00BEF101 /* ANProxyViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 8ABC03D31C5AD3E100D7C789 /* ANProxyViewController.m */; };
Expand Down Expand Up @@ -384,6 +390,8 @@
0ECF336022D79A62007DB185 /* AppNexusSDK.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppNexusSDK.h; sourceTree = "<group>"; };
0ECF336122D79A62007DB185 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
0EEE97DA21764ACD007DADE6 /* omsdk.js */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.javascript; path = omsdk.js; sourceTree = "<group>"; };
381A0181245B17850093EBB2 /* ANAudioVolumeChangeListener.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ANAudioVolumeChangeListener.h; sourceTree = "<group>"; };
381A0182245B17850093EBB2 /* ANAudioVolumeChangeListener.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ANAudioVolumeChangeListener.m; sourceTree = "<group>"; };
4F131E8A1F71CCE50019FDAC /* ANAdFetcherResponse.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ANAdFetcherResponse.h; sourceTree = "<group>"; };
4F131E8B1F71CCE50019FDAC /* ANAdFetcherResponse.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ANAdFetcherResponse.m; sourceTree = "<group>"; };
4F403A6D2043C8CF00EF75A2 /* vastVideo.html */ = {isa = PBXFileReference; lastKnownFileType = text.html; path = vastVideo.html; sourceTree = "<group>"; };
Expand All @@ -396,6 +404,8 @@
4FA566E81F4B94D3004652AB /* ANTrackerInfo.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ANTrackerInfo.m; sourceTree = "<group>"; };
4FA566E91F4B94D3004652AB /* ANTrackerManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ANTrackerManager.h; sourceTree = "<group>"; };
4FA566EA1F4B94D3004652AB /* ANTrackerManager.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ANTrackerManager.m; sourceTree = "<group>"; };
60165D242464823D00E8E07C /* ANHTTPNetworkSession.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ANHTTPNetworkSession.m; sourceTree = "<group>"; };
60165D252464823E00E8E07C /* ANHTTPNetworkSession.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ANHTTPNetworkSession.h; sourceTree = "<group>"; };
60183FD222933E9500CFDE33 /* ANWebView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ANWebView.h; sourceTree = "<group>"; };
60183FD322933E9500CFDE33 /* ANWebView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ANWebView.m; sourceTree = "<group>"; };
602E0E221FE46571002C0F1C /* WKWebView+ANCategory.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "WKWebView+ANCategory.h"; sourceTree = "<group>"; };
Expand Down Expand Up @@ -836,13 +846,17 @@
8AC7C5371A3B5CEF00AA5548 /* ANAdWebViewController.m */,
8AD618A81981C11F00AC0780 /* ANANJAMImplementation.h */,
8AD618A91981C11F00AC0780 /* ANANJAMImplementation.m */,
381A0181245B17850093EBB2 /* ANAudioVolumeChangeListener.h */,
381A0182245B17850093EBB2 /* ANAudioVolumeChangeListener.m */,
8AD618AA1981C11F00AC0780 /* ANBannerAdView.m */,
8AD618AC1981C11F00AC0780 /* ANBrowserViewController.h */,
8AD618AD1981C11F00AC0780 /* ANBrowserViewController.m */,
8AD618AE1981C11F00AC0780 /* ANClickOverlayView.h */,
8AD618AF1981C11F00AC0780 /* ANClickOverlayView.m */,
8AD618B01981C11F00AC0780 /* ANGlobal.h */,
8AD618B11981C11F00AC0780 /* ANGlobal.m */,
60165D252464823E00E8E07C /* ANHTTPNetworkSession.h */,
60165D242464823D00E8E07C /* ANHTTPNetworkSession.m */,
8AD618B21981C11F00AC0780 /* ANInterstitialAd.m */,
8AD618B31981C11F00AC0780 /* ANInterstitialAdViewController.h */,
8AD618B41981C11F00AC0780 /* ANInterstitialAdViewController.m */,
Expand Down Expand Up @@ -1012,6 +1026,7 @@
8A9AEDB31A1BE8C200C58BDA /* ANAdView.h in Headers */,
8A9AEDCE1A1BF88200C58BDA /* ANAdViewInternalDelegate.h in Headers */,
8A9AEDD01A1BF88200C58BDA /* ANANJAMImplementation.h in Headers */,
381A0183245B17850093EBB2 /* ANAudioVolumeChangeListener.h in Headers */,
8A9AEDC61A1BF88200C58BDA /* ANBannerAdView+ANContentViewTransitions.h in Headers */,
8A9AEDB41A1BE8C200C58BDA /* ANBannerAdView.h in Headers */,
FCC5DA612034AD3E003DC7B2 /* ANBaseAdObject.h in Headers */,
Expand All @@ -1026,6 +1041,7 @@
8A9AEDB51A1BE8C200C58BDA /* ANCustomAdapter.h in Headers */,
0EBE633A208F765E0008F4CC /* ANGDPRSettings.h in Headers */,
8A9AEDD41A1BF88200C58BDA /* ANGlobal.h in Headers */,
60165D282464823E00E8E07C /* ANHTTPNetworkSession.h in Headers */,
609732B41E42E7910061EC0A /* ANInstreamVideoAd.h in Headers */,
8A9AEDB61A1BE8C200C58BDA /* ANInterstitialAd.h in Headers */,
8A9AEDD51A1BF88200C58BDA /* ANInterstitialAdViewController.h in Headers */,
Expand Down Expand Up @@ -1113,6 +1129,7 @@
0E02F07124336D590073A226 /* ANCSRNativeAdResponse.h in Headers */,
F5731BC2228C9A4C0012B134 /* ANGDPRSettings.h in Headers */,
F5731B72228C8FD60012B134 /* ANGlobal.h in Headers */,
60165D292464823E00E8E07C /* ANHTTPNetworkSession.h in Headers */,
F5731B74228C900E0012B134 /* ANLocation.h in Headers */,
F5731B78228C90310012B134 /* ANLogging.h in Headers */,
F5731B75228C90240012B134 /* ANLogManager.h in Headers */,
Expand Down Expand Up @@ -1316,6 +1333,7 @@
8A9AEDF01A1BF99D00C58BDA /* ANAdView.m in Sources */,
8AE7AD9F1A7AC4F6009E2F2F /* ANAdWebViewController.m in Sources */,
8A9AEDF21A1BF99D00C58BDA /* ANANJAMImplementation.m in Sources */,
381A0184245B17850093EBB2 /* ANAudioVolumeChangeListener.m in Sources */,
8A9AEDE81A1BF99D00C58BDA /* ANBannerAdView+ANContentViewTransitions.m in Sources */,
8A9AEDF31A1BF99D00C58BDA /* ANBannerAdView.m in Sources */,
FCC5DA5F2034AD35003DC7B2 /* ANBaseAdObject.m in Sources */,
Expand All @@ -1328,6 +1346,7 @@
0E3E3E64241FB73500823D66 /* ANCSRNativeAdResponse.m in Sources */,
0ED85345208A94F200A5FFA0 /* ANGDPRSettings.m in Sources */,
8A9AEDF61A1BF99D00C58BDA /* ANGlobal.m in Sources */,
60165D262464823E00E8E07C /* ANHTTPNetworkSession.m in Sources */,
609733061E42EAFF0061EC0A /* ANInstreamVideoAd.m in Sources */,
8A9AEDF71A1BF99D00C58BDA /* ANInterstitialAd.m in Sources */,
8A9AEDF81A1BF99D00C58BDA /* ANInterstitialAdViewController.m in Sources */,
Expand Down Expand Up @@ -1406,6 +1425,7 @@
0E02F07024336D570073A226 /* ANCSRNativeAdResponse.m in Sources */,
F5731B6C228C8E430012B134 /* ANGDPRSettings.m in Sources */,
F5731B71228C8FD20012B134 /* ANGlobal.m in Sources */,
60165D272464823E00E8E07C /* ANHTTPNetworkSession.m in Sources */,
F5731B73228C900B0012B134 /* ANLocation.m in Sources */,
F5731B77228C902D0012B134 /* ANLogging.m in Sources */,
F5731B76228C902A0012B134 /* ANLogManager.m in Sources */,
Expand Down Expand Up @@ -1493,7 +1513,7 @@
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
LIBRARY_SEARCH_PATHS = "";
MARKETING_VERSION = 7.3.2;
MARKETING_VERSION = 7.4;
MTL_ENABLE_DEBUG_INFO = YES;
PRODUCT_BUNDLE_IDENTIFIER = "corp.appnexus.$(PRODUCT_NAME:rfc1034identifier)";
PRODUCT_NAME = "$(TARGET_NAME)";
Expand Down Expand Up @@ -1529,7 +1549,7 @@
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
LIBRARY_SEARCH_PATHS = "";
MARKETING_VERSION = 7.3.2;
MARKETING_VERSION = 7.4;
MTL_ENABLE_DEBUG_INFO = NO;
PRODUCT_BUNDLE_IDENTIFIER = "corp.appnexus.$(PRODUCT_NAME:rfc1034identifier)";
PRODUCT_NAME = "$(TARGET_NAME)";
Expand Down Expand Up @@ -1681,7 +1701,7 @@
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
LIBRARY_SEARCH_PATHS = "";
MARKETING_VERSION = 7.3.2;
MARKETING_VERSION = 7.4;
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
MTL_FAST_MATH = YES;
PRODUCT_BUNDLE_IDENTIFIER = com.appnexus.AppNexusNativeSDK;
Expand Down Expand Up @@ -1726,7 +1746,7 @@
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
LIBRARY_SEARCH_PATHS = "";
MARKETING_VERSION = 7.3.2;
MARKETING_VERSION = 7.4;
MTL_ENABLE_DEBUG_INFO = NO;
MTL_FAST_MATH = YES;
PRODUCT_BUNDLE_IDENTIFIER = com.appnexus.AppNexusNativeSDK;
Expand Down
2 changes: 1 addition & 1 deletion sdk/sourcefiles/ANAdConstants.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ typedef NS_ENUM(NSUInteger, ANClickThroughAction) {
* */
typedef NS_ENUM(NSUInteger, ANVideoOrientation) {
ANUnknown,
ANPortraint,
ANPortrait,
ANLandscape,
ANSquare
};
9 changes: 5 additions & 4 deletions sdk/sourcefiles/ANAdProtocol.h
Original file line number Diff line number Diff line change
Expand Up @@ -257,20 +257,20 @@
*/
- (void)removeAllOpenMeasurementFriendlyObstructions;



@end



@protocol ANNativeAdRequestProtocol <ANAdProtocolFoundation>
//EMPTY
//EMPTY
@end

@protocol ANNativeAdResponseProtocol <ANAdProtocolBrowser>
//EMPTY
//EMPTY
@end



@protocol ANVideoAdProtocol <ANAdProtocol, ANAdProtocolVideo>
/**
* Get the Orientation of the Video rendered using the BannerAdView
Expand Down Expand Up @@ -300,6 +300,7 @@
ad:didReceivNativeAd: used to receive ANNativeAdReponse when that is returned from an ANBannerAdView request.
*/
- (void)adDidReceiveAd:(nonnull id)ad;
- (void)lazyAdDidReceiveAd:(nonnull id)ad;

- (void)ad:(nonnull id)loadInstance didReceiveNativeAd:(nonnull id)responseInstance;

Expand Down
22 changes: 20 additions & 2 deletions sdk/sourcefiles/ANBannerAdView.h
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,7 @@ typedef NS_ENUM(NSUInteger, ANBannerViewAdAlignment) {
*/
@property (nonatomic, readwrite, assign) BOOL shouldResizeAdToFitContainer;


/**
Set whether impression should be counted when the creative is loaded.
This feature is disabled by default.
Expand All @@ -238,21 +239,36 @@ typedef NS_ENUM(NSUInteger, ANBannerViewAdAlignment) {
@property (nonatomic, readwrite) BOOL shouldAllowNativeDemand;


/**
* Sets whether or not banner Ads(AppNexus Media Type:1) can serve on this Ad object.
* If shouldAllowBannerDemand is not set, the default is true.
*/
@property (nonatomic, readwrite) BOOL shouldAllowBannerDemand;



/**
* If enableNativeRendering is not set, the default is false.
* Rendering NativeAd to behave as BannerAd
*/
@property (nonatomic, readwrite) BOOL enableNativeRendering;


/**
* nativeAdRendererId : Native Assembly renderer_id that is associated with the placement.
* If rendererId is not set, the default is zero (0).
* A value of zero indicates that renderer_id will not be sent in the UT Request.
*/
*/
@property (nonatomic, readonly) NSInteger nativeAdRendererId DEPRECATED_MSG_ATTRIBUTE("nativeAdRendererId is deprecated.");


/**
* If enableLazyLoad is not set, the default is NO.
* Generate AdUnit without loading webview automatically.
* Host app must complete load with [self loadLazyAd].
*/
@property (nonatomic, readwrite) BOOL enableLazyLoad;



/**
* Sets whether or not Native Ads(AppNexus Media Type:12) can serve on this Ad object with nativeRendererId.
Expand Down Expand Up @@ -305,6 +321,8 @@ typedef NS_ENUM(NSUInteger, ANBannerViewAdAlignment) {
*/
- (void) loadAd;

- (BOOL) loadLazyAd;


@end

Expand Down
Loading

0 comments on commit c52bc92

Please sign in to comment.