Skip to content

Commit

Permalink
Update Unity Ads SDK to 4.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
AGulev committed Dec 2, 2021
1 parent 64f901d commit 9e51ece
Show file tree
Hide file tree
Showing 45 changed files with 139 additions and 1,356 deletions.
22 changes: 0 additions & 22 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,28 +85,6 @@ Original Docs [iOS](https://unityads.unity3d.com/help/ios/api-ios#setdebugmode)
local is_debig_mode = unityads.getDebugMode() -- Returns true if current mod is debug
```

#### unityads.get_placement_state()
#### unityads.get_placement_state(placement_id)
Original Docs [iOS](https://unityads.unity3d.com/help/ios/api-ios#unityadsplacementstate) [Android](https://unityads.unity3d.com/help/android/api-android#placementstate)
```lua
```lua
local state = unityads.get_placement_state("rewardedVideo") -- Returns `rewardedVideo` ad state

--possible states:
unityads.PLACEMENT_STATE_READY -- The Placement is ready to show ads.
unityads.PLACEMENT_STATE_NOT_AVAILABLE -- The Placement is not available.
unityads.PLACEMENT_STATE_DISABLED -- The Placement was disabled.
unityads.PLACEMENT_STATE_WAITING -- The Placement is waiting to be ready.
unityads.PLACEMENT_STATE_NO_FILL -- The Placement has no advertisements to show.
```

#### unityads.is_ready()
#### unityads.is_ready(placement_id)
Original Docs [iOS](https://unityads.unity3d.com/help/ios/api-ios#isready) [Android](https://unityads.unity3d.com/help/android/api-android#isready)
```lua
local is_ready = unityads.is_ready("rewardedVideo") -- Returns `true` if rewardedVideo is ready
```

#### unityads.is_initialized()
Original Docs [iOS](https://unityads.unity3d.com/help/ios/api-ios#initialize) [Android](https://unityads.unity3d.com/help/android/api-android#initialize)
```lua
Expand Down
21 changes: 0 additions & 21 deletions defunityads/api/DefUnityAds.script_api
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@
- name: test_mode
type: boolean

- name: enable_per_placement_load
type: boolean

#*****************************************************************************************************

- name: request_idfa
Expand Down Expand Up @@ -50,24 +47,6 @@
- name: get_debug_mode
type: function

#*****************************************************************************************************

- name: get_placement_state
type: function

parameters:
- name: placement_id
type: string

#*****************************************************************************************************

- name: is_ready
type: function

parameters:
- name: placement_id
type: string

#*****************************************************************************************************

- name: is_initialized
Expand Down
8 changes: 1 addition & 7 deletions defunityads/lib/ios/UnityAds.framework/Headers/UADSBanner.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,7 @@ typedef NS_ENUM (NSInteger, UnityAdsBannerPosition) {
*/

@interface UnityAdsBanner : NSObject

/**
* Loads a banner with the default banner placement.
*/
+ (void)loadBanner __attribute__((deprecated));

/**
/*
* Loads the banner with the given placement.
* @param placementId The placement ID, as defined in the Unity Ads admin tools.
*/
Expand Down

This file was deleted.

82 changes: 0 additions & 82 deletions defunityads/lib/ios/UnityAds.framework/Headers/UADSPurchasing.h

This file was deleted.

17 changes: 0 additions & 17 deletions defunityads/lib/ios/UnityAds.framework/Headers/UMONCustomEvent.h

This file was deleted.

15 changes: 0 additions & 15 deletions defunityads/lib/ios/UnityAds.framework/Headers/UMONItem.h

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

31 changes: 0 additions & 31 deletions defunityads/lib/ios/UnityAds.framework/Headers/UMONPromoMetaData.h

This file was deleted.

This file was deleted.

This file was deleted.

25 changes: 0 additions & 25 deletions defunityads/lib/ios/UnityAds.framework/Headers/UPURProduct.h

This file was deleted.

20 changes: 0 additions & 20 deletions defunityads/lib/ios/UnityAds.framework/Headers/UPURStore.h

This file was deleted.

This file was deleted.

Loading

0 comments on commit 9e51ece

Please sign in to comment.