3

I'm trying to publish a client's ad to our site (an "HTML5 ad" presented in an iFrame; we are hosting the HTML). The ad instructions indicate:

The publisher needs to insert device IDs into dc_rdid to enable in-app conversion tracking.

The value assigned to the dc_rdid attribute is supposed to be the "IDFA" on iOS and the AdID on Android (and no mention of what this value should be on desktop). I'm having a lot of trouble finding information about how to retrieve these values in PHP or Javascript (I only find mention for getting them in the iOS / Android API's).

I'm assuming this must be possible or they wouldn't be asking for these HTML tags to contain these values. If anyone can point me in the right direction for how the attribute should be completed using PHP or JS that would be great (for desktop devices as well, if possible).

(I have the same question about how to retrieve the user's "Limit Ad Tracking" setting for the "dc_lat" and the value for "tag_for_child_directed_treatment" attributes.) Thanks!

Colin
  • 351
  • 6
  • 16
  • You can't get either IDFA or AdID from desktop apps as well as PHP. It should be populated through mobile apps. You mention javascript, it possible! But you need build mobile mobile apps such as using react native [IDFA](https://www.npmjs.com/package/@ptomasroos/react-native-idfa) and GAID(https://www.npmjs.com/package/react-native-gaid). Basically IDFA and AdID is part of device information attributes. And if Limit Ad Tracking is disabled, we can't capture those information. – mrJ0ul3 Sep 30 '17 at 07:11
  • Thanks. So would you say the answer could be: "These doubleclick attributes are only intended to be completed for iOS and Android native-app advertising and aren't usually completed for web-based ads." ? – Colin Oct 01 '17 at 12:36
  • exactly! As mentioned [here](https://support.google.com/adxbuyer/answer/3221407?hl=en) and [here](https://www.adjust.com/glossary/idfa/) – mrJ0ul3 Oct 01 '17 at 15:29
  • Wonderful. (Neither the client nor I had any idea what they were asking for. :-) ) If you would like to put that as the answer instead of a comment (perhaps add the part about using React), I'm happy to give you the points for the correct answer. Thanks again for your time on this! – Colin Oct 01 '17 at 18:30
  • well done [link](https://stackoverflow.com/a/46548264/3168448) :-) – mrJ0ul3 Oct 03 '17 at 15:32

1 Answers1

3

Basically IDFA and AdID is part of device information attributes. You can't get either IDFA or AdID from desktop apps as well as PHP. User can be disable or reset it at will, as like as user clear the browser cookies

If you work with javascript stuff, you can grab those two data using javascript stuff such as react, as below :

mrJ0ul3
  • 126
  • 7