# LogAdvertising: Warning: GetAdvertisingProvider called with a module name of None.

**URL:** <https://forums.unrealengine.com/t/logadvertising-warning-getadvertisingprovider-called-with-a-module-name-of-none/879180>\
**Category:** Mobile\
**Tags:** unreal-engine, Android, bug-report, packaging-projects, question, Blueprint, CPP\
**Created:** [April 8, 2023, 8:25pm UTC](https://forums.unrealengine.com/t/logadvertising-warning-getadvertisingprovider-called-with-a-module-name-of-none/879180 "2023-04-08T20:25:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![BaranKYNC](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/barankync/32/634682_2.png) [@BaranKYNC](https://forums.unrealengine.com/u/BaranKYNC)\
**Post date:** [April 8, 2023, 8:25pm UTC](https://forums.unrealengine.com/t/logadvertising-warning-getadvertisingprovider-called-with-a-module-name-of-none/879180/1 "2023-04-08T20:25:26Z")

</div>

I have a plan project, I want to add ads for mobile devices, I have made the necessary ad settings. I have added the Google Online Subsystem and the OnlineSubsystemGooglePlay plugins. When I search for the ad containing the code, I get such a warning from the editor.  
 ![getadsprovider](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/f/e/5fe787fde1c3a693f26173c87555e28210dfb8db.png)  
Whatever I tried, it just didn’t happen. I created a new C++ class and added the following code, Code  
`... if (Target.Platform == UnrealTargetPlatform.Android) { ExtraModuleNames.Add("OnlineSubsystemGooglePlay"); ExtraModuleNames.Add("OnlineSubsystem"); ExtraModuleNames.Add("AndroidAdvertising"); }`  
but it didn’t happen. I couldn’t put the ad in the game somehow, I’d be very happy if you could help ^^

---

<div class="post-metadata">

**Author:** ![BaranKYNC](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/barankync/32/634682_2.png) [@BaranKYNC](https://forums.unrealengine.com/u/BaranKYNC)\
**Post date:** [April 8, 2023, 8:32pm UTC](https://forums.unrealengine.com/t/logadvertising-warning-getadvertisingprovider-called-with-a-module-name-of-none/879180/2 "2023-04-08T20:32:38Z")

</div>

Hello again, I did a final test, I can see the advertisement in the game. If you are working on a plan project, do not add the above codes, just integrate the plugins I have written into the project. Then test your game with test ads. The editor is still giving the warning, I don’t understand why, but the ads are working.

---

<div class="post-metadata">

**Author:** ![RabbleGS](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RabbleGS](https://forums.unrealengine.com/u/RabbleGS)\
**Post date:** [June 22, 2024, 12:55am UTC](https://forums.unrealengine.com/t/logadvertising-warning-getadvertisingprovider-called-with-a-module-name-of-none/879180/3 "2024-06-22T00:55:58Z")

</div>

What do you mean “integrate the plugins I have written into the project”? Are you saying just enable those 2 plugins Google Online Subsystem and the OnlineSubsystemGooglePlay? No C++ code necessary? I am just trying to get test ads to work.
