Permalink
Browse files

first import

  • Loading branch information...
marcosiino committed Feb 9, 2012
0 parents commit bc1fa7dbd9697090c3bbc66cf8f9b240b2ab799e
Showing with 15,735 additions and 0 deletions.
  1. +34 −0 AdMAL/Ad Mediation Abstraction Layer/AdCustomNetworkFactory.h
  2. +79 −0 AdMAL/Ad Mediation Abstraction Layer/AdCustomNetworkFactory.m
  3. +31 −0 AdMAL/Ad Mediation Abstraction Layer/AdGlobals.h
  4. +85 −0 AdMAL/Ad Mediation Abstraction Layer/AdMediationAL.h
  5. +414 −0 AdMAL/Ad Mediation Abstraction Layer/AdMediationAL.m
  6. +43 −0 AdMAL/Ad Mediation Abstraction Layer/AdMediationALManager.h
  7. +146 −0 AdMAL/Ad Mediation Abstraction Layer/AdMediationALManager.m
  8. +37 −0 AdMAL/Ad Mediation Abstraction Layer/AdViewController.h
  9. +59 −0 AdMAL/Ad Mediation Abstraction Layer/AdViewController.m
  10. +28 −0 AdMAL/Ad Mediation Abstraction Layer/custom network adapters/AdAppCircleNetwork.h
  11. +152 −0 AdMAL/Ad Mediation Abstraction Layer/custom network adapters/AdAppCircleNetwork.m
  12. +40 −0 AdMAL/Ad Mediation Abstraction Layer/custom network adapters/AdBMobileNetwork.h
  13. +162 −0 AdMAL/Ad Mediation Abstraction Layer/custom network adapters/AdBMobileNetwork.m
  14. +52 −0 AdMAL/Ad Mediation Abstraction Layer/custom network adapters/AdCustomNetwork.h
  15. +57 −0 AdMAL/Ad Mediation Abstraction Layer/custom network adapters/AdCustomNetwork.m
  16. +28 −0 AdMAL/Ad Mediation Abstraction Layer/custom network adapters/AdMoPubNetwork.h
  17. +138 −0 AdMAL/Ad Mediation Abstraction Layer/custom network adapters/AdMoPubNetwork.m
  18. +32 −0 AdMAL/Ad Mediation Abstraction Layer/custom network adapters/AdMobClixNetwork.h
  19. +115 −0 AdMAL/Ad Mediation Abstraction Layer/custom network adapters/AdMobClixNetwork.m
  20. +31 −0 AdMAL/Ad Mediation Abstraction Layer/custom network adapters/AdMobFoxNetwork.h
  21. +116 −0 AdMAL/Ad Mediation Abstraction Layer/custom network adapters/AdMobFoxNetwork.m
  22. +344 −0 AdMAL/Ad SDKs/AdWhirl/AdWhirlDelegateProtocol.h
  23. +231 −0 AdMAL/Ad SDKs/AdWhirl/AdWhirlView.h
  24. +128 −0 AdMAL/Ad SDKs/AdWhirl/adapters/AdWhirlAdNetworkAdapter.h
  25. +36 −0 AdMAL/Ad SDKs/AdWhirl/adapters/AdWhirlAdapterBrightRoll.h
  26. +137 −0 AdMAL/Ad SDKs/AdWhirl/adapters/AdWhirlAdapterBrightRoll.m
  27. +32 −0 AdMAL/Ad SDKs/AdWhirl/adapters/AdWhirlAdapterGoogleAdMobAds.h
  28. +199 −0 AdMAL/Ad SDKs/AdWhirl/adapters/AdWhirlAdapterGoogleAdMobAds.m
  29. +42 −0 AdMAL/Ad SDKs/AdWhirl/adapters/AdWhirlAdapterGoogleAdSense.h
  30. +189 −0 AdMAL/Ad SDKs/AdWhirl/adapters/AdWhirlAdapterGoogleAdSense.m
  31. +49 −0 AdMAL/Ad SDKs/AdWhirl/adapters/AdWhirlAdapterGreystripe.h
  32. +191 −0 AdMAL/Ad SDKs/AdWhirl/adapters/AdWhirlAdapterGreystripe.m
  33. +31 −0 AdMAL/Ad SDKs/AdWhirl/adapters/AdWhirlAdapterIAd.h
  34. +135 −0 AdMAL/Ad SDKs/AdWhirl/adapters/AdWhirlAdapterIAd.m
  35. +37 −0 AdMAL/Ad SDKs/AdWhirl/adapters/AdWhirlAdapterInMobi.h
  36. +173 −0 AdMAL/Ad SDKs/AdWhirl/adapters/AdWhirlAdapterInMobi.m
  37. +30 −0 AdMAL/Ad SDKs/AdWhirl/adapters/AdWhirlAdapterJumpTap.h
  38. +238 −0 AdMAL/Ad SDKs/AdWhirl/adapters/AdWhirlAdapterJumpTap.m
  39. +38 −0 AdMAL/Ad SDKs/AdWhirl/adapters/AdWhirlAdapterMdotM.h
  40. +423 −0 AdMAL/Ad SDKs/AdWhirl/adapters/AdWhirlAdapterMdotM.m
  41. +30 −0 AdMAL/Ad SDKs/AdWhirl/adapters/AdWhirlAdapterMillennial.h
  42. +227 −0 AdMAL/Ad SDKs/AdWhirl/adapters/AdWhirlAdapterMillennial.m
  43. +45 −0 AdMAL/Ad SDKs/AdWhirl/adapters/AdWhirlAdapterNexage.h
  44. +219 −0 AdMAL/Ad SDKs/AdWhirl/adapters/AdWhirlAdapterNexage.m
  45. +30 −0 AdMAL/Ad SDKs/AdWhirl/adapters/AdWhirlAdapterOneRiot.h
  46. +75 −0 AdMAL/Ad SDKs/AdWhirl/adapters/AdWhirlAdapterOneRiot.m
  47. +30 −0 AdMAL/Ad SDKs/AdWhirl/adapters/AdWhirlAdapterQuattro.h
  48. +222 −0 AdMAL/Ad SDKs/AdWhirl/adapters/AdWhirlAdapterQuattro.m
  49. +29 −0 AdMAL/Ad SDKs/AdWhirl/adapters/AdWhirlAdapterVideoEgg.h
  50. +117 −0 AdMAL/Ad SDKs/AdWhirl/adapters/AdWhirlAdapterVideoEgg.m
  51. +32 −0 AdMAL/Ad SDKs/AdWhirl/adapters/AdWhirlAdapterZestADZ.h
  52. +101 −0 AdMAL/Ad SDKs/AdWhirl/adapters/AdWhirlAdapterZestADZ.m
  53. +46 −0 AdMAL/Ad SDKs/AdWhirl/internal/ARRollerView.m
  54. +29 −0 AdMAL/Ad SDKs/AdWhirl/internal/AWNetworkReachabilityDelegate.h
  55. +53 −0 AdMAL/Ad SDKs/AdWhirl/internal/AWNetworkReachabilityWrapper.h
  56. +172 −0 AdMAL/Ad SDKs/AdWhirl/internal/AWNetworkReachabilityWrapper.m
  57. +46 −0 AdMAL/Ad SDKs/AdWhirl/internal/AdWhirlAdNetworkAdapter+Helpers.h
  58. +93 −0 AdMAL/Ad SDKs/AdWhirl/internal/AdWhirlAdNetworkAdapter+Helpers.m
  59. +84 −0 AdMAL/Ad SDKs/AdWhirl/internal/AdWhirlAdNetworkAdapter.m
  60. +57 −0 AdMAL/Ad SDKs/AdWhirl/internal/AdWhirlAdNetworkConfig.h
  61. +169 −0 AdMAL/Ad SDKs/AdWhirl/internal/AdWhirlAdNetworkConfig.m
  62. +34 −0 AdMAL/Ad SDKs/AdWhirl/internal/AdWhirlAdNetworkRegistry.h
  63. +64 −0 AdMAL/Ad SDKs/AdWhirl/internal/AdWhirlAdNetworkRegistry.m
  64. +40 −0 AdMAL/Ad SDKs/AdWhirl/internal/AdWhirlAdapterCustom.h
  65. +423 −0 AdMAL/Ad SDKs/AdWhirl/internal/AdWhirlAdapterCustom.m
  66. +29 −0 AdMAL/Ad SDKs/AdWhirl/internal/AdWhirlAdapterEvent.h
  67. +69 −0 AdMAL/Ad SDKs/AdWhirl/internal/AdWhirlAdapterEvent.m
  68. +29 −0 AdMAL/Ad SDKs/AdWhirl/internal/AdWhirlAdapterGeneric.h
  69. +56 −0 AdMAL/Ad SDKs/AdWhirl/internal/AdWhirlAdapterGeneric.m
  70. +31 −0 AdMAL/Ad SDKs/AdWhirl/internal/AdWhirlClassWrapper.h
  71. +35 −0 AdMAL/Ad SDKs/AdWhirl/internal/AdWhirlClassWrapper.m
  72. +103 −0 AdMAL/Ad SDKs/AdWhirl/internal/AdWhirlConfig.h
  73. +562 −0 AdMAL/Ad SDKs/AdWhirl/internal/AdWhirlConfig.m
  74. +67 −0 AdMAL/Ad SDKs/AdWhirl/internal/AdWhirlConfigStore.h
  75. +291 −0 AdMAL/Ad SDKs/AdWhirl/internal/AdWhirlConfigStore.m
  76. +101 −0 AdMAL/Ad SDKs/AdWhirl/internal/AdWhirlCustomAdView.h
  77. +168 −0 AdMAL/Ad SDKs/AdWhirl/internal/AdWhirlCustomAdView.m
  78. +55 −0 AdMAL/Ad SDKs/AdWhirl/internal/AdWhirlError.h
  79. +56 −0 AdMAL/Ad SDKs/AdWhirl/internal/AdWhirlError.m
  80. +61 −0 AdMAL/Ad SDKs/AdWhirl/internal/AdWhirlLog.h
  81. +67 −0 AdMAL/Ad SDKs/AdWhirl/internal/AdWhirlLog.m
  82. +60 −0 AdMAL/Ad SDKs/AdWhirl/internal/AdWhirlView+.h
  83. +1,015 −0 AdMAL/Ad SDKs/AdWhirl/internal/AdWhirlView.m
  84. +764 −0 AdMAL/Ad SDKs/AdWhirl/internal/AdWhirlWebBrowser.xib
  85. +75 −0 AdMAL/Ad SDKs/AdWhirl/internal/AdWhirlWebBrowserController.h
  86. +266 −0 AdMAL/Ad SDKs/AdWhirl/internal/AdWhirlWebBrowserController.m
  87. +31 −0 AdMAL/Ad SDKs/AdWhirl/internal/UIColor+AdWhirlConfig.h
  88. +73 −0 AdMAL/Ad SDKs/AdWhirl/internal/UIColor+AdWhirlConfig.m
  89. +31 −0 AdMAL/Ad SDKs/AdWhirl/legacy/ARRollerProtocol.h
  90. +30 −0 AdMAL/Ad SDKs/AdWhirl/legacy/ARRollerView.h
  91. +68 −0 AdMAL/TouchJSON/CDataScanner.h
  92. +270 −0 AdMAL/TouchJSON/CDataScanner.m
  93. +37 −0 AdMAL/TouchJSON/Extensions/CDataScanner_Extensions.h
  94. +80 −0 AdMAL/TouchJSON/Extensions/CDataScanner_Extensions.m
  95. +36 −0 AdMAL/TouchJSON/Extensions/NSCharacterSet_Extensions.h
  96. +48 −0 AdMAL/TouchJSON/Extensions/NSCharacterSet_Extensions.m
  97. +36 −0 AdMAL/TouchJSON/Extensions/NSDictionary_JSONExtensions.h
  98. +41 −0 AdMAL/TouchJSON/Extensions/NSDictionary_JSONExtensions.m
  99. +44 −0 AdMAL/TouchJSON/Extensions/NSScanner_Extensions.h
  100. +118 −0 AdMAL/TouchJSON/Extensions/NSScanner_Extensions.m
  101. +46 −0 AdMAL/TouchJSON/JSON/CJSONDataSerializer.h
  102. +225 −0 AdMAL/TouchJSON/JSON/CJSONDataSerializer.m
  103. +45 −0 AdMAL/TouchJSON/JSON/CJSONDeserializer.h
  104. +95 −0 AdMAL/TouchJSON/JSON/CJSONDeserializer.m
  105. +44 −0 AdMAL/TouchJSON/JSON/CJSONScanner.h
  106. +539 −0 AdMAL/TouchJSON/JSON/CJSONScanner.m
  107. +47 −0 AdMAL/TouchJSON/JSON/CJSONSerializer.h
  108. +75 −0 AdMAL/TouchJSON/JSON/CJSONSerializer.m
  109. +40 −0 AdMAL/TouchJSON/JSON/CSerializedJSONData.h
  110. +54 −0 AdMAL/TouchJSON/JSON/CSerializedJSONData.m
  111. +4 −0 CHANGELOG
  112. +13 −0 LICENSE-AdMAL
  113. +12 −0 LICENSE-AdWhirl
  114. +11 −0 LICENSE-TouchJSON
  115. +171 −0 README
  116. +761 −0 sample/AdMALSample.xcodeproj/project.pbxproj
  117. +7 −0 sample/AdMALSample.xcodeproj/project.xcworkspace/contents.xcworkspacedata
  118. BIN ...ample.xcodeproj/project.xcworkspace/xcuserdata/ops8086.xcuserdatad/UserInterfaceState.xcuserstate
  119. +21 −0 sample/AdMALSample.xcodeproj/xcuserdata/ops8086.xcuserdatad/xcdebugger/Breakpoints.xcbkptlist
  120. +84 −0 sample/AdMALSample.xcodeproj/xcuserdata/ops8086.xcuserdatad/xcschemes/AdMALSample.xcscheme
  121. +22 −0 sample/AdMALSample.xcodeproj/xcuserdata/ops8086.xcuserdatad/xcschemes/xcschememanagement.plist
  122. +47 −0 sample/AdMALSample/AdMALSample-Info.plist
  123. +14 −0 sample/AdMALSample/AdMALSample-Prefix.pch
  124. +40 −0 sample/AdMALSample/AppDelegate.h
  125. +139 −0 sample/AdMALSample/AppDelegate.m
  126. +28 −0 sample/AdMALSample/FirstViewController.h
  127. +88 −0 sample/AdMALSample/FirstViewController.m
  128. +28 −0 sample/AdMALSample/SecondViewController.h
  129. +93 −0 sample/AdMALSample/SecondViewController.m
  130. +219 −0 sample/AdMALSample/en.lproj/FirstViewController_iPad.xib
  131. +210 −0 sample/AdMALSample/en.lproj/FirstViewController_iPhone.xib
  132. +2 −0 sample/AdMALSample/en.lproj/InfoPlist.strings
  133. +277 −0 sample/AdMALSample/en.lproj/SecondViewController_iPad.xib
  134. +272 −0 sample/AdMALSample/en.lproj/SecondViewController_iPhone.xib
  135. BIN sample/AdMALSample/first.png
  136. BIN sample/AdMALSample/first@2x.png
  137. +30 −0 sample/AdMALSample/main.m
  138. BIN sample/AdMALSample/second.png
  139. BIN sample/AdMALSample/second@2x.png
