google / openrtb-doubleclick

Utilities for DoubleClick Ad Exchange, including OpenRTB mapping, DoubleClick cryptography, metadata and validation
Apache License 2.0
197 stars 89 forks source link

[com.google.doubleclick.imp] how to change to "ext" in BidRequest #136

Closed Unnamalai57 closed 5 years ago

Unnamalai57 commented 5 years ago

This is my code used to generate bidRequest .setExtension(AdxExt.imp, AdxExt.ImpExt.newBuilder().setDfpAdUnitCode(adBlockInfo.getAdunitId().toString()).build()))

when I executed I get ImpExt object as [com.google.doubleclick.imp] { dfp_ad_unit_code: "1ad35672-f820-47c8-91dc-bf8b08410cbd" }

How can I change "[com.google.doubleclick.imp]" to "ext"

can anyone help to solve this issue?

opinali commented 5 years ago

Hi, what you are trying to do here is not well supported by the Protobuf library. The textual format of protos is meant for purposes like logging / debugging / testing, it's not meant to be used as a general purpose text representation e.g. for remoting or persistence.