|
@@ -27,12 +27,12 @@ def request(url_path: str, method: str = "GET", head: dict = None, params: dict
|
|
return resp.json()
|
|
return resp.json()
|
|
|
|
|
|
|
|
|
|
-class SpCampaign:
|
|
|
|
|
|
+class SpBudgetRecommendation:
|
|
def __init__(self, profile_id, portfolioId: list = None):
|
|
def __init__(self, profile_id, portfolioId: list = None):
|
|
self.profile_id = profile_id
|
|
self.profile_id = profile_id
|
|
self.portfolioId = portfolioId
|
|
self.portfolioId = portfolioId
|
|
self.re_url_path = "api/ad_manage/profiles/"
|
|
self.re_url_path = "api/ad_manage/profiles/"
|
|
- self.camid_url_path = "api/ad_manage/spcampaigns/?limit=999"
|
|
|
|
|
|
+ self.camid_url_path = "api/ad_manage/spcampaigns/?limit=9999"
|
|
self.upcreate_url_path = "api/spbudgetrecommendation/list/"
|
|
self.upcreate_url_path = "api/spbudgetrecommendation/list/"
|
|
self.heads = {'X-Token': "da4ab6bc5cbf1dfa"}
|
|
self.heads = {'X-Token': "da4ab6bc5cbf1dfa"}
|
|
self.refresh_token = self.get_refresh_token()
|
|
self.refresh_token = self.get_refresh_token()
|
|
@@ -122,7 +122,7 @@ class SpCampaign:
|
|
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
if __name__ == '__main__':
|
|
- a = SpCampaign(profile_id="3006125408623189")
|
|
|
|
|
|
+ a = SpBudgetRecommendation(profile_id="3006125408623189")
|
|
out = a.updata_create()
|
|
out = a.updata_create()
|
|
# out = a.dataconvert()
|
|
# out = a.dataconvert()
|
|
print(out)
|
|
print(out)
|