Wish Activate / deactivate the Lib-Admob per code

D

Deleted member 103

Guest
Hi Erel,

with the new Google policy is not so easy to create two different app (Pro and Free) with the same code. Because if admod is used and is activated only by code, then the app from Google is not approved.
The solution would be to activate or deactivate the Lib-Admob per code.
What do you mean, is it possible?

Hello Google Play Developer,

At Google I/O, we launched “ad-supported” labels for apps in the Designed for Families program. Today, we’re announcing the expansion of this program to all apps on Google Play. Early next year, users will start to see the “Ads” label on apps that contain advertising, both inside and outside Designed for Families.

By January 11, 2016, you must sign in to the Play Developer Console and declare whether your apps contain ads (such as ads delivered through third party ad networks, display ads, native ads, and/or banner ads). After this date, the ads declaration will be required to make any updates to your apps. Please note that misrepresenting ad presence violates Google Play Developer Program Policies and may lead to suspension. You can visit our help center to learn more.

While developers are responsible for accurately declaring ad presence in their apps, Google may verify this at any time and display the “Ads” label if appropriate.

If you feel your app has been incorrectly flagged for containing ads, please contact our policy support team.

Regards,
The Google Play Team
 

sorex

Expert
Licensed User
Longtime User
that he needs to select "YES (it contains ads)" because it detected admob in his app.
 
D

Deleted member 103

Guest
What does the message say?
 

sorex

Expert
Licensed User
Longtime User
you can add conditional statements to get rid of the code but then you need to keep in mind to tempory disable the library.

not sure if it would still compile because it won't recognize some types (adview?)
 

sorex

Expert
Licensed User
Longtime User
unless you put the dim ... as adview in a condition aswell
 
D

Deleted member 103

Guest
unless you put the dim ... as adview in a condition aswell
I think without a change in B4a it will not be so easy.

It would be something like this.
B4X:
#Region Conditional Compilation
    #If Lite
        #ApplicationLabel: App-Lite
        #Addlibrary: Admob
        Dim AdView1 As AdView
    #End If

    #If Pro
        #ApplicationLabel: App-Pro
    #End If

#End Region
 

MikeH

Well-Known Member
Licensed User
Longtime User
I clicked "No...." after admob was detected in my app. It doesnt actually serve ads, (even though the lib is there for the free version), and thats what they`re asking.
 
D

Deleted member 103

Guest
@Erel
Can I expect that you are doing something in this case?
For me is very important.
 
D

Deleted member 103

Guest
If you can just click No on that question then I don't see any reason to implement a more complicated solution.
If that makes no problems then I have no problem and no new complicated solution must be implemented.
I'm sorry, I have a message from Google misunderstood.
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…