Ad behavior when changing device orientation

  1. General guidelines for changing ad sizes
  2. Android
  3. iOS

General guidelines for changing ad sizes

  1. The size of an ad in the Banner format is set when creating an ad request and matches the size of banners displayed in the ad.
  2. The size of an ad in the Interstitial and Rewarded formats is determined automatically depending on the size of the screen where the ad will be shown.
  3. The size of ads in the Native format is user-defined.

Android

Display ads
Ad behavior when the screen is rotated:
Banner
The publisher is responsible for the rotation activity. The publisher can use one of the following options:
  • Save the previously received ad and display it with new or old sizes.
  • Repeat the ad request after the screen is rotated.
Interstitial
The parameter responsible for the rotation activity in the SDK is YMAd-RotationEnabled. The rotation activity is disabled (YMAd-RotationEnabled=false) for this type of ad. After the screen is rotated, the ad remains in its original position.
Videos in display advertising
Ad behavior when the screen is rotated:
Banner
The publisher is responsible for the rotation activity. The publisher can use one of the following options:
  • Save the previously received ad and display it with new or old sizes.
  • Repeat the ad request after the screen is rotated.
Interstitial
The parameter responsible for the rotation activity in the SDK is YMAd-RotationEnabled. The rotation activity is enabled (YMAd-RotationEnabled=true) for this type of ad. After the screen is rotated, the ad changes its position.
Rewarded
The SDK is responsible for the rotation activity. After the screen is rotated, the SDK changes the ad size based on the view.

iOS

Display ads
Ad behavior when the screen is rotated:
Banner
The SDK is responsible for ad rotation. After the screen is rotated, the SDK reloads the ad.
Interstitial
The parameter responsible for ad rotation in the SDK is YMAd-RotationEnabled. Ad rotation is disabled (YMAd-RotationEnabled=false) for this type of ad. After the screen is rotated, the ad is closed.
Videos in display advertising
Ad behavior when the screen is rotated:
Banner
The SDK is responsible for ad rotation. After the screen is rotated, the SDK reloads the ad.
Interstitial
The parameter responsible for ad rotation in the SDK is YMAd-RotationEnabled. Ad rotation is enabled (YMAd-RotationEnabled=true) for this type of ad. After the screen is rotated, the SDK changes the ad size based on the screen size.
Rewarded
The SDK is responsible for ad rotation. After the screen is rotated, the SDK changes the ad size based on the screen size.