/*
AdWhirlDelegateProtocol.h
Copyright 2009 AdMob, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License 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.
*/
#import <CoreLocation/CoreLocation.h>
#import <UIKit/UIKit.h>
@class AdWhirlView;
@protocol AdWhirlDelegate<NSObject>
@required
- (NSString *)adWhirlApplicationKey;
/**
* The view controller with which the ad network will display a modal view
* (web view, canvas), such as when the user clicks on the ad. You must
* supply a view controller. You should return the root view controller
* of your application, such as the root UINavigationController, or
* any controllers that are pushed/added directly to the root view controller.
* For example, if your app delegate has a pointer to the root view controller:
*
* return [(MyAppDelegate *)[[UIApplication sharedApplication] delegate] rootViewController]
*
* will suffice.
*/
- (UIViewController *)viewControllerForPresentingModalView;
@optional
#pragma mark server endpoints
/**
* If you are running your own AdWhirl server instance, make sure you
* implement the following to return the URL that points to the endpoints
* on your server.
*/
- (NSURL *)adWhirlConfigURL;
- (NSURL *)adWhirlImpMetricURL;
- (NSURL *)adWhirlClickMetricURL;
- (NSURL *)adWhirlCustomAdURL;
#pragma mark notifications
/**
* You can listen to callbacks from AdWhirl via these methods. When AdWhirl is
* notified that an ad request is fulfilled, it will notify you immediately.
* Thus, when notified that an ad request succeeded, you can choose to add the
* AdWhirlView object as a subview to your view. This view contains the ad.
* When you are notified that an ad request failed, you are also informed if the
* AdWhirlView is fetching a backup ad. The backup fetching order is specified
* by you in adwhirl.com or your own server instance. When all backup sources
* are attempted and the last ad request still fails, the usingBackup parameter
* will be set to NO. You can use this notification to try again and perhaps
* request another AdWhirlView via [AdWhirlView requestAdWhirlViewWithDelegate:]
*/
- (void)adWhirlDidReceiveAd:(AdWhirlView *)adWhirlView;
- (void)adWhirlDidFailToReceiveAd:(AdWhirlView *)adWhirlView usingBackup:(BOOL)yesOrNo;
/**
* You can get notified when the transition animation to a new ad is completed
* so you can make necessary adjustments to the size of the adWhirlView and
* surrounding views after the animation.
*/
- (void)adWhirlDidAnimateToNewAdIn:(AdWhirlView *)adWhirlView;
/**
* This function is your integration point for Generic Notifications. You can
* control when this notification occurs via the developers member section. You
* can allocate a percentage of your ad requests to initiate this callback. When
* you receive this notification, you can execute any code block that you own.
* For example, you can replace the ad in AdWhirlView after getting this callback
* by calling replaceBannerViewWith: . Note that the ad refresh cycle is still
* alive, so your view could be replaced by other ads when it's time for an
* ad refresh.
*/
- (void)adWhirlReceivedRequestForDeveloperToFufill:(AdWhirlView *)adWhirlView;
/**
* In the event that ads are OFF, you can listen to this callback method to
* determine that ads have been turned off.
*/
- (void)adWhirlReceivedNotificationAdsAreOff:(AdWhirlView *)adWhirlView;
/**
* These notifications will let you know when a user is being shown a full screen
* webview canvas with an ad because they tapped on an ad. You should listen to
* these notifications to determine when to pause/resume your game--if you're
* building a game app.
*/
- (void)adWhirlWillPresentFullScreenModal;
- (void)adWhirlDidDismissFullScreenModal;
/**
* An ad request is a two step process: first the SDK must go to the AdWhirl
* server to retrieve configuration information. Then, based on the configuration
* information, it chooses an ad network and fetch an ad. The following call
* is for users to get notified when the first step is complete. The
* adWhirlView passed could be null if you had called the AdWhirlView class
* method +startPreFetchingConfigurationDataWithDelegate .
*/
- (void)adWhirlDidReceiveConfig:(AdWhirlView *)adWhirlView;
#pragma mark behavior configurations
/**
* Request test ads for APIs that supports it. Make sure you turn it to OFF
* or remove the function before you submit your app to the app store.
*/
- (BOOL)adWhirlTestMode;
/**
* Returns the device's current orientation for ad networks that relys on
* it. If you don't implement this function, [UIDevice currentDevice].orientation
* is used to get the current orientation.
*/
- (UIDeviceOrientation)adWhirlCurrentOrientation;
#pragma mark appearance configurations
- (UIColor *)adWhirlAdBackgroundColor;
- (UIColor *)adWhirlTextColor;
- (UIColor *)adWhirlSecondaryTextColor;
- (UIColor *)backgroundColor DEPRECATED_ATTRIBUTE; // use the one with adWhirl prefix
- (UIColor *)textColor DEPRECATED_ATTRIBUTE; // use the one with adWhirl prefix
#pragma mark hard-coded application keys
- (NSString *)admobPublisherID; // your Publisher ID from Admob.
- (NSDictionary *)quattroWirelessDictionary; // key-value pairs for the keys "publisherID" and "siteID" provided by Quattro Wireless. Set NSString values for these two keys.
- (NSString *)pinchApplicationKey; // your Application Code from Pinch Media.
- (NSDictionary *)videoEggConfigDictionary; // key-value pairs for the keys "publisher" and "area" information from Video Egg. Set NSString values for these two keys.
- (NSString *)millennialMediaApIDString; // your ApID string from Millennial Media.
- (NSString *)MdotMApplicationKey; // your Application Code from MdotM
- (NSString *)googleAdSenseClientID; // your publisher ID from Google AdSense
- (NSString *)zestADZClientID; // your clientID from ZestADZ
- (NSString *)brightRollAppId; // your BrightRoll App ID
- (NSString *)inMobiAppID; // your inMobi app ID
#pragma mark demographic information optional delegate methods
- (CLLocation *)locationInfo; // user's current location
- (NSString *)postalCode; // user's postal code, e.g. "94401"
- (NSString *)areaCode; // user's area code, e.g. "415"
- (NSDate *)dateOfBirth; // user's date of birth
- (NSString *)gender; // user's gender (e.g. @"m" or @"f")
- (NSString *)keywords; // keywords the user has provided or that are contextually relevant, e.g. @"twitter client iPhone"
- (NSString *)searchString; // a search string the user has provided, e.g. @"Jasmine Tea House San Francisco"
- (NSUInteger)incomeLevel; // return actual annual income
#pragma mark QuattroWireless-specific optional delegate methods
/**
* Return the ad type desired for Quattro
* QWAdTypeBanner = 0,
* QWAdTypeText=2,
*/
- (NSUInteger)quattroWirelessAdType;
/**
* Return a value for the education level if you have access to this info. This
* information will be relayed to Quattro Wireless if provided.
* QWEducationNoCollege = 0
* QWEducationCollegeGraduate = 1
* QWEducationGraduateSchool = 2
* QWEducationUnknown = 3
*/
- (NSUInteger)quattroWirelessEducationLevel;
/**
* Return a value for the ethnicity if you have access to this info. This
* information will be relayed to Quattro Wireless if provided.
* QWEthnicGroupAfrican_American = 0
* QWEthnicGroupAsian = 1
* QWEthnicGroupHispanic = 2
* QWEthnicGroupWhite = 3
* QWEthnicGroupOther = 4
*/
- (NSUInteger)quattroWirelessEthnicity;
#pragma mark MillennialMedia-specific optional delegate methods
/**
* Return the
没有合适的资源?快使用搜索试试~ 我知道了~
iOS游戏应用源代码——htroche-CrowdTrivia-170fdd5.zip
共178个文件
h:65个
m:56个
png:25个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 155 浏览量
2023-07-02
15:49:08
上传
评论
收藏 6.57MB ZIP 举报
温馨提示
iOS游戏应用源代码——htroche-CrowdTrivia-170fdd5.zip
资源推荐
资源详情
资源评论
收起资源包目录
iOS游戏应用源代码——htroche-CrowdTrivia-170fdd5.zip (178个子文件)
libAdMob.a 2.24MB
elements 48KB
AdWhirlDelegateProtocol.h 11KB
AdMobDelegateProtocol.h 8KB
AdWhirlView.h 8KB
FBDialog.h 5KB
SBJsonWriter.h 4KB
AdWhirlAdNetworkAdapter.h 4KB
Reachability.h 4KB
AdMobInterstitialAd.h 4KB
FBRequest.h 3KB
AdWhirlConfig.h 3KB
Facebook.h 3KB
AdWhirlCustomAdView.h 3KB
SBJsonParser.h 3KB
SBJsonBase.h 3KB
SBJSON.h 3KB
AdMobView.h 3KB
NSObject+SBJSON.h 3KB
AdWhirlConfigStore.h 2KB
AdWhirlWebBrowserController.h 2KB
CDataScanner.h 2KB
AdWhirlError.h 2KB
NSString+SBJSON.h 2KB
JSON.h 2KB
AdMobInterstitialDelegateProtocol.h 2KB
AdWhirlView+.h 2KB
CJSONScanner.h 2KB
CJSONSerializer.h 2KB
CJSONDataSerializer.h 2KB
AdWhirlAdNetworkConfig.h 2KB
CJSONDeserializer.h 2KB
NSScanner_Extensions.h 2KB
AdWhirlLog.h 2KB
AWNetworkReachabilityWrapper.h 2KB
CDataScanner_Extensions.h 1KB
CSerializedJSONData.h 1KB
NSDictionary_JSONExtensions.h 1KB
NSCharacterSet_Extensions.h 1KB
TriviaBettingiPhoneViewController.h 1KB
FBLoginDialog.h 1KB
AdWhirlAdNetworkAdapter+Helpers.h 1KB
AdWhirlAdapterCustom.h 1KB
ARRollerProtocol.h 1KB
Puzzle.h 1KB
AdWhirlAdNetworkRegistry.h 942B
AWNetworkReachabilityDelegate.h 869B
ARRollerView.h 809B
Game.h 806B
AdWhirlAdapterAdMob.h 806B
PuzzlesViewController.h 801B
UIColor+AdWhirlConfig.h 793B
AdWhirlAdapterIAd.h 790B
AdWhirlClassWrapper.h 777B
Question.h 762B
PuzzleTest.h 753B
AdWhirlAdapterEvent.h 742B
PuzzleParser.h 742B
AdWhirlAdapterGeneric.h 740B
FBConnect.h 706B
QuestionParser.h 668B
PuzzleViewController.h 600B
DataModel.h 598B
TriviaBettingiPhoneAppDelegate.h 549B
User.h 420B
PersistentData.h 367B
MorePuzzlesViewController.h 257B
Board1.jpg 32KB
layout 12KB
LICENSE 34KB
AdWhirlView.m 33KB
FBDialog.m 22KB
Facebook.m 21KB
AdWhirlConfig.m 20KB
CJSONScanner.m 14KB
AdWhirlAdapterCustom.m 14KB
SBJsonParser.m 14KB
TriviaBettingiPhoneViewController.m 11KB
FBRequest.m 11KB
Reachability.m 9KB
AdWhirlConfigStore.m 8KB
SBJsonWriter.m 8KB
AdWhirlWebBrowserController.m 8KB
SBJSON.m 7KB
CJSONDataSerializer.m 7KB
PuzzlesViewController.m 7KB
AdWhirlCustomAdView.m 6KB
AWNetworkReachabilityWrapper.m 6KB
CDataScanner.m 6KB
AdWhirlAdNetworkConfig.m 5KB
AdWhirlAdapterAdMob.m 4KB
PuzzleParser.m 4KB
AdWhirlAdapterIAd.m 4KB
QuestionParser.m 3KB
NSScanner_Extensions.m 3KB
TriviaBettingiPhoneAppDelegate.m 3KB
AdWhirlAdNetworkAdapter+Helpers.m 3KB
FBLoginDialog.m 3KB
CJSONDeserializer.m 3KB
SBJsonBase.m 3KB
共 178 条
- 1
- 2
资源评论
快乐无限出发
- 粉丝: 1139
- 资源: 7289
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功