GBAds 1.1.1

GBAds 1.1.1

TestsTested
LangLanguage Obj-CObjective C
License Apache-2.0
ReleasedLast Release Jun 2019

Maintained by Luka Mirosevic.



 
Depends on:
ChartboostSDK~> 5.0
TapjoySDK~> 10.1
RevMob-Goonbee~> 8.0
GBVersionTracking~> 1.2
GBAnalytics~> 4.0
GBToolbox>= 0
 

GBAds 1.1.1

  • By
  • Luka Mirosevic

GBAds Version License

Abstracts away different interstitial ad network implementations and implements simple mediation logic for maximising fill rates

Supported networks

  • RevMob
  • Chartboost
  • Tapjoy (currently install tracking only)

Usage

First import header:

#import <GBAds/GBAds.h>

Connect to any networks you may want to mediate between in application:didFinishLaunching:withOptions:

//Connect RevMob
[GBAds connectNetwork:GBAdNetworkRevmob withCredentials:@"RevmobAppID"];

//Connect Chartboost
[GBAds connectNetwork:GBAdNetworkChartboost withCredentials:@"ChartboostAppID", @"ChartboostAppSig"];

//Connect Tapjoy
[GBAds connectNetwork:GBAdNetworkTapjoy withCredentials:@"TapjoyAppId", @"TapjoySecret"];

Configure mediation (fallback) logic. In this case the library will attempt to load an ad from revmob 3 times, and then twice from chartboost. Only 1 ad is ever shown and this just defines a fallback scheme. Terminate list with 0!

[GBAds configureAdLogic:GBAdNetworkRevmob, GBAdNetworkRevmob, GBAdNetworkRevmob, GBAdNetworkChartboost, GBAdNetworkChartboost, 0];

Show an ad, call this anywhere:

[GBAds showAd];

Options:

[GBAds enableDebug:YES];				//prints debug info to console, defaults to NO
[GBAds enableAds:NO];					//temporarily lets you enable/disable ads, e.g. while during an in-app flow, defaults to YES. If this is set to NO, then [GBAds showAd] does nothing.
[GBAds showAdsDuringFirstSession:NO];	//Allows you to specify whether or not to show an ad on the first ever app launch, defaults to YES

Dependencies

Copyright & License

Copyright 2014 Luka Mirosevic

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this work except in compliance with the License. You may obtain a copy of the License in the LICENSE file, or at:

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.