Skip to main content

Native Rich Ad

info

This is a Settings guide for Richmedia advertising products provided by NAVER (NDP).

이미지

Add dependency

In order to use Rich Media ads, a Podfile dependency must be added.

GFPSDK Core module as well as NDA, NDAVideo, and NDARich modules are required.

    
#static library

pod 'GFPSDK' # SDK Core
pod 'GFPSDK/MediationNDA' # Naver Banner/Native Ads
pod 'GFPSDK/MediationNDAVideo' # Naver Video Ad (since 4.3.0)
pod 'GFPSDK/MediationNDARich' # Naver Premium Ad (since 4.3.0)

#dynamic library

pod 'GFPSDK-Dynamic' # SDK Core
pod 'GFPSDK-Dynamic/MediationNDA' # Naver Banner/Native Ads
pod 'GFPSDK-Dynamic/MediationNDAVideo' # Naver Video Ad (since 4.3.0)
pod 'GFPSDK-Dynamic/MediationNDARich' # Naver Premium Ad (since 4.3.0)


Loader settings

Rich media products are provided in the form of NativeSimple (aka. NS). Please refer to the NS guide to set up the ad loader.

Additional implementation of GFPNativeSimpleAdDelegate

Unlike the existing NS, Rich Media products have a vertical expansion feature. Therefore, when there is an expansion/contraction, the ad view size modification event will be sent to the service.

The service can be applied by adjusting the ad view with the size value received from the corresponding delegate.


- (void)nativeSimpleAd:(GFPNativeSimpleAd *)nativeSimpleAd didChangeRichAdSizeWith:(CGSize)size {
...
[self.nativeSimpleAdView updateSize:size];
[self.nativeSimpleAdView.mediaView updateSize:size];
...
}

Basic parallel setting

info

The default height for Rich Media is 140.

Rich Media products are provided with Rich Media products and general image types combined.

In situations where the service cannot flexibly adjust the vertical advertising section according to the image and Rich Media product,

ex) In the event that a fixed size must be maintained regardless of image type/rich type when the ad starts

    GFPNativeSimpleAdRenderingSetting *simpleSetting = [[GFPNativeSimpleAdRenderingSetting alloc] init];
simpleSetting.preferredAdChoicesViewPosition = GFPAdChoicesViewPositionTopRightCorner;

simpleSetting.isImageSizePreferred = YES;

GFPAdNativeSimpleOptions *nativeSimpleOptions = [[GFPAdNativeSimpleOptions alloc] init];
nativeSimpleOptions.simpleAdRenderingSetting = simpleSetting;

...

[self.adLoader setNativeSimpleDelegate:self nativeSimpleOptions:nativeSimpleOptions];

If the flexible response is available, it can be applied by responding with the existing method of the GFPNativeSimpleAdDelegate.

- (void)nativeSimpleAd:(GFPNativeSimpleAd *)nativeSimpleAd didChangeMediaViewSizeWith:(CGSize)size;