Appodeal + Facebook / Meta ads

Hello

I’m trying to get facebook / meta ads through appodeal without any luck.
Already sent apk to appodeal and they confirmed that I don’t have the adapters enabled.

Whatever they propose me to do fails.

Here is my build.settings

settings =
{

	 splashScreen = 
    {
        enable = false
    },

    orientation =
    {
        default = "portrait",
        supported =
			{
				"portrait", "portraitUpsideDown",
            },
    },
     
	android =                
    {
        versionCode = "100",
        googlePlayGamesAppId = "xxx",
        
        applicationChildElements =
        {
            [[
                <meta-data android:name="com.google.android.gms.ads.APPLICATION_ID"
                    android:value="ca-app-pub-xxx~xxx"/> 
                    
                <meta-data android:name="com.facebook.sdk.ApplicationId" 
                    android:value="xxx"/>
                    
                <meta-data android:name="com.facebook.sdk.ClientToken"
    	            android:value="xxx" />           
            ]],
        },
        
        manifestChildElements = { [[ 
            <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" tools:node="remove" /> 
            <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" tools:node="remove" /> ]],
        },
        
        minSdkVersion = "22",
        
        networkSecurityConfig = 
        {
            manifestSrc = "res/xml/network_security_config.xml"
        },    
    	
       	usesPermissions =
    	{
     		"android.permission.INTERNET",
     		"android.permission.ACCESS_WIFI_STATE",
     		"android.permission.READ_PHONE_STATE",
     		"android.permission.ACCESS_NETWORK_STATE",
     		"android.permission.WRITE_EXTERNAL_STORAGE"
    	},
	}, 
	
	plugins =
	{	
		
		-- beta
		['plugin.appodeal.beta.base'] = { publisherId = 'com.coronalabs' },
		['plugin.appodeal.beta.Bidmachine'] = { publisherId = 'com.coronalabs' }, 
		['plugin.appodeal.beta.FacebookAudience'] = { publisherId = 'com.coronalabs' }, 
        
        ["plugin.pollfish"] =
        {
            publisherId = "com.coronalabs",
            supportedPlatforms = { android=true }
        },
        
        ["plugin.gpgs.v3"] =
        {
            publisherId = "com.solar2d",
        },

        
        ["plugin.utf8"] =
        {
            publisherId = "com.coronalabs"
        },
	}, 
	
}

I have the same issue for Android and waiting for an update from Scot Appodeal for Android still at 2.11.1?

Scott said that he updated the appodeal plugin but I still can not get any facebook ads.

Yeah, I think he only updated the non-beta version of the plugin and not the beta which you’re using. (and I’ve also been trying to use)

1 Like

Whatever I do I can not get facebook ads.
Guys from appodeal are performing several test and proposals but still no luck.

@Scott_Harrison could you please check this please?

On Android just use

[‘plugin.appodeal.beta.base’] = { publisherId = ‘com.coronalabs’ },
[‘plugin.appodeal.beta.Bidmachine’] = { publisherId = ‘com.coronalabs’ },

And then just add the facebook in your project in the folder AndroidResources=> corona.gradle. I am using beta 2 so you will need to find the beta 1 versions of these files.

repositories {
    maven {
        url "https://artifactory.appodeal.com/appodeal"
        url "https://artifactory.appodeal.com/appodeal-beta-public"
    }
}


dependencies {
    // ... other project dependencies
    implementation 'com.appodeal.ads.sdk.networks:bidmachine:3.2.0.0-beta.2'
    implementation 'com.appodeal.ads.sdk.networks:meta:3.2.0.0-beta.2'
    implementation 'com.appodeal.ads.sdk.services:sentry_analytics:3.2.0.1-beta.2'
    implementation 'com.appodeal.ads.sdk.services:stack_analytics:3.2.0.0-beta.2'
}
1 Like

@agramonte really appreciate your help.

I think that I followed you 100% but still no ads.

build.settings

settings =
{

	 splashScreen = 
    {
        enable = false
    },

    orientation =
    {
        default = "portrait",
        supported =
			{
				"portrait", "portraitUpsideDown",
            },
    },
     
	android =                
    {
        versionCode = "100",
        googlePlayGamesAppId = "xxx",
        
        applicationChildElements =
        {
            [[
                <meta-data android:name="com.google.android.gms.ads.APPLICATION_ID"
                    android:value="ca-app-pub-xxx"/> 
                    
                <meta-data android:name="com.facebook.sdk.ApplicationId" 
                    android:value="xxx"/>
                    
                <meta-data android:name="com.facebook.sdk.ClientToken"
    	            android:value="xxx" />           
            ]],
        },
        
        manifestChildElements = { [[ 
            <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" tools:node="remove" /> 
            <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" tools:node="remove" /> ]],
        },
        
        minSdkVersion = "21",
        
        networkSecurityConfig = 
        {
            manifestSrc = "res/xml/network_security_config.xml"
        },    
    	
       	usesPermissions =
    	{
     		"android.permission.INTERNET",
     		"android.permission.ACCESS_WIFI_STATE",
     		"android.permission.READ_PHONE_STATE",
     		"android.permission.ACCESS_NETWORK_STATE",
     		"android.permission.WRITE_EXTERNAL_STORAGE"
    	},
	}, 
	
	plugins =
	{	
		
		-- beta
		['plugin.appodeal.beta.base'] = { publisherId = 'com.coronalabs' },
		['plugin.appodeal.beta.Bidmachine'] = { publisherId = 'com.coronalabs' }, 
		
        ["plugin.pollfish"] =
        {
            publisherId = "com.coronalabs",
            supportedPlatforms = { android=true }
        },
        
        ["plugin.gpgs.v3"] =
        {
            publisherId = "com.solar2d",
        },
        
        --["plugin.gpgs.v2"] =
        --{
            --publisherId = "com.coronalabs",
            --supportedPlatforms = { android=true }
        --},
        
        ["plugin.utf8"] =
        {
            publisherId = "com.coronalabs"
        },
	}, 
	
}

corona.gradle

repositories {
    maven {
        url "https://artifactory.appodeal.com/appodeal"
        url "https://artifactory.appodeal.com/appodeal-beta-public"
    }
}

dependencies {
    // ... other project dependencies
    implementation 'com.appodeal.ads.sdk.networks:bidmachine:3.2.0.0-beta.1'
    implementation 'com.appodeal.ads.sdk.networks:meta:3.2.0.0-beta.1'
    implementation 'com.appodeal.ads.sdk.services:sentry_analytics:3.2.0.0-beta.1'
    implementation 'com.appodeal.ads.sdk.services:stack_analytics:3.2.0.0-beta.1'
}

But if I add FacebookAudience in build.settings

['plugin.appodeal.beta.base'] = { publisherId = 'com.coronalabs' },
['plugin.appodeal.beta.Bidmachine'] = { publisherId = 'com.coronalabs' }, 
['plugin.appodeal.beta.FacebookAudience'] = { publisherId = 'com.coronalabs' },

and remove repositories but keep dependencies like this in corona.gradle

dependencies {
    // ... other project dependencies
   implementation 'com.appodeal.ads:sdk:3.2.0.0-beta.1'
}

I get ads.
But the ads are from admob.

Is it because I have enabled Bidmachine?
Or does the code in dependencies adds all the adapters?
I don’t know how this work and what does exactly.

Also in this game I already use admob through appodeal (I have removed the admob adapter to get facebook ads on my device for testing).

I am not sure I follow what you are doing. Just add core in the build settings and Meta and BidMachine in the corona.gradle. I am going to see what pulls down when I use the solar2d repo, and maybe if I have some time this week, I’ll see about doing a pull request from my repo. My repo only has 2 changes:

  1. Going from beta.1 to beta.2
  2. Finishing the send event function that was already half-coded but not exposed as a public method.
1 Like

I believe I followed what you wrote on your previous post.

Could you share your build.settings and corona.gradle files?

Sorry for asking that but really don’t know what else to do.
I would even pay someone for help!

i don’t have anything in build settings and I have this in the file:

repositories {
    maven {
        url "https://artifactory.appodeal.com/appodeal"
        url "https://artifactory.appodeal.com/appodeal-beta-public"
    }
}


dependencies {
    // ... other project dependencies
    implementation ('com.appodeal.ads:sdk:3.2.0.1-beta.2') {
        exclude group: 'com.appodeal.ads.sdk.services', module: 'appsflyer'
        exclude group: 'com.appodeal.ads.sdk.networks', module: 'bigo_ads'
        exclude group: 'com.appodeal.ads.sdk.networks', module: 'dt_exchange'
        exclude group: 'com.appodeal.ads.sdk.networks', module: 'inmobi'
        exclude group: 'com.appodeal.ads.sdk.networks', module: 'mintegral'
        exclude group: 'com.appodeal.ads.sdk.networks', module: 'yandex'
        exclude group: 'com.appodeal.ads.sdk.networks', module: 'my_target'
    }
}
1 Like