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

Error code 400 occurred, but AD view is not removed automatically #38

Open
songhailiang opened this issue Sep 17, 2019 · 0 comments
Open

Comments

@songhailiang
Copy link

Hi,
I'm using GoogleAds-IMA-iOS-SDK 3.9.2 with CocoaPods to play a pre-roll video ad.
Sometimes, when it failed to play a video ad, the SDK report an error with code 400, but it did not remove the AD view.
I got the error message in this delegate:

func adsManager(_ adsManager: IMAAdsManager!, didReceive event: IMAAdEvent!)

the event.type is IMAAdEventType.LOG,
the event.adData is as below:

["logData": {
    errorCode = 400;
    errorMessage = "There was an error playing the video ad.";
    type = adPlayError;
}, "adData": {
}

When this error happened, it will not call the didReceiveAdError delegate:

func adsManager(_ adsManager: IMAAdsManager!, didReceive error: IMAAdError!)

I think this might be a bug of the SDK, when playing a video ad failed, it should tell the app the error and let the app to continue to play the video.

Could someone help to confirm this?
BTW, i'm using Swift

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant