MPStreamAdPlacerDelegate /5.7.0

@protocol MPStreamAdPlacerDelegate

Implement this class to be notified of native ads’ life cycles in Adplace.

Public Methods

-/didLoadAdAtIndexPath: /+5.7.0

  • Description: Optional delegate method. Notifies when an ad at indexpath is successfully loaded.

  • Declaration:

    - (void)adPlacer:(MPStreamAdPlacer *)adPlacer didLoadAdAtIndexPath:(NSIndexPath *)indexPath
    
  • Parameters:

    • indexPath: The index path of the cell.

-/didRemoveAdsAtIndexPaths: /+5.7.0

  • Description: Optional delegate method. Notifies when ads at indexpath have been removed.

  • Declaration:

    - (void)adPlacer:(MPStreamAdPlacer *)adPlacer didRemoveAdsAtIndexPaths:(NSArray *)indexPaths
    
  • Parameters:

    • indexPaths: An array of index path objects each identifying the location of a content item.

-/nativeAdWillPresentModalForStreamAdPlacer: /+5.7.0

  • Description: This method is called when a native ad, placed by the stream ad placer, will present a modal view controller.

  • Declaration:

    - (void)nativeAdWillPresentModalForStreamAdPlacer:(MPStreamAdPlacer *)adPlacer
    
  • Parameters:

    • adPlacer: An ad placer that can display ads in a stream.

-/nativeAdDidDismissModalForStreamAdPlacer: /+5.7.0

  • Description: This method is called when a native ad, placed by the stream ad placer, did dismiss its modal view controller.

  • Declaration:

    - (void)nativeAdDidDismissModalForStreamAdPlacer:(MPStreamAdPlacer *)adPlacer
    
  • Parameters:

    • adPlacer: An ad placer that can display ads in a stream.

-/nativeAdWillLeaveApplicationFromStreamAdPlacer: /+5.7.0

  • Description: This method is called when a native ad, placed by the stream ad placer, will cause the app to background due to user interaction with the ad.

  • Declaration:

    - (void)nativeAdWillLeaveApplicationFromStreamAdPlacer:(MPStreamAdPlacer *)adPlacer
    
  • Parameters:

    • adPlacer: An ad placer that can display ads in a stream.

Last updated May 04, 2020

TWITTER, MOPUB, and the Bird logo are trademarks of Twitter, Inc. or its affiliates. All third party logos and trademarks included are the property of their respective owners.

© 2020 MoPub (a division of Twitter, Inc.)