//
// GADRequest.h
// Google AdMob Ads SDK
//
// Copyright 2011 Google Inc. All rights reserved.
//
#import <CoreGraphics/CoreGraphics.h>
#import <Foundation/Foundation.h>
// Constant for getting test ads on the simulator using the testDevices method.
#define GAD_SIMULATOR_ID @"Simulator"
// Genders to help deliver more relevant ads.
typedef enum {
kGADGenderUnknown,
kGADGenderMale,
kGADGenderFemale
} GADGender;
// Specifies optional parameters for ad requests.
@interface GADRequest : NSObject <NSCopying>
// Creates an autoreleased GADRequest.
+ (GADRequest *)request;
// Passes extra details in ad requests.
//
// One case is for Ad Network Mediation. Some Ad Networks may ask for additional
// information about the ad request. Consult with the individual Ad Network
// on what to send. Place the information in a dictionary and put that in
// another dictionary under the key "mediation". An example might be:
//
// additionalParameters = {
// mediation: {
// MyAdNetwork: {
// market_segment: "abc",
// some_info: "xyz",
// some_num: 1000
// },
// AdNetworkX: {
// key1: "val1",
// key2: "val2"
// }
// }
// }
//
// To create such a dictionary, do the following:
//
// NSDictionary *myAdNetwork = [NSDictionary dictionaryWithObjectsAndKeys:
// @"abc", @"market_segment",
// @"xyz", @"some_info",
// [NSNumber numberWithInt:1000], @"some_num",
// nil];
// NSDictionary *adNetwokX = [NSDictionary dictionaryWithObjectsAndKeys:
// @"val1", @"key1",
// @"val2", @"key2",
// nil];
// NSDictionary *mediation = [NSDictionary dictionaryWithObjectsAndKeys:
// myAdNetwork, @"MyAdNetwork",
// adNetwokX, @"AdNetworkX",
// nil];
// NSDictionary *params = [NSDictionary dictionaryWithObjectsAndKeys:
// mediation, @"mediation",
// nil];
// gadRequest.additionalParameters = params;
@property (nonatomic, retain) NSDictionary *additionalParameters;
#pragma mark Collecting SDK Information
// Returns the version of the SDK.
+ (NSString *)sdkVersion;
#pragma mark Testing
// Test ads are returned to these devices. Device identifiers are the same used
// to register as a development device with Apple. To obtain a value open the
// Organizer (Window -> Organizer from Xcode), control-click or right-click on
// the device's name, and choose "Copy Device Identifier". Alternatively you
// can obtain it through code using [[UIDevice currentDevice] uniqueIdentifier].
//
// For example:
// request.testDevices = [NSArray arrayWithObjects:
// GAD_SIMULATOR_ID, // Simulator
// //@"28ab37c3902621dd572509110745071f0101b124", // Test iPhone 3G 3.0.1
// @"8cf09e81ef3ec5418c3450f7954e0e95db8ab200", // Test iPod 4.3.1
// nil];
@property (nonatomic, retain) NSArray *testDevices;
#pragma mark User Information
// The user's gender may be used to deliver more relevant ads.
@property (nonatomic, assign) GADGender gender;
// The user's birthday may be used to deliver more relevant ads.
@property (nonatomic, retain) NSDate *birthday;
- (void)setBirthdayWithMonth:(NSInteger)m day:(NSInteger)d year:(NSInteger)y;
// The user's current location may be used to deliver more relevant ads.
// However do not use Core Location just for advertising, make sure it is used
// for more beneficial reasons as well. It is both a good idea and part of
// Apple's guidelines.
- (void)setLocationWithLatitude:(CGFloat)latitude longitude:(CGFloat)longitude
accuracy:(CGFloat)accuracyInMeters;
// When Core Location isn't available but the user's location is known supplying
// it here may deliver more relevant ads. It can be any free-form text such as
// @"Champs-Elysees Paris" or @"94041 US".
- (void)setLocationWithDescription:(NSString *)locationDescription;
#pragma mark Contextual Information
// A keyword is a word or phrase describing the current activity of the user
// such as @"Sports Scores". Each keyword is an NSString in the NSArray. To
// clear the keywords set this to nil.
@property (nonatomic, retain) NSMutableArray *keywords;
// Convenience method for adding keywords one at a time such as @"Sports Scores"
// and then @"Football".
- (void)addKeyword:(NSString *)keyword;
#pragma mark -
#pragma mark Deprecated Methods
// Please use testDevices instead.
@property (nonatomic, getter=isTesting) BOOL testing;
@end
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
ADDemo.zip (31个子文件)
ADDemo
ADDemo.xcodeproj
project.xcworkspace
contents.xcworkspacedata 151B
xcuserdata
longyan.xcuserdatad
UserInterfaceState.xcuserstate 19KB
xcuserdata
longyan.xcuserdatad
xcdebugger
Breakpoints_v2.xcbkptlist 91B
xcschemes
xcschememanagement.plist 568B
ADDemo.xcscheme 3KB
project.pbxproj 25KB
AdmobDefaultViewController.h 295B
AdmobDefaultViewController.m 1KB
ADDemo
GADBannerView.h 3KB
GADBannerViewDelegate.h 3KB
ViewController.m 1KB
libGoogleAdMobAds.a 7.43MB
ADDemo-Prefix.pch 495B
en.lproj
InfoPlist.strings 45B
GADRequestError.h 1KB
main.m 333B
GADInterstitialDelegate.h 2KB
ADDemo-Info.plist 1KB
Base.lproj
Main.storyboard 7KB
Images.xcassets
LaunchImage.launchimage
Contents.json 442B
AppIcon.appiconset
Contents.json 333B
GADInterstitial.h 3KB
InterAdmobViewController.h 381B
ViewController.h 258B
AppDelegate.h 273B
InterAdmobViewController.m 1KB
GADRequest.h 5KB
AppDelegate.m 2KB
ADDemoTests
ADDemoTests.m 629B
en.lproj
InfoPlist.strings 45B
ADDemoTests-Info.plist 683B
共 31 条
- 1
龙炎其实是王老师
- 粉丝: 78
- 资源: 18
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 聊天系统(java+applet).zip
- 毕业设计:基于SSM的mysql-高校学生请假管理系统(源码 + 数据库 + 说明文档)
- 博客系统(struts+hibernate+spring).rar
- c语言学生成绩管理系统源码.zip
- 毕业设计:基于SSM的mysql-网约车用户服务平台(源码 + 数据库 + 说明文档)
- 内容管理系统(hibernate3+struts2+spring2)130224.rar
- 基于Java的班级管理系统课程设计源码
- 内容管理系统(hibernate3+struts2+spring2).rar
- 路由器刷breed Web控制台助手v5.8版本.rar
- Java 在 JEP 12 提供的特性预览
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
前往页