Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Mobile Cross Promo - Get more downloads using your previous released games

Discussion in 'Assets and Asset Store' started by GleyGames, Jul 8, 2019.

  1. GleyGames

    GleyGames

    Joined:
    Oct 16, 2015
    Posts:
    481
    Mobile Cross Promo
    Use your old and successful games to promote the new one

    Gley-Social.png
    Get it from: Asset Store - Mobile Cross Promo
    For detailed implementation instruction see the Documentation


    Key features:
    • Easily cross promote and increase popularity for all of your published games.
    • Dynamically change the promoted games, using a configuration file stored on a server of your choice.
    • Automatically adjusts resolution for both Landscape and Portrait mode.
    • Supports multiple promo image for the same game.
    • Option to stop showing after image is clicked.
    • Option to stop showing after a number of display times.
    • Option to show popup only once per session.
    • Images are cached offline so if the settings file is not accessible next time, the cross promo will be shown even if without network connection.
    • Full code and demo scenes included.
    • Works with Unity 5.6.6 and above with Free, Plus or Pro license.
    Currently supported platforms:
    • Android
    • iOS
    All setup is done in a Settings Window:

    SettingsWindow.jpg

    Simple code that works for any platforms without any change

    • Load Cross Promo file and images and display the popup right after loading is done:
    Code (CSharp):
    1. CrossPromo.Instance.AutoShowPopupWhenReady(PopupClosed);
    2. /// <summary>
    3. /// Triggered when popup is closed
    4. /// </summary>
    5. /// <param name="imageClicked">true if popup was clicked, false if popup was closed by pressing X</param>
    6. /// <param name="imageName">the name of the clicked image, good for analytics</param>
    7. private void PopupClosed(bool imageClicked, string imageName)
    8. {
    9.       Debug.Log("Popup closed");
    10.       if (imageClicked)
    11.       {
    12.             Debug.Log("Image name " + imageName + " was clicked");
    13.       }
    14. }
    • Load Cross Promo images without showing the popup
    Code (CSharp):
    1. CrossPromo.Instance.Initialize(InitializationComplete);
    2. /// <summary>
    3. /// Triggered when all images are loaded
    4. /// </summary>
    5. /// <param name="error">error message</param>
    6. private void InitializationComplete(bool success, string error)
    7. {
    8.       if (success)
    9.       {
    10.             Debug.Log("Load Success");
    11.       }
    12.       else
    13.       {
    14.             Debug.Log(error);
    15.       }
    16. }
    • Show Cross Promo Popup when all settings from Settings Window are met
    Code (CSharp):
    1. CrossPromo.Instance.ShowCrossPromoPopup(PopupClosed);
    • Show Cross Promo Popup bypassing the settings from Settings Window
    Code (CSharp):
    1.  CrossPromo.Instance.ForceShowPopup(PopupClosed);
     
    Adswars likes this.
  2. Adswars

    Adswars

    Joined:
    Jun 28, 2015
    Posts:
    13
    It seem I need a server to use this asset.
    is it possible to make an option to use local file?
     
    Last edited: Jul 11, 2019
  3. GleyGames

    GleyGames

    Joined:
    Oct 16, 2015
    Posts:
    481
    Hello,
    Yes you need a server. The reason you need a server is because the device that has your app, has to download the picture otherwise it has nothing to display. Using a server you can dynamically change your promotional game without updating all your apps.

    A local file is not accessible for your players.

    You want this popup to always display the same picture and promote the same game without the possibility to change it? Or if you want to change it to make another build?

    Hope this makes it clear. Let us know if you have more questions.
     
    Adswars likes this.
  4. Adswars

    Adswars

    Joined:
    Jun 28, 2015
    Posts:
    13
    Great! I got your point.
    Few more questions
    - Can I host the files on Dropbox / Onedrive or other similar services?
    - Do you have a plan to make back-end system for it?
     
  5. Nouman1007

    Nouman1007

    Joined:
    Nov 11, 2016
    Posts:
    1
    Hello, I tried to use dropbox and google drive as servers but i got this error.
     

    Attached Files:

  6. GleyGames

    GleyGames

    Joined:
    Oct 16, 2015
    Posts:
    481
    Hello,
    Can you tell us what Unity version are you using?
    Also can you send us the link to your file? You can use gley.mobi@gmail.com to send the link if you do not want to post it publicly.
     
  7. wmwhonest

    wmwhonest

    Joined:
    Feb 5, 2018
    Posts:
    3
    Hi, Can we show more than one game to promote through this template?
     
  8. GleyGames

    GleyGames

    Joined:
    Oct 16, 2015
    Posts:
    481
    Hello,
    Only one game at the time. But if you want to change the game you just have to update the file on your servers and your game will change in all games that are using this asset. So each day you can promote another game.
     
  9. GleyGames

    GleyGames

    Joined:
    Oct 16, 2015
    Posts:
    481
  10. Kagedmonkey40

    Kagedmonkey40

    Joined:
    Feb 2, 2016
    Posts:
    6
    Great asset!
    Is there a way I can tell if the Cross Promo is being shown? I am having a problem that when user clicks on add OR closes it the items behind it on screen are also getting the click. I just need to add in a check on those so that they do not react if cross promo is visible.
     
  11. GleyGames

    GleyGames

    Joined:
    Oct 16, 2015
    Posts:
    481
    Hello,
    Currently there is no such a method, but you can make it using one minor change:
    Go to CrossPromo.cs, line 85 an put public in front of bool ReadyToShow() method

    and then you can do something like this:
    if(CrossPromo.Instance.ReadyToShow())
    {
    //the popup is will be active now so stop your clicks
    CrossPromo.Instance.ShowCrossPromoPopup();
    }
     
  12. scorpionfeast

    scorpionfeast

    Joined:
    Dec 5, 2014
    Posts:
    18
    Hello, I have tried using it with dropbox link or own server link everytime i am unable to download the crosspromo file
     
  13. GleyGames

    GleyGames

    Joined:
    Oct 16, 2015
    Posts:
    481
    Dropbox does not work, your own setver should be fine, make sure your file is public. if you paste the link insede a web browser you need to be able to see the content of your file dirrectly, withoud pressing aditional buttons and it will work