# Inmobi ads are not loading.

**URL:** <https://forums.solar2d.com/t/inmobi-ads-are-not-loading/345122>\
**Category:** Monetization (in-app purchases, ads, etc.)\
**Created:** [August 23, 2017, 4:41pm UTC](https://forums.solar2d.com/t/inmobi-ads-are-not-loading/345122 "2017-08-23T16:41:54Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Emre\_Sasmaz](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/e/ecc23a/32.png) [@Emre\_Sasmaz](https://forums.solar2d.com/u/Emre_Sasmaz)\
**Post date:** [August 23, 2017, 4:41pm UTC](https://forums.solar2d.com/t/inmobi-ads-are-not-loading/345122/1 "2017-08-23T16:41:54Z")

</div>

Hi, i am just trying to use interstitial ad. It works fine in test mode. (global)  
But it doesn’t work when i turned off the test mode. inmobi doesn’t load any ads without test mode.

Here are my codes:  
&nbsp;

```
placementID = "ad placement id" function adListener( event ) &nbsp;if ( event.phase == "init" ) then&nbsp; -- Successful initialization &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -- Load a banner ad &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; inMobi.load( "interstitial", placementID ) &nbsp; &nbsp;&nbsp;&nbsp; elseif ( event.phase == "loaded" ) then&nbsp; -- The ad was successfully loaded &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; print( event.type ) &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; print( event.placementId ) &nbsp; &nbsp;&nbsp;&nbsp; elseif ( event.phase == "failed" ) then&nbsp; -- The ad failed to load &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; print( event.type ) &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; print( event.placementId ) &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; print( event.isError ) &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; print( event.response ) &nbsp;&nbsp;&nbsp; end end -- Initialize the InMobi plugin inMobi.init( adListener, { accountId="my account id", logLevel="debug" } ) function show\_ads() --{ &nbsp;&nbsp; &nbsp; &nbsp;&nbsp; &nbsp;inMobi.load( "interstitial", placementID ) &nbsp;&nbsp; &nbsp;if (inMobi.isLoaded( placementID ) ) then &nbsp;&nbsp; &nbsp;--{ &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;inMobi.show( placementID, { yAlign="top" } ) &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;else &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;print("The ad failed to load") &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;end &nbsp;&nbsp; &nbsp;--} &nbsp;&nbsp; &nbsp;end --}

```

Android Device Monitor says(under inmobi tag): “_failed to fetch ad for placement id xxxxxxxxxxxxx, reason phrase a valiable in onAdLoadFailed callback_”

There is one more thing, i don’t know if it has meaning:

![PrmREb.jpg](https://i.hizliresim.com/PrmREb.jpg)

any idea? my account id is correct, my placement id is correct. am i missing something?

Edit:

i got new warning(from device monitor): “_REQUEST\_INVALID - please check the site status on inmobi dashboard or reach out to PartnerManager_”  
&nbsp;

---

<div class="post-metadata">

**Author:** ![ingemar\_cl](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/i/e19b73/32.png) [@ingemar\_cl](https://forums.solar2d.com/u/ingemar_cl)\
**Post date:** [August 24, 2017, 1:37am UTC](https://forums.solar2d.com/t/inmobi-ads-are-not-loading/345122/2 "2017-08-24T01:37:00Z")

</div>

Hi Emre,

Since you get “_REQUEST\_INVALID - please check the site status on inmobi dashboard or reach out to PartnerManager_”, I’d recommend that you contact InMobi and ask if they can see why ads are not loading for your placement Id.

---

<div class="post-metadata">

**Author:** ![Emre\_Sasmaz](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/e/ecc23a/32.png) [@Emre\_Sasmaz](https://forums.solar2d.com/u/Emre_Sasmaz)\
**Post date:** [August 24, 2017, 1:25pm UTC](https://forums.solar2d.com/t/inmobi-ads-are-not-loading/345122/3 "2017-08-24T13:25:01Z")

</div>

Thank you. i tried it but i didn’t get response. so, i switched to appnext.

---

<div class="post-metadata">

**Author:** ![ingemar\_cl](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/i/e19b73/32.png) [@ingemar\_cl](https://forums.solar2d.com/u/ingemar_cl)\
**Post date:** [August 24, 2017, 1:37am UTC](https://forums.solar2d.com/t/inmobi-ads-are-not-loading/345122/4 "2017-08-24T01:37:00Z")

</div>

Hi Emre,

Since you get “_REQUEST\_INVALID - please check the site status on inmobi dashboard or reach out to PartnerManager_”, I’d recommend that you contact InMobi and ask if they can see why ads are not loading for your placement Id.

---

<div class="post-metadata">

**Author:** ![Emre\_Sasmaz](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/e/ecc23a/32.png) [@Emre\_Sasmaz](https://forums.solar2d.com/u/Emre_Sasmaz)\
**Post date:** [August 24, 2017, 1:25pm UTC](https://forums.solar2d.com/t/inmobi-ads-are-not-loading/345122/5 "2017-08-24T13:25:01Z")

</div>

Thank you. i tried it but i didn’t get response. so, i switched to appnext.
