-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
jenkins
committed
Sep 25, 2024
1 parent
360f90a
commit 550e059
Showing
83 changed files
with
587 additions
and
187 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
...diation/KotlinSample/app/src/main/java/com/pubmatic/openwrap/kotlinsampleapp/Constants.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/* | ||
* PubMatic Inc. ("PubMatic") CONFIDENTIAL | ||
* Unpublished Copyright (c) 2006-2024 PubMatic, All Rights Reserved. | ||
* | ||
* NOTICE: All information contained herein is, and remains the property of PubMatic. The intellectual and technical concepts contained | ||
* herein are proprietary to PubMatic and may be covered by U.S. and Foreign Patents, patents in process, and are protected by trade secret or copyright law. | ||
* Dissemination of this information or reproduction of this material is strictly forbidden unless prior written permission is obtained | ||
* from PubMatic. Access to the source code contained herein is hereby forbidden to anyone except current PubMatic employees, managers or contractors who have executed | ||
* Confidentiality and Non-disclosure agreements explicitly covering such access or to such other persons whom are directly authorized by PubMatic to access the source code and are subject to confidentiality and nondisclosure obligations with respect to the source code. | ||
* | ||
* The copyright notice above does not evidence any actual or intended publication or disclosure of this source code, which includes | ||
* information that is confidential and/or proprietary, and is a trade secret, of PubMatic. ANY REPRODUCTION, MODIFICATION, DISTRIBUTION, PUBLIC PERFORMANCE, | ||
* OR PUBLIC DISPLAY OF OR THROUGH USE OF THIS SOURCE CODE WITHOUT THE EXPRESS WRITTEN CONSENT OF PUBMATIC IS STRICTLY PROHIBITED, AND IN VIOLATION OF APPLICABLE | ||
* LAWS AND INTERNATIONAL TREATIES. THE RECEIPT OR POSSESSION OF THIS SOURCE CODE AND/OR RELATED INFORMATION DOES NOT CONVEY OR IMPLY ANY RIGHTS | ||
* TO REPRODUCE, DISCLOSE OR DISTRIBUTE ITS CONTENTS, OR TO MANUFACTURE, USE, OR SELL ANYTHING THAT IT MAY DESCRIBE, IN WHOLE OR IN PART. | ||
*/ | ||
|
||
package com.pubmatic.openwrap.kotlinsampleapp | ||
|
||
/** | ||
* Constants used in other activities | ||
*/ | ||
object Constants { | ||
const val PUB_ID = "156276" | ||
const val PROFILE_ID = 1165 | ||
const val PROFILE_ID_FOR_VIDEO = 1757 | ||
const val OWSDK_INITIALIZATION_SUCCESSFUL = "OpenWrap SDK initialization successful" | ||
const val OWSDK_INITIALIZATION_FAILED = "OpenWrap SDK initialization failed with error : " | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
50 changes: 50 additions & 0 deletions
50
...KotlinSample/app/src/main/java/com/pubmatic/openwrap/kotlinsampleapp/OpenWrapSampleApp.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
/* | ||
* PubMatic Inc. ("PubMatic") CONFIDENTIAL | ||
* Unpublished Copyright (c) 2006-2024 PubMatic, All Rights Reserved. | ||
* | ||
* NOTICE: All information contained herein is, and remains the property of PubMatic. The intellectual and technical concepts contained | ||
* herein are proprietary to PubMatic and may be covered by U.S. and Foreign Patents, patents in process, and are protected by trade secret or copyright law. | ||
* Dissemination of this information or reproduction of this material is strictly forbidden unless prior written permission is obtained | ||
* from PubMatic. Access to the source code contained herein is hereby forbidden to anyone except current PubMatic employees, managers or contractors who have executed | ||
* Confidentiality and Non-disclosure agreements explicitly covering such access or to such other persons whom are directly authorized by PubMatic to access the source code and are subject to confidentiality and nondisclosure obligations with respect to the source code. | ||
* | ||
* The copyright notice above does not evidence any actual or intended publication or disclosure of this source code, which includes | ||
* information that is confidential and/or proprietary, and is a trade secret, of PubMatic. ANY REPRODUCTION, MODIFICATION, DISTRIBUTION, PUBLIC PERFORMANCE, | ||
* OR PUBLIC DISPLAY OF OR THROUGH USE OF THIS SOURCE CODE WITHOUT THE EXPRESS WRITTEN CONSENT OF PUBMATIC IS STRICTLY PROHIBITED, AND IN VIOLATION OF APPLICABLE | ||
* LAWS AND INTERNATIONAL TREATIES. THE RECEIPT OR POSSESSION OF THIS SOURCE CODE AND/OR RELATED INFORMATION DOES NOT CONVEY OR IMPLY ANY RIGHTS | ||
* TO REPRODUCE, DISCLOSE OR DISTRIBUTE ITS CONTENTS, OR TO MANUFACTURE, USE, OR SELL ANYTHING THAT IT MAY DESCRIBE, IN WHOLE OR IN PART. | ||
*/ | ||
|
||
package com.pubmatic.openwrap.kotlinsampleapp | ||
|
||
import android.util.Log | ||
import androidx.multidex.MultiDexApplication | ||
import com.pubmatic.sdk.common.OpenWrapSDK | ||
import com.pubmatic.sdk.common.OpenWrapSDKConfig | ||
import com.pubmatic.sdk.common.OpenWrapSDKInitializer | ||
import com.pubmatic.sdk.common.POBError | ||
|
||
/** | ||
* OpenWrapSampleApp Application class to Initialize SDK | ||
*/ | ||
class OpenWrapSampleApp : MultiDexApplication() { | ||
|
||
private val TAG = "OpenWrap" | ||
override fun onCreate() { | ||
super.onCreate() | ||
|
||
// Call the initialize method to warm up the OpenWrap SDK. | ||
OpenWrapSDK.initialize( | ||
applicationContext, | ||
OpenWrapSDKConfig.Builder(Constants.PUB_ID,listOf(Constants.PROFILE_ID)).build(), | ||
object : OpenWrapSDKInitializer.Listener { | ||
override fun onSuccess() { | ||
Log.i(TAG, Constants.OWSDK_INITIALIZATION_SUCCESSFUL) | ||
} | ||
|
||
override fun onFailure(error: POBError) { | ||
Log.e(TAG, Constants.OWSDK_INITIALIZATION_FAILED + error.toString()) | ||
} | ||
}) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
OpenWrap/Advance/In-House-Mediation/KotlinSample/build.gradle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
49 changes: 49 additions & 0 deletions
49
...Wrap/Advance/ListApp/app/src/main/java/com/pubmatic/openwrap/listapp/OpenWrapSampleApp.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
/* | ||
* PubMatic Inc. ("PubMatic") CONFIDENTIAL | ||
* Unpublished Copyright (c) 2006-2024 PubMatic, All Rights Reserved. | ||
* | ||
* NOTICE: All information contained herein is, and remains the property of PubMatic. The intellectual and technical concepts contained | ||
* herein are proprietary to PubMatic and may be covered by U.S. and Foreign Patents, patents in process, and are protected by trade secret or copyright law. | ||
* Dissemination of this information or reproduction of this material is strictly forbidden unless prior written permission is obtained | ||
* from PubMatic. Access to the source code contained herein is hereby forbidden to anyone except current PubMatic employees, managers or contractors who have executed | ||
* Confidentiality and Non-disclosure agreements explicitly covering such access or to such other persons whom are directly authorized by PubMatic to access the source code and are subject to confidentiality and nondisclosure obligations with respect to the source code. | ||
* | ||
* The copyright notice above does not evidence any actual or intended publication or disclosure of this source code, which includes | ||
* information that is confidential and/or proprietary, and is a trade secret, of PubMatic. ANY REPRODUCTION, MODIFICATION, DISTRIBUTION, PUBLIC PERFORMANCE, | ||
* OR PUBLIC DISPLAY OF OR THROUGH USE OF THIS SOURCE CODE WITHOUT THE EXPRESS WRITTEN CONSENT OF PUBMATIC IS STRICTLY PROHIBITED, AND IN VIOLATION OF APPLICABLE | ||
* LAWS AND INTERNATIONAL TREATIES. THE RECEIPT OR POSSESSION OF THIS SOURCE CODE AND/OR RELATED INFORMATION DOES NOT CONVEY OR IMPLY ANY RIGHTS | ||
* TO REPRODUCE, DISCLOSE OR DISTRIBUTE ITS CONTENTS, OR TO MANUFACTURE, USE, OR SELL ANYTHING THAT IT MAY DESCRIBE, IN WHOLE OR IN PART. | ||
*/ | ||
|
||
package com.pubmatic.openwrap.listapp | ||
|
||
import android.util.Log | ||
import androidx.multidex.MultiDexApplication | ||
import com.pubmatic.sdk.common.OpenWrapSDK | ||
import com.pubmatic.sdk.common.OpenWrapSDKConfig | ||
import com.pubmatic.sdk.common.OpenWrapSDKInitializer | ||
import com.pubmatic.sdk.common.POBError | ||
|
||
/** | ||
* OpenWrapSampleApp Application class to Initialize SDK | ||
*/ | ||
class OpenWrapSampleApp : MultiDexApplication() { | ||
|
||
private val TAG = "OpenWrap" | ||
override fun onCreate() { | ||
super.onCreate() | ||
// Call the initialize method to warm up the OpenWrap SDK. | ||
OpenWrapSDK.initialize( | ||
applicationContext, | ||
OpenWrapSDKConfig.Builder(Constants.PUB_ID,listOf(Constants.PROFILE_ID)).build(), | ||
object : OpenWrapSDKInitializer.Listener { | ||
override fun onSuccess() { | ||
Log.i(TAG, Constants.OWSDK_INITIALIZATION_SUCCESSFUL) | ||
} | ||
|
||
override fun onFailure(error: POBError) { | ||
Log.e(TAG, Constants.OWSDK_INITIALIZATION_FAILED + error.toString()) | ||
} | ||
}) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.