Skip to content

Instantly share code, notes, and snippets.

{
"status": 200,
"message": "Rewarded Returned",
"ad_id": "sg0uyp5zwrgMDxIQlDoiKWvNqif7HU5uo6KXJECgk+I94ANmKigZb5/Hh72aiTvKzToukKI5ZZv6roBHG0mMtCgmStmel7KYUNc6ZTCCmvrTM5Pq4Z/XWZ6OPxj2v6En/s7U5YZY/SipGt9KHTe+As42NW5JzWz1dPLvTzjH82HONnkGCZiZ88qCrH8FftYavz5BdylDbLT4zSKMI2nT4bWlA2RCRZZaNd5kAfEq1bZy0X5DHTDCp3KpbansBkV40dsTekULOBW0WJxKSTLKCT2SjoOoQCAnhlJsuhLgvh9qBrS5H9SDpR2hVokiEk7BnecLLjwAqmT3wOBB8+KSQNdrn6j9NfQ5DGQtFRr/hw/maYEjORh1n3tnGCnNChAvU8l0DNiCm1KUzanr7QWUhzt+LERc/9zafnHw6YJAsMFUdQb40l5mei7ulFlmwbZSV9kxjinI7YkN4yRI90y5U5oeN0xgAr5SG0NIhRApCMS+q+jdxUUpdRwPHf9+hblAf4PV+WWC8NEnIFsyuvlBacxM0jTwJz9DMxoLByw5jO9X7uffnp+ihabZmVDse5EIp41+XxzWjcS+6NdcUwiF6zlrX8PL7Nydt6xh7dSGsSRMk36Tei4XzHCm+pZA5BmKH/emU0uFZUcJ4MBPg+Z52DXcv4iDmPJTAIFs/DTQOJWUSc2P8GTZlwmYUKvCsUv5KGUv9MKH9dl06GWrI0JnpItwVmxMhzbqzOIVO8OZij3iw7x6o52wGt6lDvtPooNix81aHcix3/GsjkK5BHswNS0wJXomMjv1RCfozn/iL0tuJm0dftam9K8oMFUYrbB22JaqvlnzjWF0dwj55ZyvK3mrWO+DJdBxPEO6VfyF01PuBOGfGyW3Uwr628PcDH/vV3tJ3Lc75dLL8SykSREpRSnh5EJOwnhhMj1JeS5PMLIXDn/7EzMnmX3M5oPOo9hong
{
"status": 200,
"message": "publisherCampaign,advertiserCampaign,advertiserConditionSet,advertiserCreative,failureReason\n55415b0943150f5c8232f62c,55415b0943150f5c8232f62c,default,5408018bc26ee4365868486b,eCPM too low 0.0\n55415b0943150f5c8232f62c,5591b6250d60253212cd9ae5,null,,The ad type (interstitial_static, target rewarded_video) is not valid.\n55415b0943150f5c8232f62c,5591b6250d60253212cd9ae5,null,,Maximum daily (rewarded + video interstitial) limit, shown 23 from 20 cap\n55415b0943150f5c8232f62c,55662ead0d602512781815cf,null,,The ad type (interstitial_static, target rewarded_video) is not valid.\n55415b0943150f5c8232f62c,55662ead0d602512781815cf,null,,Maximum daily (rewarded + video interstitial) limit, shown 23 from 20 cap\n55415b0943150f5c8232f62c,555b9c5143150f786555670a,null,,The ad type (interstitial_static, target rewarded_video) is not valid.\n55415b0943150f5c8232f62c,555b9c5143150f786555670a,null,,Maximum daily (rewarded + video interstitial) limit, shown 23 from 20 cap\n55415b0943150f5c8232f
@sat2eesh
sat2eesh / gist:f5ce46df1289caebd73cb4fec8692cc5
Created April 4, 2016 18:05
API CONFIG Response Structure
{
"status": 200,
"response": {
"webview": {
"directories": ["templates", "videos"],
"enabled": true,
"version": "v2",
"cacheMaxBytes": 52428800,
"cacheMaxUnits": 10,
"cacheTTLs": 604800
{
"status": 200,
"message": "Success",
"cache_assets": {
"templates": [{
"template": "56b8f05e346b5215925852ac",
"elements": [{
"name": "c73d8cdb26eda517cb2c293f1622056ae727cffc",
"type": "html",
"value": "https://t.chartboost.com/base_templates/html/c73d8cdb26eda517cb2c293f1622056ae727cffc"
{
"status": 200,
"response": {
"webview": {
"directories": ["templates", "videos"],
"enabled": true,
"version": "v2",
"cacheMaxBytes": 52428800,
"cacheMaxUnits": 10,
"cacheTTLs": 0
{
"status": 200,
"videos": [{
"id": "56994e6f2fdf3461bdf3b5c4_568-1452887663.mp4",
"video": "http://s3.amazonaws.com/chartboost_imports/production/b365be945938476e8b19faf3ec3222a7.mp4"
}, {
"id": "5408018bc26ee4365868486b_568-1411069049.mp4",
"video": "http://s3.amazonaws.com/chartboost_imports/production/b365be945938476e8b19faf3ec3222a7.mp4"
}, {
"id": "56098edcc909a65ed350191a_568-1443467017.mp4",
@sat2eesh
sat2eesh / gist:de050edf93386314d52d
Created December 9, 2015 23:53
TwoDots Apk Logs
Last login: Wed Dec 9 13:56:48 on ttys000
sathishs-mbp-2:~ sathishvenkatesan$ adb logcat
--------- beginning of crash
E/AndroidRuntime(18921): FATAL EXCEPTION: libraries-thread
E/AndroidRuntime(18921): Process: com.android.vending, PID: 18921
E/AndroidRuntime(18921): java.lang.RuntimeException: Package manager has died
E/AndroidRuntime(18921): at android.app.ApplicationPackageManager.getInstalledPackages(ApplicationPackageManager.java:506)
E/AndroidRuntime(18921): at android.app.ApplicationPackageManager.getInstalledPackages(ApplicationPackageManager.java:496)
E/AndroidRuntime(18921): at com.google.android.finsky.appstate.PackageManagerRepository.getAllBlocking(PackageManagerRepository.java:80)
E/AndroidRuntime(18921): at com.google.android.finsky.appstate.AppStatesReplicator.internalReplicate(AppStatesReplicator.java:142)
@sat2eesh
sat2eesh / java
Last active October 20, 2015 20:12
Chartboost Integration
public class SampleActivity extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
requestWindowFeature(Window.FEATURE_NO_TITLE);
//SDK Initialization is done here and is called only once on the main launcher activity
Chartboost.startWithAppId(this, getResources().getString(R.string.appId), getResources().getString(R.string.appSignature));
//Mediation library name and version is set after sdk intialization and is called only once
// Run the following on any mongodb shell.
// example server mongo-integration8-e1a-001
//Update app and sdk version
use chartboost;
var appId = "553d648a43150f1485fa92b2";
db.sdk_configurations.update(
{
"app_id": ObjectId(appId)
"sdk_version" : "6.0.1",
@sat2eesh
sat2eesh / WebView Prefetch Template
Created August 7, 2015 22:32
WebView Prefetch Template Response body structure
{
"status": 200,
"message": "Success.",
"ad_units": [{
"id": "fbcc85973f54a22140d82bc6b8079996283be517",
"elements": [{
"name": "286e38670846a1ad9c51f998eba3b5bb2438b5b1",
"type": "asset",
"value": "http://t.chartboost.com/templates/asset/286e38670846a1ad9c51f998eba3b5bb2438b5b1"
}, {