Hi, I am unable to update the parameter “bid_amount_local_micro” for an existing line item using python. I have all the relevant authentication because I was able to create a line item. However I am unable to update the bids for line item. When I try I get the following error.
Input:
line_item=LineItem.load(account,line_item_id)
line_item.bid_amount_local_micro = 12000
line_item.save()
ouput:
Traceback (most recent call last):
File “/usr/lib/python3.6/code.py”, line 91, in runcode
exec(code, self.locals)
File “”, line 1, in
File “/home/squreshi/.local/lib/python3.6/site-packages/twitter_ads/resource.py”, line 201, in save
resource, params=self.to_params()).perform()
File “/home/squreshi/.local/lib/python3.6/site-packages/twitter_ads/http.py”, line 72, in perform
raise Error.from_response(response)
twitter_ads.error.BadRequest: <BadRequest object at 0x7fd575dbe888 code=400 details=[{‘code’: ‘INVALID_PARAMETER’, ‘message’: ‘setting advertiser_user_id is not allowed’, ‘parameter’: ‘advertiser_user_id’}]>
Even though my request has nothing to do with advertiser_user_id.
jrsyo
#2
@SaadAhmedQure10 What SDK version are you using right now? Are you using the latest version?: https://pypi.org/project/twitter-ads/5.0.0/
Also, please provide us your Ads account ID.
jrsyo
#3
@SaadAhmedQure10 Ok, maybe you can workaround by this…