我正在尝试进行复杂的查询,以便了解"the is the size of population (audience size) of people who are interested in football and also live in new york"之类的内容 . 我有访问令牌,但我不能复杂的条件,一次只有1个条件 . 另一个问题是我采用curl代码并使用https://curl.trillworks.com/将其转换为python代码到目前为止我做了这段代码:

import requests
data2 = [('type', 'adinterest'),('q','football'), 
('access_token','my_access_token'),('limit','1000')]
response = requests.get('https://graph.facebook.com/v2.11/search',params=data2)
r=response.json()

如何让它变成更复杂的查询,如"is interested in football, in age between 18 and 30 and also live in new york"?我查看了Facebook的解释,如:https://developers.facebook.com/docs/marketing-api/targeting-search https://developers.facebook.com/docs/marketing-api/buying-api/targeting

https://developers.facebook.com/docs/marketing-api/targeting-specs

但我失败了 .