Skip to content

Instantly share code, notes, and snippets.

@davidwasamrf
Created April 25, 2018 14:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davidwasamrf/f9e296bf77cb2a16d7eaeaa65a38c725 to your computer and use it in GitHub Desktop.
Save davidwasamrf/f9e296bf77cb2a16d7eaeaa65a38c725 to your computer and use it in GitHub Desktop.
public void setTargeting(DoubleclickTargeting targeting) {
for (Map.Entry<String, Object> entry : targeting.getAttributes().entrySet()) {
this.targeting.addAttribute(entry.getKey(), entry.getValue());
}
}
//instead of
public void setTargeting(DoubleclickTargeting targeting) {
this.targeting = targeting;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment