Windows Phone 8 SDK - Targeting Problem

60 views
Skip to first unread message

Kimki Bu

unread,
Apr 21, 2014, 7:03:16 PM4/21/14
to google-adm...@googlegroups.com
Hi.
I can not Location-Aware ad requests.
assigning adRequest.Location to a GeoPosition required.
Here's the example snippet:

AdRequest adRequest = new AdRequest();
adRequest.Location = geoposition.Coordinate;  // where geoposition is a GeoPosition object.
adRequest.Gender = UserGender.Male;
adRequest.Birthday = DateTimeOffset.Parse("2/15/2012 6:00:00 AM -7:00");


However, Location property of AdRequest is an instance of "Windows.Devices.Geolocation.Geocoordinate" which is read only.
I'm stuck and cofused.
So, how can I specify user's location for the ad requests?
Is the doc incorrect or am I missing something?
Please help me out.

Kimki Bu

unread,
Apr 24, 2014, 4:28:38 AM4/24/14
to google-adm...@googlegroups.com
Now I'm beginning to be sure that the Doc is incorrect.
Reply all
Reply to author
Forward
0 new messages