Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Interstitial FacebookAds Android does not work out of the box #1989

Closed
snly2386 opened this issue Jul 13, 2018 · 5 comments
Closed

Interstitial FacebookAds Android does not work out of the box #1989

snly2386 opened this issue Jul 13, 2018 · 5 comments
Labels

Comments

@snly2386
Copy link

snly2386 commented Jul 13, 2018

Environment

EXPO 28,
REACT 16.3.1
REACT NATIVE https://github.com/expo/react-native/archive/sdk-28.0.0.tar.gz
ANDROID EMULATOR

Steps to Reproduce

  1. Create a fresh expo app and import the { FacebookAds } module
  2. Open up an android simulator
  3. Register test device with facebook ads: FacebookAds.AdSettings.addTestDevice(FacebookAds.AdSettings.currentDeviceHash)
  4. Show an interstitial ad:FacebookAds.InterstitialAdManager.showAd({ANDROID_PLACEMENT_ID})
  5. Receive this error in lieu of an interstitial ad: The SDK version in the ad request is no longer supported for new apps. Please upgrade to one of the latest versions of the SDK.

Expected Behavior

I would expect to see an interstitial facebook dummy ad pop up.

(Write what you thought would happen.)

Actual Behavior

I receive this error message: The SDK version in the ad request is no longer supported for new apps. Please upgrade to one of the latest versions of the SDK.

(Write what happened. Add screenshots!)

Reproducible Demo

https://snack.expo.io/SJouAYUXm

(Paste the link to an example project and exact instructions to reproduce the issue.)

@terribleben
Copy link
Contributor

Thanks for the report. We're working on updating to FBAudienceNetwork 4.99 internally. Not sure exactly when it will ship.

@terribleben
Copy link
Contributor

terribleben commented Jul 31, 2018

Updated Facebook Audience Network was released with SDK 29.

@onka13
Copy link

onka13 commented Dec 25, 2018

I'm getting same error on SDK v31.

Environment

Expo CLI 2.6.14 environment info:
System:
OS: Windows 10
Binaries:
Yarn: 1.12.3 - D:\programs\npmrepo\yarn.CMD
npm: 6.4.1 - C:\Program Files\nodejs\npm.CMD

dependencies

"expo": "^31.0.5",
"expokit": "31.0.2",
"react": "16.5.0",
"react-native": "https://github.com/expo/react-native/archive/sdk-31.0.0.tar.gz",

build.gradle

implementation 'com.facebook.android:facebook-android-sdk:4.37.0'
implementation('com.facebook.android:audience-network-sdk:4.99.0') {
exclude module: 'play-services-ads'
}
implementation('host.exp.exponent:expoview:31.0.0@aar') {
transitive = true
exclude group: 'com.squareup.okhttp3', module: 'okhttp'
exclude group: 'com.squareup.okhttp3', module: 'okhttp-urlconnection'
}

Problems

FacebookAds not working. I've tried banner and interstitial ads.

Object {
"errorCode": 1203,
"errorMessage": "The SDK version in the ad request is no longer supported for new apps. Please upgrade to one of the latest versions of the SDK",
}

Usage;

FacebookAds.AdSettings.addTestDevice(FacebookAds.AdSettings.currentDeviceHash)

<FacebookAds.BannerAd
	placementId="..."
	type="standart"
	onPress={() => console.log("click")}
	onError={err => console.log("error", err.nativeEvent)}
/>

@onka13
Copy link

onka13 commented Dec 25, 2018

I've checked with Ad Request Debugger on Facebook.

image
https://developers.facebook.com/docs/audience-network/testing

1012 - Unsupported SDK Version for New Apps

The SDK version in the ad request is no longer supported for new apps. Please upgrade to one of the latest versions of the SDK.

@onka13
Copy link

onka13 commented Dec 26, 2018

Changing audience sdk version to 5+ is working.

  implementation('com.facebook.android:audience-network-sdk:5.1.0') {
    exclude module: 'play-services-ads'
  }

@lock lock bot added the outdated label Jun 24, 2019
@lock lock bot locked and limited conversation to collaborators Jun 24, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants