# AdMob Integration in list after set number of records

**URL:** <https://forum.adalo.com/t/admob-integration-in-list-after-set-number-of-records/3158>\
**Category:** Get Help\
**Created:** [August 10, 2020, 3:46pm UTC](https://forum.adalo.com/t/admob-integration-in-list-after-set-number-of-records/3158 "2020-08-10T15:46:47Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tommen](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/tommen/32/5383_2.png) [@Tommen](https://forum.adalo.com/u/Tommen)\
**Post date:** [August 10, 2020, 3:46pm UTC](https://forum.adalo.com/t/admob-integration-in-list-after-set-number-of-records/3158/1 "2020-08-10T15:46:47Z")

</div>

Hi guys, does anyone have an idea how to set AdMob to show up in a list after set number of records? I’d like to integrate it among the records and show it more than once but not too many times. Therefore I thought it would be great to set it to show after let’s say each 10th record but I am not sure how or how to do that. If anyone knew, please let me know! 🙂 Thanks.

---

<div class="post-metadata">

**Author:** ![anon78309838](https://avatars.discourse-cdn.com/v4/letter/a/b9bd4f/32.png) [@anon78309838](https://forum.adalo.com/u/anon78309838)\
**Post date:** [August 11, 2020, 7:46am UTC](https://forum.adalo.com/t/admob-integration-in-list-after-set-number-of-records/3158/2 "2020-08-11T07:46:48Z")

</div>

I can’t think of any way to do this currently. I will have a chat with the team later to discuss if there is any way to achieve this as it’s an interesting use case for this component!

---

<div class="post-metadata">

**Author:** ![Tommen](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/tommen/32/5383_2.png) [@Tommen](https://forum.adalo.com/u/Tommen)\
**Post date:** [August 11, 2020, 10:33am UTC](https://forum.adalo.com/t/admob-integration-in-list-after-set-number-of-records/3158/3 "2020-08-11T10:33:40Z")

</div>

Thanks a lot! It would be super useful I believe for many users 🙂

---

<div class="post-metadata">

**Author:** ![anon78309838](https://avatars.discourse-cdn.com/v4/letter/a/b9bd4f/32.png) [@anon78309838](https://forum.adalo.com/u/anon78309838)\
**Post date:** [August 12, 2020, 1:47pm UTC](https://forum.adalo.com/t/admob-integration-in-list-after-set-number-of-records/3158/4 "2020-08-12T13:47:06Z")

</div>

Ok I have got this working.

What you need to do is add an extra property to your collection for the list that you want to display the admob banner in.

This should be a True/False boolean property and you can call it “Ad”.

Now you should add the admob banner into the list, where it would normally display in that list.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/2X/b/b62d6b2d2e74fbedd69ca03486404355b1231f0f.png)

You then want to place a visibility rule on this admob component.

![image](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/2X/1/1a1dfff886d856865db34ecb4c26d49d3806bae3.png)

Now all you have to do is create a new record in the spot that you would want to place this ad.

If you want to do it after every 10 items, then you might need to create another property in this collection that is a number type and this will increment each time a new record is added. Then every 10th record you can create an empty record and place the “Ad” boolean as TRUE.

Result: (Seto to 7th item in the list)

 ![image](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/2X/4/4747f008fd580b3c57d8166b7f0b178fc48e1996.png)

---

<div class="post-metadata">

**Author:** ![Tommen](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/tommen/32/5383_2.png) [@Tommen](https://forum.adalo.com/u/Tommen)\
**Post date:** [August 12, 2020, 3:19pm UTC](https://forum.adalo.com/t/admob-integration-in-list-after-set-number-of-records/3158/5 "2020-08-12T15:19:26Z")

</div>

Hi Colin, that sounds like a great idea! However, can you please advise me on how to set numbers property in collection to manually add numbers (1-10) so I can set it to 10, as you mentioned? Thanks 🙂

---

<div class="post-metadata">

**Author:** ![Tommen](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/tommen/32/5383_2.png) [@Tommen](https://forum.adalo.com/u/Tommen)\
**Post date:** [August 15, 2020, 8:30am UTC](https://forum.adalo.com/t/admob-integration-in-list-after-set-number-of-records/3158/7 "2020-08-15T08:30:23Z")

</div>

@anon78309838 Don’t you please have any ideas for that? 🙂

---

<div class="post-metadata">

**Author:** ![Ben](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/ben/32/9_2.png) [@Ben](https://forum.adalo.com/u/Ben)\
**Post date:** [August 15, 2020, 7:53pm UTC](https://forum.adalo.com/t/admob-integration-in-list-after-set-number-of-records/3158/8 "2020-08-15T19:53:02Z")

</div>

On your action to create a new record you can set the record number property to be the Collection \> Count +1

---

<div class="post-metadata">

**Author:** ![Tommen](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/tommen/32/5383_2.png) [@Tommen](https://forum.adalo.com/u/Tommen)\
**Post date:** [August 16, 2020, 7:47am UTC](https://forum.adalo.com/t/admob-integration-in-list-after-set-number-of-records/3158/9 "2020-08-16T07:47:43Z")

</div>

Thanks Ben, but how you set it to recognise when to start counting again from 0 (to achieve maximum number 10)?

---

<div class="post-metadata">

**Author:** ![Tommen](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/tommen/32/5383_2.png) [@Tommen](https://forum.adalo.com/u/Tommen)\
**Post date:** [August 18, 2020, 10:22am UTC](https://forum.adalo.com/t/admob-integration-in-list-after-set-number-of-records/3158/11 "2020-08-18T10:22:25Z")

</div>

I assume there is no solution for that then?

---

<div class="post-metadata">

**Author:** ![anon78309838](https://avatars.discourse-cdn.com/v4/letter/a/b9bd4f/32.png) [@anon78309838](https://forum.adalo.com/u/anon78309838)\
**Post date:** [August 18, 2020, 12:25pm UTC](https://forum.adalo.com/t/admob-integration-in-list-after-set-number-of-records/3158/12 "2020-08-18T12:25:31Z")

</div>

Hi Tommen,

We try to get to every support request so sometimes our responses may be longer than usual. Please be patient. I will bring this question up during our support meeting to see if we can brainstorm how to do this.

---

<div class="post-metadata">

**Author:** ![Tommen](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/tommen/32/5383_2.png) [@Tommen](https://forum.adalo.com/u/Tommen)\
**Post date:** [August 18, 2020, 2:29pm UTC](https://forum.adalo.com/t/admob-integration-in-list-after-set-number-of-records/3158/13 "2020-08-18T14:29:22Z")

</div>

Hi Colin,  
No worries, appreciate your help! 🙂

---

<div class="post-metadata">

**Author:** ![anon78309838](https://avatars.discourse-cdn.com/v4/letter/a/b9bd4f/32.png) [@anon78309838](https://forum.adalo.com/u/anon78309838)\
**Post date:** [August 19, 2020, 9:51am UTC](https://forum.adalo.com/t/admob-integration-in-list-after-set-number-of-records/3158/14 "2020-08-19T09:51:02Z")

</div>

Hi Tommen,

this is proving to be more difficult. I will keep trying for a solution but right now I do not have one.

---

<div class="post-metadata">

**Author:** ![Tommen](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/tommen/32/5383_2.png) [@Tommen](https://forum.adalo.com/u/Tommen)\
**Post date:** [August 19, 2020, 7:14pm UTC](https://forum.adalo.com/t/admob-integration-in-list-after-set-number-of-records/3158/15 "2020-08-19T19:14:04Z")

</div>

Hi Colin, I had been thinking about that and I’d like to ask an additional question. If we manage to resolve this situation and the ad will be shown after every 10th record (just an example), is it going to show the same ad (since the Ad-ID is going to be the same for each record in the list) or is it going to generate a different ad? This may be more a question for someone pro from AdMob but maybe you know this 😌 Thank you.

---

<div class="post-metadata">

**Author:** ![anon78309838](https://avatars.discourse-cdn.com/v4/letter/a/b9bd4f/32.png) [@anon78309838](https://forum.adalo.com/u/anon78309838)\
**Post date:** [August 20, 2020, 9:28am UTC](https://forum.adalo.com/t/admob-integration-in-list-after-set-number-of-records/3158/16 "2020-08-20T09:28:53Z")

</div>

Hi Tommen,

@Ben was able to solve this with some very sophisticated math!

I have made this app cloneable so that you may view the details of the setup and apply the same to your own.

[https://previewer.adalo.com/fa88f033-4eb1-4036-8c4b-31a9e26d8c57](https://previewer.adalo.com/fa88f033-4eb1-4036-8c4b-31a9e26d8c57)

As you can see in this app. Everytime you click the button, it will add a new “Item” record. Then on every 10th record, it renames it to Ad. 🙂

> Hi Colin, I had been thinking about that and I’d like to ask an additional question. If we manage to resolve this situation and the ad will be shown after every 10th record (just an example), is it going to show the same ad (since the Ad-ID is going to be the same for each record in the list) or is it going to generate a different ad? This may be more a question for someone pro from AdMob but maybe you know this 😌 Thank you.

This one I do not know the answer to and you may need to aks AdMob.

---

<div class="post-metadata">

**Author:** ![Tommen](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/tommen/32/5383_2.png) [@Tommen](https://forum.adalo.com/u/Tommen)\
**Post date:** [August 20, 2020, 4:31pm UTC](https://forum.adalo.com/t/admob-integration-in-list-after-set-number-of-records/3158/17 "2020-08-20T16:31:35Z")

</div>

Hi Colin,  
I am super grateful for help of both of you! Thank you so much!

Can you please just explain to me how to set up the following formula?

![Screenshot 2020-08-20 at 18.27.56](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/2X/6/68995704ddc65d68965ae8dd80881f2f876a5116.png)

I am not sure how did you set the ROUND(( formula, I couldn’t find it anywhere 🤔 (Item count as well as divided by 20 is understood 🙂 )  
Thank you!

---

<div class="post-metadata">

**Author:** ![anon78309838](https://avatars.discourse-cdn.com/v4/letter/a/b9bd4f/32.png) [@anon78309838](https://forum.adalo.com/u/anon78309838)\
**Post date:** [August 20, 2020, 4:33pm UTC](https://forum.adalo.com/t/admob-integration-in-list-after-set-number-of-records/3158/18 "2020-08-20T16:33:42Z")

</div>

The round formula can be found in the functions section. It is only available for “number” property types.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/2X/1/1d2e204b30452b8e7edc09d7fd47b14065597362.png)

---

<div class="post-metadata">

**Author:** ![Tommen](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/tommen/32/5383_2.png) [@Tommen](https://forum.adalo.com/u/Tommen)\
**Post date:** [August 20, 2020, 4:46pm UTC](https://forum.adalo.com/t/admob-integration-in-list-after-set-number-of-records/3158/19 "2020-08-20T16:46:47Z")

</div>

I see I was searching somewhere else 😶 Thanks a lot again to both of you 🤗

---

<div class="post-metadata">

**Author:** ![Tommen](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/tommen/32/5383_2.png) [@Tommen](https://forum.adalo.com/u/Tommen)\
**Post date:** [August 20, 2020, 6:24pm UTC](https://forum.adalo.com/t/admob-integration-in-list-after-set-number-of-records/3158/20 "2020-08-20T18:24:22Z")

</div>

Prove me please if I am wrong but if I give it a try, it works for every record added after 10th (10th included) meaning it is not shown for first 9 records and then it is for every record.

Am I doing something incorrectly or is it set up this way? What I was trying to achieve was to show it after every 10th record (10th, 20th, 30th…). Sorry for being annoying 🤐 and thank you for your help 🙂

---

<div class="post-metadata">

**Author:** ![Tommen](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/tommen/32/5383_2.png) [@Tommen](https://forum.adalo.com/u/Tommen)\
**Post date:** [August 24, 2020, 4:05am UTC](https://forum.adalo.com/t/admob-integration-in-list-after-set-number-of-records/3158/22 "2020-08-24T04:05:05Z")

</div>

Hi @anon78309838, could you please have a look at that? 🙂

---

<div class="post-metadata">

**Author:** ![anon78309838](https://avatars.discourse-cdn.com/v4/letter/a/b9bd4f/32.png) [@anon78309838](https://forum.adalo.com/u/anon78309838)\
**Post date:** [August 24, 2020, 10:40am UTC](https://forum.adalo.com/t/admob-integration-in-list-after-set-number-of-records/3158/23 "2020-08-24T10:40:34Z")

</div>

Did you copy the formula exactly as demonstrated? In the demo provided you can test and prove that every 10th record (10th, 20th, 30th) is indeed an ad reserved record.

[Next page](https://forum.adalo.com/t/admob-integration-in-list-after-set-number-of-records/3158.md?page=2)
