amzn / ads-advanced-tools-docs

Code samples and supplements for the Amazon Ads advanced tools center
https://advertising.amazon.com/API/docs/en-us/index
MIT No Attribution
88 stars 33 forks source link

appliedFees cannot be updated #107

Closed bartektrybala closed 1 year ago

bartektrybala commented 1 year ago

endpoint: PUT ​/dsp​/lineItems​/

There is no way to update line_item when you want to change targeting because of appliedFess field. I've got the latest from GET:

{
    'amazonDspConsoleFee': {'feePercentage': '10'},
    'audienceFees': [
        {'feeName': 'IN_MARKET_LIFESTYLE', 'amount': '1'},
        {'feeName': 'AUTOMOTIVE', 'amount': '0'}
    ]
}

Anyway when you want to update targeting it throws an error:

{'errorType': 'IMMUTABLE_FIELD', 'message': 'Field appliedFees/audienceFees cannot be updated.'

Can't you just do it read-only, there is no need to provide it in PUT/CREATE.