Hi everyone,

I have a little issue with the API, to update a PromotionExtension 
(Operator SET)
In Adwords I have a PromotionExtension, with a percent discount. And It's 
impossible to update this feedItem, and change it to monetary discount.

Operation 0 - FAILURE:
operation={
    'xsi_type': 'CustomerExtensionSettingOperation',
    'operand': {
        'extensionSetting': {
            'extensions': [
                {
                    'xsi_type': 'PromotionFeedItem',
                    'discountModifier': 'UP_TO',
                    'promotionTarget': 'Test de promotion',
                    'language': 'EN',
                    'moneyAmountOff': {
                        'money': {
                            'microAmount': 115000000
                        },
                        'currencyCode': 'CAD'
                    },
                    'promotionCode': 'B152Q',
                    'promotionEnd': '20180606 000000',
                    'occasion': 'VALENTINES_DAY',
                    'finalUrls': {
                        'urls': ['https://httpstat.us/200']
                    },
                    'feedItemId': 35607278998,
                    'promotionStart': '20180101 000000'
                }
            ]
        },
        'extensionType': 'PROMOTION'
    },
    'operator': 'SET'
}

errorType=ExtensionSettingError
trigger=None
errorString=ExtensionSettingError.PROMOTION_CANNOT_SET_PERCENT_OFF_AND_MONEY_AMOUNT_OFF
fieldPath=operations[0].operand.extensionSetting.extensions[0].moneyAmountOff
reason=PROMOTION_CANNOT_SET_PERCENT_OFF_AND_MONEY_AMOUNT_OFF

This what I send to update, and the error return by the API.
My question is : 

- Is it normal ? because by the UI of Adwords Beta, it's possible to update 
the promotion type.
- Did I forgot something to send to the API ? (I tried to send the key 
'percentOff' with None value)

I have the same problem with *Promotion Code* to *On overs order *

Thanks for your help

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/b8608f7a-03f0-49fc-8279-0b34c21a7ebd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • Update promo... wtemmerman
    • Re: Upd... 'Dhanya Sundararaju (AdWords API Team)' via AdWords API Forum

Reply via email to