Skip to content

Commit

Permalink
upgrade ad sdk,upgrade api call
Browse files Browse the repository at this point in the history
  • Loading branch information
keymobdev committed Jan 23, 2016
1 parent 22b126c commit 49045f4
Show file tree
Hide file tree
Showing 205 changed files with 7,364 additions and 2,706 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -132,7 +132,7 @@ h. handler ad event
```

### 3 processing for ios
open project with xcode ,right click project choose menu item "add files to project" to add third-party lib in folder "iosadapters"<br/>
delete unsed platform from iosadapter and then copy iosadapters folder to xcode project folder,open project with xcode ,right click project choose menu item "add files to project" to add third-party lib in folder "iosadapters"<br/>
if you are using gdt,need add -lstdc++ to Other Linker Flags under tab "Build Setttings"<br/>
### 4 Optimized for android
In the android project There are three folders<br/>
Expand Down
File renamed without changes.
Binary file modified iosadapters/Adcolony/AdColony.framework/AdColony
Binary file not shown.
207 changes: 105 additions & 102 deletions iosadapters/Adcolony/AdColony.framework/Headers/AdColony.h

Large diffs are not rendered by default.

19 changes: 11 additions & 8 deletions iosadapters/Adcolony/AdColony.framework/Headers/AdColonyAdInfo.h
Expand Up @@ -10,17 +10,19 @@
/**
* Enum for in-app purchase (IAP) engagement types
*/
typedef enum {
ADCOLONY_IAP_ENGAGEMENT_NONE = 0, /**<IAPP was not enabled for the associated ad object. */
ADCOLONY_IAP_ENGAGEMENT_AUTOMATIC, /**<IAPP was enabled for the ad; however, there was no user engagement. */
ADCOLONY_IAP_ENGAGEMENT_END_CARD, /**<IAPP was enabled for the ad, and the user engaged via a dynamic end card (DEC). */
ADCOLONY_IAP_ENGAGEMENT_OVERLAY /**<IAPP was enabled for the ad, and the user engaged via an in-vdeo engagement (Overlay). */
} ADCOLONY_IAP_ENGAGEMENT;
typedef NS_ENUM(NSUInteger, ADCOLONY_IAP_ENGAGEMENT) {
ADCOLONY_IAP_ENGAGEMENT_NONE = 0, /** IAPP was not enabled for the associated ad object. */
ADCOLONY_IAP_ENGAGEMENT_AUTOMATIC, /** IAPP was enabled for the ad; however, there was no user engagement. */
ADCOLONY_IAP_ENGAGEMENT_END_CARD, /** IAPP was enabled for the ad, and the user engaged via a dynamic end card (DEC). */
ADCOLONY_IAP_ENGAGEMENT_OVERLAY /** IAPP was enabled for the ad, and the user engaged via an in-vdeo engagement (Overlay). */
};

NS_ASSUME_NONNULL_BEGIN

#pragma mark - AdColonyAdInfo interface

/**
* AdColonyAdInfo objects are passed to the `- onAdColonyAdFinishedWithInfo:` callback of AdColonyAdDelegates.
* AdColonyAdInfo objects are passed to the `[AdColonyAdDelegate onAdColonyAdFinishedWithInfo:]` callback of AdColonyAdDelegates.
* These objects can be queried for useful information about the ad such as the associated zone ID, whether or
* not the ad was shown, or any relevant In-App Purchase Promo (IAPP)-related information.
*/
Expand Down Expand Up @@ -63,5 +65,6 @@ typedef enum {
* @param iapEngagementType An `ADCOLONY_IAP_ENGAGEMENT` indicating the engagement mechanism.
*/
@property (nonatomic, readonly) ADCOLONY_IAP_ENGAGEMENT iapEngagementType;

@end

NS_ASSUME_NONNULL_END
Expand Up @@ -12,6 +12,8 @@
@protocol AdColonyNativeAdDelegate;
@class AdColonyAdInfo;

NS_ASSUME_NONNULL_BEGIN

#pragma mark - AdColonyNativeAdView

/**
Expand All @@ -31,7 +33,7 @@
* Setting this property is optional; in many cases the callbacks provided by the delegate are not required to create a good user experience.
* @param delegate The AdColonyNativeAdDelegate.
*/
@property (nonatomic, weak) id<AdColonyNativeAdDelegate> delegate;
@property (nonatomic, weak, nullable) id<AdColonyNativeAdDelegate> delegate;

/** @name Creative Content and User Interface */

Expand All @@ -43,11 +45,11 @@
@property (nonatomic, readonly) NSString* advertiserName;

/**
* The advertiser's icon for this ad. Typically 200x200 pixels for Retina display at up to 100x100 screen points.
* The advertiser's icon for this ad (may be `nil`). Typically 200x200 pixels for Retina display at up to 100x100 screen points.
* Display of this image is optional.
* @param advertiserIrcon The icon of this ad's advertiser.
*/
@property (nonatomic, readonly) UIImage* advertiserIcon;
@property (nonatomic, readonly, nullable) UIImage* advertiserIcon;

/**
* A short title for this ad. Approximately 25 characters.
Expand All @@ -64,11 +66,11 @@
@property (nonatomic, readonly) NSString* adDescription;

/**
* The engagement button for this ad (may be nil). This is automatically displayed beneath the video component.
* The engagement button for this ad (may be `nil`). This is automatically displayed beneath the video component.
* Use this property to access the UIButton and customize anything about it except its title text and tap action.
* @param engagementButton The engagement button that is already embedded within this ad.
*/
@property (nonatomic, readonly) UIButton* engagementButton;
@property (nonatomic, nullable) UIButton* engagementButton;

/**
* Returns the recommended height for the AdColonyNativeAdView if it will be displayed at the specified width.
Expand Down Expand Up @@ -112,7 +114,6 @@
* This method must be used to undo a previous corresponding call to `pause`.
*/
-(void)resume;

@end

#pragma mark - AdColonyNativeAdDelegate
Expand All @@ -122,6 +123,7 @@
*/
@protocol AdColonyNativeAdDelegate <NSObject>
@optional

/**
* Notifies your app that a native ad has begun displaying its video content in response to being displayed on screen.
* @param ad The affected native ad view.
Expand All @@ -145,10 +147,10 @@
-(void)onAdColonyNativeAdFinished:(AdColonyNativeAdView*)ad expanded:(BOOL)expanded;

/**
* Alternative for `- onAdColonyNativeAdFinished:expanded` that passes an AdColonyAdInfo object to the delegate. The AdColonyAdInfo object can be queried
* Alternative for `[AdColonyNativeAdDelegate onAdColonyNativeAdFinished:expanded]` that passes an AdColonyAdInfo object to the delegate. The AdColonyAdInfo object can be queried
* for information about the ad session: whether or not the ad was shown, the associated zone ID, whether or not the video was an In-App Purchase Promo (IAPP),
* the type of engagement that triggered an IAP, etc. If your application is showing IAPP advertisements, you will need to implement this callback
* instead of `- onAdColonyNativeAdFinished:expanded` so you can decide what action to take once the ad has completed.
* instead of `[AdColonyNativeAdDelegate onAdColonyNativeAdFinished:expanded]` so you can decide what action to take once the ad has completed.
* @param ad The affected native ad view.
* @param info An AdColonyAdInfo object containing information about the associated ad.
* @see AdColonyAdInfo
Expand All @@ -168,3 +170,5 @@
*/
-(void)onAdColonyNativeAdEngagementPressed:(AdColonyNativeAdView*)ad expanded:(BOOL)expanded;
@end

NS_ASSUME_NONNULL_END
Binary file not shown.

0 comments on commit 49045f4

Please sign in to comment.