# CreateAdvert

## Description

Creates an advert for revenue generation. Before calling this function you must have set your ad account details with one of the other commands such as SetAdMobDetails. Not all platforms support all ad providers so setting as many account details as possible will allow AGK to select a suitable ad for this platform.
This advert will typically be a 320x50 banner displayed somewhere around the edge of your app. Creating an ad when one already exists will replace the existing ad. The type parameter can be used to select the size of the banner, 0=Banner(320x50), 1=LargeBanner, 2=MediumRectangle, 3=FullBanner, 4=Leaderboard, 5=SmartBanner, 6=FluidBanner

## Definition

CreateAdvert( type, horz, vert, test )

void agk::CreateAdvert( int type, int horz, int vert, int test )

## Parameters

- type - The size of the banner to create
- horz - The horizontal position of the ad, 0=left, 1=center, 2=right
- vert - The vertical postion of the ad, 0=top, 1=center, 2=bottom
- test - Set to 1 to receive a non paying test ad, 0 to receive a real ad.