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

UnityADS does not load selected zone

Discussion in 'Unity Ads & User Acquisition' started by yogamen, Feb 12, 2016.

  1. yogamen

    yogamen

    Joined:
    Jan 22, 2016
    Posts:
    2
    hi to all,
    iOS integration. My integration id is: "rewarded video" in set zone, but in logs always i can see "video" - why it loads wrong settings? in my settings Skipping is disabled, but i get ads with skipping buttons.

    my code:

    -(void) startUnityAds {
    NSString *gameID = @"1031***";
    [[UnityAds sharedInstance] startWithGameId:gameID andViewController:[CCDirector sharedDirector]];
    [[UnityAds sharedInstance] setDelegate:self];
    [[UnityAds sharedInstance] setZone:mad:"rewarded video"];
    }


    LOGS:

    2016-02-11 21:53:10.931 ZombieBasketball[8341:4976917] Initializing Unity Ads version 1506 with gameId 1031132
    2016-02-11 21:53:10.991 ZombieBasketball[8341:4977051] Requesting Unity Ads ad plan from https://impact.applifier.com/mobile...pe=CTRadioAccessTechnologyLTE&encrypted=false
    2016-02-11 21:53:11.709 ZombieBasketball[8341:4977051] Unity Ads initialized with 21 campaigns and 2 zones
    2016-02-11 21:53:12.262 ZombieBasketball[8341:4977052] Create ad units from existing data. adunits=0 path=/var/mobile/Containers/Data/Application/FFC29C10-0653-4A59-9DD6-71BC903FB0D8/Library/Caches/CBPrefetchCacheFolder/ad_units
    2016-02-11 21:53:12.820 ZombieBasketball[8341:4976917] unityDelegate unityAdsFetchCompleted
    2016-02-11 21:53:12.822 ZombieBasketball[8341:4976917] Unity Ads is ready to show ads
    2016-02-11 21:53:12.827 ZombieBasketball[8341:4976917] Launching ad from video, options: {
    "id" : "video",
    "defaultRewardItem" : {
    "name" : "Default reward item",
    "picture" : "https:\/\/static.applifier.com\/unityads\/unityicon_62.png",
    "key" : "default"
    },
    "noOfferScreen" : true,
    "rewardItems" : [
    {
    "name" : "Default reward item",
    "picture" : "https:\/\/static.applifier.com\/unityads\/unityicon_62.png",
    "key" : "default"
    }
    ],
    "allowSkipVideoInSeconds" : 5,
    "default" : true,
    "openAnimated" : false,
    "useDeviceOrientationForVideo" : false,
    "disableBackButtonForSeconds" : 30,
    "incentivised" : false,
    "allowClientOverrides" : [
    "noOfferScreen",
    "openAnimated",
    "muteVideoSounds",
    "useDeviceOrientationForVideo"
    ],
    "enabled" : true,
    "deleted" : false,
    "muteVideoSounds" : false,
    "allowVideoSkipInSeconds" : 5,
    "name" : "Video"
    }
    2016-02-11 21:53:12.827 ZombieBasketball[8341:4976917] pause sound
    2016-02-11 21:53:12.861 ZombieBasketball[8341:4976917] unityDelegate unityAdsWillShow
    2016-02-11 21:53:12.971 ZombieBasketball[8341:4976917] unityDelegate unityAdsDidShow
    2016-02-11 21:53:13.118 ZombieBasketball[8341:4976917] unityDelegate unityAdsVideoStarted
    2016-02-11 21:53:13.121 ZombieBasketball[8341:4976980] Unity Ads video position: video_start, gamer id: 563b7ce83e60387a007f0715
    2016-02-11 21:53:13.159 ZombieBasketball[8341:4976917] unityDelegate unityAdsVideoStarted
    2016-02-11 21:53:13.159 ZombieBasketball[8341:4976993] Unity Ads video position: first_quartile, gamer id: 563b7ce83e60387a007f0715
    2016-02-11 21:53:17.671 ZombieBasketball[8341:4977065] Unity Ads video position: mid_point, gamer id: 563b7ce83e60387a007f0715
    2016-02-11 21:53:17.674 ZombieBasketball[8341:4977065] Unity Ads video position: third_quartile, gamer id: 563b7ce83e60387a007f0715
    2016-02-11 21:53:19.174 ZombieBasketball[8341:4976917] unityDelegate unityAdsWillHide
     
    Last edited: Feb 12, 2016
  2. solomonli

    solomonli

    Unity Technologies

    Joined:
    Mar 4, 2016
    Posts:
    10
    Hi yogamen,

    A zone id is the generated under "INTEGRATION ID" column in your UnityAds dashboard.
    When generating this id, it automatically removed spaces as you were typing in the zone's name.
    So I think you may using a wrong zone id, and "video" is just loading the default one, please kindly check your UnityAds dashboard carefully and hope you can find the trick soon.

    Hope it's helpful.

    Cheers
    Solomon
     
    unity-nikkolai likes this.