Skip to content

Instantly share code, notes, and snippets.

@dialtone
Created January 23, 2012 22:37
Show Gist options
  • Save dialtone/1665896 to your computer and use it in GitHub Desktop.
Save dialtone/1665896 to your computer and use it in GitHub Desktop.
putitem(Key, AdGroupId, AdId, ?IMP, TTL, Now) ->
dinerl:put_item(<<"Attributions">>, [{<<"UserKey">>, [{<<"S">>, Key}]},
{<<"Updated">>, [{<<"N">>, list_to_binary(integer_to_list(Now))}]},
{<<"TTL">>, [{<<"N">>, list_to_binary(integer_to_list(TTL))}]},
{<<"AdGroupId">>, [{<<"S">>, AdGroupId}]}, {<<"AdId">>, [{<<"S">>,
AdId}]}, {<<"Kind">>, [{<<"S">>, ?IMP}]}], []).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment