#print(newcard.card_uri)
card = Card.load(accountup, CARD_ID)
card.id == CARD_ID
card.card_type == ‘WEBSITE’
card.card_uri == newcard.card_uri
card.save()
print(card.card_uri)
we are using python lib version 11
i can able to create website card without any issue.
but showing error while update website card
File “msjcardupdate.py”, line 55, in
card.save()
File “C:\Python27\lib\site-packages\twitter_ads\creative.py”, line 489, in save
body=json.dumps(payload)
File “C:\Python27\lib\site-packages\twitter_ads\http.py”, line 70, in perform
raise Error.from_response(response)
twitter_ads.error.NotAuthorized: <NotAuthorized object at 0x3dcc440 code=401 details=[{u’message’: u’Unauthorized to edit card %s’, u’code’: u’UNAUTHORIZED_ACCESS’, u’parameter’: u’'}]>
Hello,
Thanks for reaching out. You may want to refer to this announcement for more information