Unable to send DFP requests over HTTPS using iOS & Android SDK

68 views
Skip to first unread message

Владимир Бебешко

unread,
Feb 5, 2014, 12:19:01 PM2/5/14
to google-adm...@googlegroups.com
Dear support team!
I have an app with DFP SDK integrated. It works well, but now after the legal department demand I need to switch all our dfp traffic from http to https.
I haven't found how to do this. The call for the ad is very simple and there are seems no way to config this. 

For example, in iOS:

 DFPBannerView *dfpBanner = [[DFPBannerView alloc] initWithAdSize:adSize];
 dfpBanner
.adUnitID = unitId;
 dfpBanner
.delegate = delegate;
 dfpBanner
.rootViewController = root;


 
GADRequest *request = [GADRequest request];
 
[request setLocationWithLatitude:latitude longitude:longitude accuracy:accurancy];
 
[dfpBanner loadRequest: request];


GADRequest class has no option to configure if request will be send over http or https.
I've searched docs, forums, googled a lot for another way to send requests over https and haven't found the solution.
Is it possible at all? And how can I do this?

Eric Leichtenschlag

unread,
Feb 11, 2014, 2:47:14 PM2/11/14
to google-adm...@googlegroups.com
There is no first-class method to do this, but it is possible to pass an extra parameter to force https:

DFPExtras* extras = [[[DFPExtras alloc] init] autorelease];
extras.additionalParameters = @{@"forceHttps": @"1" };
[request registerAdNetworkExtras:extras];


You should be warned though: Using https might lower rpm because some inventory is disabled on https, and https in general can have higher latency. We've noticed similar issues on AdMob traffic that have prevented us from moving to https as the default. I'm not sure what the effect is, if any, on DFP traffic. But I would strongly recommend that you test the behavior if you turn this on, as changing this later requires a re-release of your app.

Thanks,
Eric
Reply all
Reply to author
Forward
0 new messages