Skip to content

Commit

Permalink
Mobile: Add section about ad position configuration (#5751)
Browse files Browse the repository at this point in the history
* Add section about ad position

* Add rendering-adunit-config-android.md
  • Loading branch information
OlenaPostindustria authored Dec 20, 2024
1 parent 8967858 commit 0f74f8b
Show file tree
Hide file tree
Showing 12 changed files with 64 additions and 2 deletions.
10 changes: 10 additions & 0 deletions _includes/mobile/adunit-config-android.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,13 @@ Using the following method, you can set the impression-level [GPID](https://docs
``` kotlin
adUnit?.gpid = "/36117602/hnp-sfgate.com/Homepage/AP300"
```

### Ad Position

The `adPosition` property allows developers to specify the position of the ad within the publisher's content. This property maps to the `pos` field in the OpenRTB specification under the `imp[].banner` or `imp[].video` objects, depending on the ad format. The possible values for this field could be found in the [respective specification](https://github.com/InteractiveAdvertisingBureau/AdCOM/blob/main/AdCOM%20v1.0%20FINAL.md#list--placement-positions-).

You can set `adPosition` by using the following method:

```kotlin
adUnit.setAdPosition(AdPosition.FOOTER);
```
10 changes: 10 additions & 0 deletions _includes/mobile/adunit-config-ios.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,13 @@ Using the following method, you can set the impression-level [GPID](https://docs
``` swift
adUnit.setGPID("/36117602/hnp-sfgate.com/Homepage/AP300")
```

### Ad Position

The `adPosition` property allows developers to specify the position of the ad within the publisher's content. This property maps to the `pos` field in the OpenRTB specification under the `imp[].banner` or `imp[].video` objects, depending on the ad format. The possible values for this field could be found in the [respective specification](https://github.com/InteractiveAdvertisingBureau/AdCOM/blob/main/AdCOM%20v1.0%20FINAL.md#list--placement-positions-).

You can set `adPosition` by using the following property:

```swift
adUnit.adPosition = .footer
```
9 changes: 9 additions & 0 deletions _includes/mobile/rendering-adunit-config-android.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
### Ad Position

The `adPosition` property allows developers to specify the position of the ad within the publisher's content. This property maps to the `pos` field in the OpenRTB specification under the `imp[].banner` or `imp[].video` objects, depending on the ad format. The possible values for this field could be found in the [respective specification](https://github.com/InteractiveAdvertisingBureau/AdCOM/blob/main/AdCOM%20v1.0%20FINAL.md#list--placement-positions-).

You can set `adPosition` by using the following method:

```kotlin
adUnit.setAdPosition(AdPosition.FOOTER);
```
9 changes: 9 additions & 0 deletions _includes/mobile/rendering-adunit-config-ios.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
### Ad Position

The `adPosition` property allows developers to specify the position of the ad within the publisher's content. This property maps to the `pos` field in the OpenRTB specification under the `imp[].banner` or `imp[].video` objects, depending on the ad format. The possible values for this field could be found in the [respective specification](https://github.com/InteractiveAdvertisingBureau/AdCOM/blob/main/AdCOM%20v1.0%20FINAL.md#list--placement-positions-).

You can set `adPosition` by using the following property:

```swift
adUnit.adPosition = .footer
```
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,10 @@ The `fetchDemand` method makes a bid request to the prebid server and provides a

Now load an native ad from AdMob according to the [AdMob instructions](https://developers.google.com/admob/android/native/start). Everything else will be handled by GMA SDK and prebid adapters.

## Additional Ad Unit Configuration

{% include mobile/rendering-adunit-config-android.md %}

## Further Reading

- [Prebid Mobile Overview](/prebid-mobile/prebid-mobile.html)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ Integration:

## Additional Ad Unit Configuration

{% include mobile/adunit-config-android.md %}
{% include mobile/rendering-adunit-config-android.md %}

## Further Reading

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,10 @@ The `fetchDemand` method makes a bid request to prebid server and provides a res

Now just load a native ad from MAX according to the [MAX instructions](https://dash.applovin.com/documentation/mediation/android/getting-started/native-manual#load-the-native-ad).

## Additional Ad Unit Configuration

{% include mobile/rendering-adunit-config-android.md %}

## Further Reading

- [Prebid Mobile Overview](/prebid-mobile/prebid-mobile.html)
Expand Down
4 changes: 4 additions & 0 deletions prebid-mobile/modules/rendering/android-sdk-integration-pb.md
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,10 @@ override fun onAdLoaded(rewardedAdUnit: RewardedAdUnit) {
}
```

## Additional Ad Unit Configuration

{% include mobile/rendering-adunit-config-android.md %}

## Further Reading

- [Prebid Mobile Overview](/prebid-mobile/prebid-mobile)
Expand Down
4 changes: 4 additions & 0 deletions prebid-mobile/modules/rendering/ios-sdk-integration-admob.md
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,10 @@ The `fetchDemand` method makes a bid request to Prebid server and provides a res

Now just load a native ad from AdMob according to the [AdMob instructions](https://developers.google.com/admob/ios/native/start).

## Additional Ad Unit Configuration

{% include mobile/rendering-adunit-config-ios.md %}

## Further Reading

- [Prebid Mobile Overview](/prebid-mobile/prebid-mobile)
Expand Down
2 changes: 1 addition & 1 deletion prebid-mobile/modules/rendering/ios-sdk-integration-gam.md
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ Integration:

## Additional Ad Unit Configuration

{% include mobile/adunit-config-ios.md %}
{% include mobile/rendering-adunit-config-ios.md %}

## Further Reading

Expand Down
4 changes: 4 additions & 0 deletions prebid-mobile/modules/rendering/ios-sdk-integration-max.md
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,10 @@ The `fetchDemand` method makes a bid request to Prebid Server and provides a res

Load a native ad from MAX according to the [MAX instructions](https://dash.applovin.com/documentation/mediation/ios/getting-started/native-manual#load-the-native-ad).

## Additional Ad Unit Configuration

{% include mobile/rendering-adunit-config-ios.md %}

## Further Reading

- [Prebid Mobile Overview](/prebid-mobile/prebid-mobile)
Expand Down
4 changes: 4 additions & 0 deletions prebid-mobile/modules/rendering/ios-sdk-integration-pb.md
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,10 @@ func rewardedAdDidReceiveAd(_ rewardedAd: RewardedAdUnit) {
}
```

## Additional Ad Unit Configuration

{% include mobile/rendering-adunit-config-ios.md %}

## Further Reading

- [Prebid Mobile Overview](/prebid-mobile/prebid-mobile)
Expand Down

0 comments on commit 0f74f8b

Please sign in to comment.