# Google Mobile Ads SDK

Google requires their app-ID to be declared in the manifest. Please follow [these instructions](https://developers.google.com/admob/android/quick-start#import_the_mobile_ads_sdk). In order to get the Google app-ID for you app, either find it within your own AdMob or AdManager account or contact our [support](mailto:support@gravite.net).

#### Google App-ID Key

Follow [Google documentation](https://developers.google.com/admob/android/quick-start#import_the_mobile_ads_sdk) to add your Google app-ID key to the Manifest file.

#### AdMob Maximum Inline Banners Height

You can set the maximum height for AdMob inline adaptive banners by:

* Create an instance of [AATKitAdNetworkOptions](https://android-sdk.aatkit.com/references/-a-a-t-kit/com.intentsoftware.addapptr/-a-a-t-kit-ad-network-options/index.html) passing [AdMobOptions](https://android-sdk.aatkit.com/references/-a-a-t-kit/com.intentsoftware.addapptr/-ad-mob-options/index.html).
* Provide this instance to the [AATKitConfiguration](https://android-sdk.aatkit.com/references/-a-a-t-kit/com.intentsoftware.addapptr/-a-a-t-kit-configuration/index.html) while initialising AATKit.
* AATKit will automatically forward the specified options to the GMA during ad loading.

{% tabs %}
{% tab title="Java" %}
```java
AATKitConfiguration conf = new AATKitConfiguration(this);
AATKitAdNetworkOptions networkOptions = new AATKitAdNetworkOptions();
// [...]
AdMobOptions adMobOptions = new AdMobOptions(50);

networkOptions.setAdMobOptions(adMobOptions);
conf.setAdNetworkOptions(networkOptions);
// [...]
AATKit.init(conf);
```
{% endtab %}

{% tab title="Kotlin" %}
```kotlin
val conf = AATKitConfiguration(this)
val networkOptions = AATKitAdNetworkOptions()
// [...]
val adMobOptions = AdMobOptions(50)

networkOptions.adMobOptions = adMobOptions
conf.adNetworkOptions = networkOptions
// [...]
AATKit.init(conf)
```
{% endtab %}
{% endtabs %}

#### DFP Maximum Inline Banners Height

You can set the maximum height for DFP inline adaptive banners by:

* Create an instance of [AATKitAdNetworkOptions](https://android-sdk.aatkit.com/references/-a-a-t-kit/com.intentsoftware.addapptr/-a-a-t-kit-ad-network-options/index.html) passing [DFPOptions](https://android-sdk.aatkit.com/references/-a-a-t-kit/com.intentsoftware.addapptr/-d-f-p-options/index.html).
* Provide this instance to the [AATKitConfiguration](https://android-sdk.aatkit.com/references/-a-a-t-kit/com.intentsoftware.addapptr/-a-a-t-kit-configuration/index.html) while initialising AATKit.
* AATKit will automatically forward the specified options to the GMA during ad loading.

{% tabs %}
{% tab title="Java" %}
```java
AATKitConfiguration conf = new AATKitConfiguration(this);
AATKitAdNetworkOptions networkOptions = new AATKitAdNetworkOptions();
// [...]
DFPOptions dfpOptions = new DFPOptions(50);

networkOptions.setDfpOptions(dfpOptions);
conf.setAdNetworkOptions(networkOptions);
// [...]
AATKit.init(conf);
```
{% endtab %}

{% tab title="Kotlin" %}
```kotlin
val conf = AATKitConfiguration(this)
val networkOptions = AATKitAdNetworkOptions()
// [...]
val dfpOptions = DFPOptions(50)

networkOptions.dfpOptions = dfpOptions
conf.adNetworkOptions = networkOptions
// [...]
AATKit.init(conf)
```
{% endtab %}
{% endtabs %}