@@ -0,0 +1,34 @@
+//
+// AdCustomNetworkFactory.h
+// Ad Mediation Abstraction Layer
+//
+
+/* Copyright 2012 Marco Siino, DooLabs (http://www.marcosiino.it - http://www.doolabs.com)
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+*/
+
+#import <Foundation/Foundation.h>
+#import "AdGlobals.h"
+
+@interface AdCustomNetworkFactory : NSObject {
+
+}
+
+//create an instance of an AdCustomNetwork subclass. Specify the network name in the name parameter using the NETWORK_* defines. The returned instance has a retain count of 1 so it must be released
+
++(id)createCustomNetwork:(NSString*)name;
+
+//get the Class of the specified custom network. Useful to call the class methods of a certain network class. Use the NETWORK_* defines to pass the network name.
++(Class)getCustomNetworkClass:(NSString*)name;
+@end
@@ -0,0 +1,79 @@
+//
+// AdCustomNetworkFactory.m
+// Ad Mediation Abstraction Layer
+//
+/* Copyright 2012 Marco Siino, DooLabs (http://www.marcosiino.it - http://www.doolabs.com)
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ */
+
+#import "AdCustomNetworkFactory.h"
+
+@implementation AdCustomNetworkFactory
+
++(id)createCustomNetwork:(NSString *)name {
+ if([name isEqualToString:NETWORK_MOBCLIX]) {
+ Class networkClass = NSClassFromString(@"AdMobClixNetwork");
+ if(networkClass)
+ return [[[networkClass alloc] init] autorelease];
+ }
+ else if([name isEqualToString:NETWORK_BMOBILE]) {
+ Class networkClass = NSClassFromString(@"AdBMobileNetwork");
+ if(networkClass)
+ return [[[networkClass alloc] init] autorelease];
+ }
+ else if([name isEqualToString:NETWORK_MOPUB]) {
+ Class networkClass = NSClassFromString(@"AdMoPubNetwork");
+ if(networkClass)
+ return [[[networkClass alloc] init] autorelease];
+ }
+ else if([name isEqualToString:NETWORK_MOBFOX]) {
+ Class networkClass = NSClassFromString(@"AdMobFoxNetwork");
+ if(networkClass)
+ return [[[networkClass alloc] init] autorelease];
+ }
+ else if([name isEqualToString:NETWORK_APPCIRCLE]) {
+ Class networkClass = NSClassFromString(@"AdAppCircleNetwork");
+ if(networkClass)
+ return [[[networkClass alloc] init] autorelease];
+ }
+
+ return nil;
+}
+
++(Class)getCustomNetworkClass:(NSString*)name {
+ if([name isEqualToString:NETWORK_MOBCLIX]) {
+ Class networkClass = NSClassFromString(@"AdMobClixNetwork");
+ return networkClass;
+ }
+ else if([name isEqualToString:NETWORK_BMOBILE]) {
+ Class networkClass = NSClassFromString(@"AdBMobileNetwork");
+ return networkClass;
+ }
+ else if([name isEqualToString:NETWORK_MOPUB]) {
+ Class networkClass = NSClassFromString(@"AdMoPubNetwork");
+ return networkClass;
+ }
+ else if([name isEqualToString:NETWORK_MOBFOX]) {
+ Class networkClass = NSClassFromString(@"AdMobFoxNetwork");
+ return networkClass;
+ }
+ else if([name isEqualToString:NETWORK_APPCIRCLE]) {
+ Class networkClass = NSClassFromString(@"AdAppCircleNetwork");
+ return networkClass;
+ }
+
+ return nil;
+}
+
+@end
@@ -0,0 +1,31 @@
+//
+// AdGlobals.h
+// Ad Mediation Abstraction Layer
+//
+/* Copyright 2012 Marco Siino, DooLabs (http://www.marcosiino.it - http://www.doolabs.com)
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ */
+
+//SETTINGS KEY
+#define S_APPKEY @"appKey"
+#define S_GLOBALKEY @"globalKey"
+#define S_TESTING @"testing"
+
+//NETWORKS
+#define NETWORK_MOBCLIX @"mobclix"
+#define NETWORK_BMOBILE @"bmobile"
+#define NETWORK_MOPUB @"mopub"
+#define NETWORK_MOBFOX @"mobfox"
+#define NETWORK_APPCIRCLE @"appcircle"
+#define NETWORK_SMAATO @"smaato"
@@ -0,0 +1,85 @@
+//
+// AdMediationAL.h
+// Ad Mediation Abstraction Layer
+//
+/* Copyright 2012 Marco Siino, DooLabs (http://www.marcosiino.it - http://www.doolabs.com)
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ */
+
+#import <Foundation/Foundation.h>
+#import "AdWhirlView.h"
+#import "AdCustomNetwork.h"
+
+//x alignment
+#define ALIGN_LEFT -10000
+#define ALIGN_CENTER -15000
+#define ALIGN_RIGHT -20000
+
+//y alignment
+#define ALIGN_TOP -10000
+#define ALIGN_BOTTOM -20000
+#define ALIGN_RANDOM -30000
+
+//ad standard positions
+#define POSITION_TOP CGPointMake(ALIGN_CENTER, ALIGN_TOP)
+#define POSITION_BOTTOM CGPointMake(ALIGN_CENTER, ALIGN_BOTTOM)
+#define POSITION_RANDOM CGPointMake(ALIGN_CENTER, ALIGN_RANDOM)
+
+@protocol AdMediationALDelegate
+
+-(void)adMediationALDidReceiveAdWithRect:(CGRect)adRect;
+-(void)adMediationALDidFailToReceiveAd;
+
+@end
+
+@interface AdMediationAL : NSObject<AdWhirlDelegate, AdCustomNetworkDelegate> {
+ id delegate;
+ AdWhirlView *adView;
+ UIViewController *parentViewController;
+ UIView *parentView;
+ CGPoint adPosition;
+ UIView *uiMainContainerView; //the view that contains the current view UI. If set is resized when the ad is shown and resized back when the ad is hide (works only with POSITION_TOP and POSITION_BOTTOM ad positions
+
+ NSMutableDictionary *customAdViews; //a dictionary that contains the custom networks adviews. key = name of the network (i.e. "mobclix". Use the #defines that starts with NETWORK_ in AdMediationLayerALManager.h). Each time a new custom event trigger the AdMediationAL tries to load the related network adview and add it to the dictionary (if it is already added it uses this adview instead of allocating a new one).
+
+ NSString *lastCustomNetwork;
+
+ bool yRandomPositioning; //if true assign a random Y position between TOP and BOTTOM to the ad banner y (this is internally set to true when the POSITION_RANDOM is passed to initAdWithDelegate:andParentViewController:andParentView:andPosition:...
+}
+
+@property (nonatomic, assign) UIView *uiMainContainerView;
+
+-(id)initAdWithDelegate:(id<AdMediationALDelegate>)delegate andParentViewController:(UIViewController*)viewController andParentView:(UIView*)view andPosition:(CGPoint)pos;
+
+//Use this to also specify a containerView to be resized when an ad is received or when ad disappear (failed to receive)
+-(id)initAdWithDelegate:(id<AdMediationALDelegate>)delegate andParentViewController:(UIViewController*)viewController andParentView:(UIView*)view andPosition:(CGPoint)pos andAutoresizeContainerView:(UIView*)mainContainerView;
+
+-(id)delegate;
+-(void)setDelegate:(id<AdMediationALDelegate>)del;
+-(void)didRotateInterfaceOrientation;
+
+//call this method inside adMediationALDidReceiveAdWithRect to autoresize a UIView* viewContainer (a view that contains all the current interface controls) based on the current ad banner. This works only if you passed POSITION_TOP or POSITION_BOTTOM in the andPosition: paramers of the init method. If you used POSITION_TOP the viewContainer y position will be offset by the height of the current ad banner and the height of the viewContainer will be resized to fill the remaining space of the parentView. If you used POSITION_BOTTOM the viewContainer y position will be set to 0 and it's height will be set to the height of parentView bounds minus the height of the current ad banner.
+-(void)autoResizeViewContainer:(UIView*)viewContainer;
+
+//Adjust the display of the ad (call this on viewDidAppear)
+-(void)resetDisplay;
+
+-(void)pauseAdRefresh;
+
+-(void)resumeAdRefresh;
+
+-(CGSize)getAdSize;
+-(CGPoint)getAdPosition;
+
+@end
Oops, something went wrong.

0 comments on commit bc1fa7d

Please sign in to comment.