私はsearch volume data and trends through their TargetingIdeaSelectorがPython client libraryを使用して取得するアドワーズ広告APIを照会すると返されたデータは、次のようになります。AdWords API TargetingIdeaPageサービスから返されるデータ形式は何ですか?
(TargetingIdeaPage){
totalNumEntries = 1
entries[] =
(TargetingIdea){
data[] =
(Type_AttributeMapEntry){
key = "KEYWORD_TEXT"
value =
(StringAttribute){
Attribute.Type = "StringAttribute"
value = "keyword phrase"
}
},
(Type_AttributeMapEntry){
key = "TARGETED_MONTHLY_SEARCHES"
value =
(MonthlySearchVolumeAttribute){
Attribute.Type = "MonthlySearchVolumeAttribute"
value[] =
(MonthlySearchVolume){
year = 2016
month = 2
count = 2900
},
...
(MonthlySearchVolume){
year = 2015
month = 3
count = 2900
},
}
},
},
}
これはJSONではなく、単なる厄介Pythonのリストのように見えます。毎月のデータをこのような構造のPandasデータフレームにまとめる最も簡単な方法は何ですか?
Keyword | Year | Month | Count
keyword phrase 2016 2 10
私の遅れに反応して申し訳ありません!説明をありがとう!これを行うにはもっと簡単なコード! – JohnSG