Integrate Millennial Media Ads using GET Method in Android -
android 2.3.3
the documentation of millennial media says can use http query ad html response.
my client application needs ads embedded in article, comes response server. after getting response, construct page, using html tags , display in viewpager. while constructing page, since response html, can add page before gets displayed.
to construct http query, need have
apid ad placement id.
auid unique identifier device.
ua user agent.
uip user's public ip address.
where above construct query,
apid - mmedia site (in account)
auid - ?
ua - ?
uip - ?
how can query these details?
if has done or has example or link, please guide me.
edit :::
@millennial mark
thanks help. have, apid , auid. building on client side. so, can query server these 2 values , response. - understood till here.
so assuming apid = 123149 , auid = eeabcef75ce706b4, url be,
http://ads.mp.mydas.mobi/getad?apid=123149&auid=eeabcef75ce706b4
that's it. no other data needed?
next question :::
can query server, size of ad want. example, if app running on tablet, need larger banner (for ex: 728x90) 1 display on phone(for ex: 320x50). so, can send needed banner size along http request? if so, how?
if still have questions after this, use support ticket.
i've seen few integrations done way-- in server-side language php, jsp, or asp. depending on server-side technology you're using, these variables come going different. ua (user agent string) , uip (user's external ip address) comes inbound http request headers. php, instance, has variable called $_get retrieving these parameters can pass them onto millennial api call. in these cases, it's acceptable not optimal pass same value auid uip. then, can echo out response of call millennial onto webpage on way app.
on other side, if you're trying build android app ("client-side")-- getting auid easy calling secure.getstring(this, secure.android_id);
, ua , uip can omitted since webview object populate them in request headers, , millennial's servers able recognize them.
if you'd more guidance (since stack overflow more of q&a environment , not discussion board), recommend putting in support ticket @ https://tools.mmedia.com/user/supportdevportal
Comments
Post a Comment