我正在通过Google Analytics python API执行MFC查询,如:
query = service.data().mcf().get(
ids = "ga:79961457",
start_date = day,
end_date = day,
metrics = metric,
dimensions = "mcf:conversionDate,mcf:campaignPath",
sort = None,
filters = "mcf:campaignPath=@RTG,mcf:conversionType==Transaction",
max_results = 1000000000
).execute()
这将生成一个包含以下行的列表:
{u'primitiveValue': u'20160701'},
{u'conversionPathValue':
[{u'nodeValue': u'{{soporte}}', u'interactionType': u'CLICK'},
{u'nodeValue': u'RTG', u'interactionType': u'IMPRESSION'},
{u'nodeValue': u'CAMP', u'interactionType': u'CLICK'}],
{u'primitiveValue': u'1'},FBRTG
现在,我应用的过滤器是
mcf:campaignPath=@RTG
它会过滤掉所有的“nodeValue”。在
问题是我只想得到包含
{u'nodeValue': u'RTG', u'interactionType': u'CLICK'},
(例如)
所以,问题是:我如何才能对interactionType应用筛选器,而不仅仅是campaignPath?在
目前没有回答
相关问题 更多 >
编程相关推荐