|  | @@ -27,13 +27,13 @@ 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.upcreate_url_path = "api/spbudgetrecommendation/list/"
 |  | 
 | 
											
												
													
														|  | 
 |  | +        self.camid_url_path = "api/ad_manage/spcampaigns/?limit=9999"
 | 
											
												
													
														|  | 
 |  | +        self.upcreate_url_path = "api/spbudgetrecommendation/updata/"
 | 
											
												
													
														|  |          self.heads = {'X-Token': "da4ab6bc5cbf1dfa"}
 |  |          self.heads = {'X-Token': "da4ab6bc5cbf1dfa"}
 | 
											
												
													
														|  |          self.refresh_token = self.get_refresh_token()
 |  |          self.refresh_token = self.get_refresh_token()
 | 
											
												
													
														|  |          self.lwa_client_id = AWS_LWA_CLIENT['lwa_client_id']
 |  |          self.lwa_client_id = AWS_LWA_CLIENT['lwa_client_id']
 | 
											
										
											
												
													
														|  | @@ -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)
 |