AATKit Unity Integration
Release Notes
  • Start
    • Setup
    • Initialization
    • App Tracking Transparency
    • Google Mobile Ads SDK
    • Consent
      • Managed Consent
      • Vendor Consent
      • Simple Consent
  • Formats
    • Banner
    • Fullscreen (Interstitial)
    • Rewarded Video
  • Other
    • AATKitSettings Asset
    • AATKitPlaceholderManager
    • Closing the Application
    • Unity 2019.3.X Potential Issue
    • Reference
      • AATKitBinding
        • Properties
          • ScriptLogEnabled
        • Methods
          • Init
          • ReconfigureUsingConfiguration
          • SetDebugEnabled
          • SetDebugShakeEnabled
          • EnableCreativeHistory
          • GetVersion
          • GetDebugInfo
          • IsNetworkEnabled
          • SetNetworkEnabled
          • ShowConsentDialogIfNeeded
          • ShowConsentDialogIfNeededOrRejected
          • EditConsent
          • ReloadConsent
          • IsConsentOptIn
          • SetUserTargeting
          • CreatePlacement
          • CreatePlacement
          • CreateAppOpenAdPlacement
          • StartPlacementAutoReload
          • StopPlacementAutoReload
          • ReloadPlacement
          • ReloadPlacementForced
          • HasAdForPlacement
          • SetImpressionAction
          • AddPlacementToView
          • RemovePlacementFromView
          • StartPlacementAutoReloadWithSeconds
          • SetPlacementAlignment
          • SetPlacementAlignmentWithOffsetInPixels
          • SetPlacementAlignmentWithOffset
          • SetPlacementPositionInPixels
          • SetPlacementPosition
          • SetPlacementContentGravity
          • ShowPlacement
          • SetReAddingPlacementOnResumeEnabled
          • IsFrequencyCapReachedForPlacement
          • MuteVideoAds
          • SetMultiSizeAlignment
          • SetMultiSizeAlignmentWithOffset
          • SetMultiSizePosition
          • AddAdNetworkForKeywordTargeting
          • RemoveAdNetworkForKeywordTargeting
          • SetIsChildDirected
          • SetTargetingInfo
          • SetTargetingInfo (for placement)
          • SetMultiContentTargetingUrls
          • SetContentTargetingUrl
          • SetContentTargetingUrl (for placement)
          • GetScale
          • GetNativeScale
          • SetCollapsibleBannerOptions
          • ConfigureDebugScreen
          • GetAdInfo
        • Delegates
          • OnHaveAd
          • OnHaveAdOnMultiSizeBanner
          • OnNoAd
          • OnPauseForAd
          • OnResumeAfterAd
          • OnUserEarnedIncentive
          • OnObtainedAdRules
          • OnManagedConsentNeedsUserInterface
          • OnManagedConsentCMPFinished
          • OnManagedConsentCMPFailedToLoad
          • OnManagedConsentCMPFailedToShow
      • Other
        • AATKitConfiguration
        • AATKitConsent
        • AATKitDebugScreenConfiguration
        • AATKitAdNetworkOptions
          • AATKitAdMobOptions
          • AATKitAppNexusOptions
          • AATKitDFPOptions
          • AATKitFeedAdOptions
          • AATKitDatonomyOptions
          • AATKitGraviteRTBOptions
          • AATKitSuperAwesomeOptions
            • AATKitSuperAwesomeBannerOptions
            • AATKitSuperAwesomeInterstitialAdOptions
            • AATKitSuperAwesomeRewardedVideOptions
          • AATKitDisplayIOOptions
        • IAATKitStatisticsListener
Powered by GitBook
On this page
  • Overview
  • Syntax
  • Examples
  1. Other
  2. Reference
  3. AATKitBinding
  4. Methods

SetPlacementAlignmentWithOffsetInPixels

Overview

Sets banner placement position on the screen with defined offset in pixels for both platform (Android/iOS). Please note banner cannot be displayed outside of the screen on the Android platform while it is possible on iOS. So please always make sure your banner displays correctly on both platforms. Note: x-axis direction is right, y-axis direction is top for both platforms.

Syntax

SetPlacementAlignmentWithOffsetInPixels(placementName, bannerAlignment, x, y)

placementName (REQUIRED)

string Unique name of placement. The same name will be used in addapptr.com account.

bannerAlignment (REQUIRED)

int Banner alignment on the screen. BannerAlignment.TopLeft = 0 BannerAlignment.TopCenter = 1 BannerAlignment.TopRight = 2 BannerAlignment.BottomLeft = 3 BannerAlignment.BottomCenter = 4 BannerAlignment.BottomRight = 5

x (REQUIRED)

int The x value of the banner offset in pixels. When this value is positive the banner is moved to the right, when it is negative the banner is moved to the left.

y (REQUIRED)

int The y value of the banner offset in pixels. When this value is positive the banner is moved to the bottom, when it is negative the banner is moved to the top.

returns void

Examples

setPlacementAlignmentWithOffsetInPixels("BannerPlacement", BannerAlignment.BottomCenter, 0, -10);
PreviousSetPlacementAlignmentNextSetPlacementAlignmentWithOffset

Last updated 2 years ago