Skip to content

Enable multiple values for GeneratetagsRequest.TagFormats to retrieve INS tags #663

Closed
@tamerlan

Description

We need to retrieve the new INS tags.
As was clarified from the DCM API team: “To opt-in on the API side, you need to request both the legacy and standard formats for a tag in the same request (at which point the standard format will return an ins).” But now it's impossible due to current client library code issue:

public class GeneratetagsRequest : DfareportingBaseServiceRequest<PlacementsGenerateTagsResponse>
{
[RequestParameter("tagFormats", RequestParameterType.Query)]
public virtual PlacementsResource.GeneratetagsRequest.TagFormatsEnum? TagFormats { get; set; }
...
} 

public enum TagFormatsEnum
{
   [StringValue("PLACEMENT_TAG_CLICK_COMMANDS")]
  PLACEMENTTAGCLICKCOMMANDS = 0,
   [StringValue("PLACEMENT_TAG_IFRAME_ILAYER")]
   PLACEMENTTAGIFRAMEILAYER = 1,
   [StringValue("PLACEMENT_TAG_IFRAME_JAVASCRIPT")]
   PLACEMENTTAGIFRAMEJAVASCRIPT = 2,
   [StringValue("PLACEMENT_TAG_IFRAME_JAVASCRIPT_LEGACY")]
  PLACEMENTTAGIFRAMEJAVASCRIPTLEGACY = 3,
...
}

We can see that this field doesn’t accept a list of values and we also can’t combine enum values as it hasn’t been marked with [Flags] attribute and values are not powers of two.

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions