{"action":"opened","issue":{"url":"https://api.github.com/repos/googleads/googleads-python-lib/issues/346","repository_url":"https://api.github.com/repos/googleads/googleads-python-lib","labels_url":"https://api.github.com/repos/googleads/googleads-python-lib/issues/346/labels{/name}","comments_url":"https://api.github.com/repos/googleads/googleads-python-lib/issues/346/comments","events_url":"https://api.github.com/repos/googleads/googleads-python-lib/issues/346/events","html_url":"https://github.com/googleads/googleads-python-lib/issues/346","id":381491309,"node_id":"MDU6SXNzdWUzODE0OTEzMDk=","number":346,"title":"getUserInterestCriterion problem","user":{"login":"Tahirhan","id":32486359,"node_id":"MDQ6VXNlcjMyNDg2MzU5","avatar_url":"https://avatars3.githubusercontent.com/u/32486359?v=4","gravatar_id":"","url":"https://api.github.com/users/Tahirhan","html_url":"https://github.com/Tahirhan","followers_url":"https://api.github.com/users/Tahirhan/followers","following_url":"https://api.github.com/users/Tahirhan/following{/other_user}","gists_url":"https://api.github.com/users/Tahirhan/gists{/gist_id}","starred_url":"https://api.github.com/users/Tahirhan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tahirhan/subscriptions","organizations_url":"https://api.github.com/users/Tahirhan/orgs","repos_url":"https://api.github.com/users/Tahirhan/repos","events_url":"https://api.github.com/users/Tahirhan/events{/privacy}","received_events_url":"https://api.github.com/users/Tahirhan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-11-16T08:18:03Z","updated_at":"2018-11-16T08:18:03Z","closed_at":null,"author_association":"NONE","body":"Hi, i am trying to get affinity category criterions. But i think i don't know where or how to pass \" userInterestTaxonomyType='BRAND' \" part in code. I get error when i execute below code:\r\n\r\ndef main(client):\r\n  # Initialize appropriate service.\r\n  constant_data_service = client.GetService(\r\n      'ConstantDataService', version='v201809')\r\n\r\n  affinities = constant_data_service.getUserInterestCriterion(userInterestTaxonomyType='BRAND')\r\n\r\n  # Display results.\r\n  for affinity in affinities:\r\n    print('Affinity with name \"%s\" and ID \"%s\" was found.'\r\n          % (affinity['name'], affinity['id']))"}}
{"actor":{"display_login":"Tahirhan"}}