The app's keys

Hello everyone

I’m trying to insert ads with appodeal but I’m a bit involved with points:

  1. The key I need here:

    appodeal.init( adListener, { appKey=appKey } )

Is that provided by stores or appodeal? Where do I find it? (android and iOS)

2.The keystore that asks me in the build what is it? Where do I find it? (android and iOS)

3.The keyalias that asks me in the build what is it? Where do I find it? (android and iOS)

I would read the documentation - https://docs.coronalabs.com/plugin/appodeal/init.html

I tried but I got the following error

“OOps! You sent request from invalid Bundle_id. Please make sure that app bundle  id matches what you have set up in dashboard”

Hi @maximo97. Perhaps you are trying to integrate ads before you have other administrative things complete.

On iOS, you can of course use a generic ID while developing your app, but before you can really integrate anything external, you will need to create a developer certificate, an AppID which generates a Bundle ID, and a provisioning profile. You will need to provide Appodeal the bundle ID which is something like com.yourdomain.yourappname. Then when you build using the simulator, pick the right provisioning profile and you should be good to go.

On Android, you just make up the Package Name which should follow the same com.yourdomain.yourappname format. You can continue to use the debug keystore, but at some point you will want to switch to a production keystore.

See:

https://docs.coronalabs.com/guide/distribution/iOSBuild/index.html

and

https://docs.coronalabs.com/guide/distribution/androidBuild/index.html

Rob

Thank you rob.

I write code a lot but these passages are new to me. I think I can handle it with the guides. Only one last question I have already purchased licenses, to get the various keys, I need to release the game?

I’m not sure I understand the question.

Before you can release, you will have to pay Apple for a developer account, which is $99USD + Tax / Year.  You will need to have a Google developer account before you can publish to Google (and get into their portal). I believe that is a $25 USD + tax one time fee.

Rob

Ok then I did a try now.

I purchased the google play license.

Created an app on appodeal, synced to adMob. Then I took the sample code and put in the appodeal key of my test app. When I built the app I put the same appodeal build. However when I try to see the uploaded publicity but it does not show anything … what’s wrong?

Before telling me that I did not set up payments on adMob, now I did but I still do not give the publicity…

Ok after one night I managed to fix it.

I have a simplest question now, i’m sorry if i use this topic. When I ask for a video rewarded sometimes charge a while then it shows nothing, there is a way to wait until the video is not loaded

There are two ways to know if the video is loaded.

  1. Call the .isLoaded() method. See: https://docs.coronalabs.com/plugin/appodeal/isLoaded.html

  2. Listen for events in your listener function you included in your .init() call.  When any of these events occur:

https://docs.coronalabs.com/plugin/appodeal/event/adsRequest/phase.html

your listener function will get called and passed a table we typically call “event”. That table will have a member called phase that you can test against.

local function appodealListener( event )       if "loaded" == event.phase then            -- now you know the video is loaded.       end end

or something similar.

Rob

If I load the video manually I should do it manually every time?

While in the second way how do I know if she uploaded a video or banner or image?

Which one of the two tips I advise?

Forgive me but I have never posted advertising and I’m a bit disoriented

I thought that Appodeal pre-loaded ads. After you show an ad, it should queue up the next one. I’ll see if I can get confirmation of this behavior.

Rob

@maximo97

Appodeal automatically pre-loads ads for you. You can turn it off for manual loading (not recommended), but if you do you must call load() yourself on every app start and after every time an ad has been shown / failed to load, to make sure ads are constantly available.

As Rob mentioned earlier, to be notified when an ad has been loaded, use the listener and check for the “loaded” event as in the example he posted above. The same listener is called whether you use automatic or manual loading.

It’s recommended that you leave automatic loading turned on as it saves you the trouble of adding loading logic to your app. With automatic loading turned on Appodeal will take care of all loading for you. Just call isLoaded() before showing an ad to check if an ad is available to show().

Thank you very much to both

I did as you said and with the addition of some control everything goes as it should.

As recommended, it is best not to load manualemnte.

I would read the documentation - https://docs.coronalabs.com/plugin/appodeal/init.html

I tried but I got the following error

“OOps! You sent request from invalid Bundle_id. Please make sure that app bundle  id matches what you have set up in dashboard”

Hi @maximo97. Perhaps you are trying to integrate ads before you have other administrative things complete.

On iOS, you can of course use a generic ID while developing your app, but before you can really integrate anything external, you will need to create a developer certificate, an AppID which generates a Bundle ID, and a provisioning profile. You will need to provide Appodeal the bundle ID which is something like com.yourdomain.yourappname. Then when you build using the simulator, pick the right provisioning profile and you should be good to go.

On Android, you just make up the Package Name which should follow the same com.yourdomain.yourappname format. You can continue to use the debug keystore, but at some point you will want to switch to a production keystore.

See:

https://docs.coronalabs.com/guide/distribution/iOSBuild/index.html

and

https://docs.coronalabs.com/guide/distribution/androidBuild/index.html

Rob

Thank you rob.

I write code a lot but these passages are new to me. I think I can handle it with the guides. Only one last question I have already purchased licenses, to get the various keys, I need to release the game?

I’m not sure I understand the question.

Before you can release, you will have to pay Apple for a developer account, which is $99USD + Tax / Year.  You will need to have a Google developer account before you can publish to Google (and get into their portal). I believe that is a $25 USD + tax one time fee.

Rob

Ok then I did a try now.

I purchased the google play license.

Created an app on appodeal, synced to adMob. Then I took the sample code and put in the appodeal key of my test app. When I built the app I put the same appodeal build. However when I try to see the uploaded publicity but it does not show anything … what’s wrong?