ppgee / cocos-pnp

Cocos Playable Ads in Multi-Network(facebook, google, unity, tiktok etc.)
MIT License
101 stars 50 forks source link

Not work in Facebook PlayableAds #9

Closed KimihideIiizumi closed 8 months ago

KimihideIiizumi commented 8 months ago

Hi, We use your nice library in CocosCreator3.6.1.

In this time, I made facebook playable ads, but can't play in facebook playable preview.

It only shows splashscreen and has a 2mb file size error. However, my file size is not even 1mb.

I know these two problems are separate, but can you give me your opinion on each?

Thank you.

ppgee commented 8 months ago

Could you confirm that the built package can be run locally?

If the file is small than 1mb, you could set the config isZip to false. (isZip is true default)

KimihideIiizumi commented 8 months ago

I can confirm that the built package starts locally, nothing wrong with Applovin or Mintegral's Playable Preview.

And even if I remove isZip, the error is still there, although it does not reach 2mb.

ppgee commented 8 months ago

Does "not reach 2MB in size" refer to the size of each individual file or the overall size of the compressed folder? The potential issue at the moment is that if any file within the uncompressed folder exceeds 2MB, it may not pass the detection on Facebook.

KimihideIiizumi commented 8 months ago

It means that the individual file size before compression does not exceed 2 mb.

The error occurs even though I created a new project and built it with only the libraries included and none of them exceed 2mb.

Does it work fine in your environment?

ppgee commented 8 months ago

Try this new version of the plugin. I fixed it not long ago. here

KimihideIiizumi commented 8 months ago

Thanks a lot, but the problem still seems to remain.

ppgee commented 8 months ago

I've tested it with the latest version, and it passes. Could you see if you need to further reduce or compress the project resources?

image
KimihideIiizumi commented 8 months ago

I see that it is working correctly in your environment.

It would be possible to pull out a few features, but I don't think further reduction of empty projects will solve the problem. This is my build with an empty project, and this is causing 2mb errors.

Facebook.zip

If you don't mind, could you try to see if this build also causes problems with your previewtool? this build used the latest libraries you have prepared.

ppgee commented 8 months ago

It works.

image

I see that it is working correctly in your environment.

It would be possible to pull out a few features, but I don't think further reduction of empty projects will solve the problem. This is my build with an empty project, and this is causing 2mb errors.

Facebook.zip

If you don't mind, could you try to see if this build also causes problems with your previewtool? this build used the latest libraries you have prepared.

KimihideIiizumi commented 8 months ago

I changed the PC I am using and tried it, and for some reason the file size issue was resolved, thank you.

However, I still don't understand the issue of the screen not changing from the splash screen.

Looking at your screenshot, it seems to work fine in your app, but in the file I gave you, it doesn't seem to change from the splash screen.

KimihideIiizumi commented 8 months ago

This problem was fixed after updating CocosCreator from 3.6.1 to 3.8.1.

Thanks for your generous support.