|
@@ -109,6 +109,9 @@ class BaseClient:
|
|
|
|
|
|
return resp.json()
|
|
|
|
|
|
+ def get_profilesInfo(self):
|
|
|
+ url_path = "/v2/profiles"
|
|
|
+ return self._request(url_path)
|
|
|
|
|
|
class SPClient(BaseClient):
|
|
|
|
|
@@ -719,6 +722,7 @@ class Account(BaseClient):
|
|
|
|
|
|
|
|
|
|
|
|
+
|
|
|
AccountClient = Account
|
|
|
|
|
|
if __name__ == '__main__':
|
|
@@ -734,7 +738,8 @@ if __name__ == '__main__':
|
|
|
# keyword=["8mp security camera system","8mp security camera system"],
|
|
|
# matchType=["broad","exact"]))
|
|
|
|
|
|
- sd = SDClient(**AWS_CREDENTIALS)
|
|
|
+ sd = Account(**AWS_CREDENTIALS)
|
|
|
+ print(sd.get_profilesInfo())
|
|
|
|
|
|
# print(sb.get_keyword_bidrecommendation(**{'campaignId': 27333596383941, 'keywords': [
|
|
|
# {"matchType": 'broad', "keywordText": "4k security camera system"}]}))
|
|
@@ -743,4 +748,4 @@ if __name__ == '__main__':
|
|
|
|
|
|
# sb = SBClient(**AWS_CREDENTIALS)
|
|
|
|
|
|
- print(sd.get_v2_report(record_type="campaigns",report_date="20231020",tactic="T00030",metrics=['impressions']))
|
|
|
+ # print(sd.get_v2_report(record_type="campaigns",report_date="20231020",tactic="T00030",metrics=['impressions']))
|