Re: Update promotion type/details with API for PromotionExtension

2018-04-19 Thread wtemmerman
I found the answer. Just set -1 to field:microAmount and don't pass any 
currencyCode.

Thanks for your help

On Thursday, April 19, 2018 at 4:55:31 PM UTC-4, 
wtemm...@cyberpublicity.com wrote:
>
> Alright,
>
> And in the reverse case, if I want to set a field:percentOff, what should 
> I set set for field:moneyAmountOff; becaise this field is more complex. 
> (money, microAmount, currencyCode) ?
>
> On Thursday, April 19, 2018 at 3:50:22 PM UTC-4, Dhanya Sundararaju 
> (AdWords API Team) wrote:
>>
>> Hi,
>>
>> The error that you 
>> receive:ExtensionSettingError.PROMOTION_CANNOT_SET_PERCENT_OFF_AND_MONEY_AMOUNT_OFF
>>  
>> is because you will need to assign a value of -1 for field:percentOff when 
>> you set a value for field:moneyAmountOff. Similarly, when you set a value 
>> for field:ordersOverAmount, you will need to assign a value of '' to 
>> field:promotionCode. Please refer attachment:SOAP.xml for a sample SOAP 
>> request and let me know if you have any further questions.
>>
>> Regards,
>> Dhanya, AdWords API Team
>>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/3d124551-9381-4079-88f8-d0b0dbf1339d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Update promotion type/details with API for PromotionExtension

2018-04-19 Thread wtemmerman
Alright,

And in the reverse case, if I want to set a field:percentOff, what should I 
set set for field:moneyAmountOff; becaise this field is more complex. 
(money, microAmount, currencyCode) ?

On Thursday, April 19, 2018 at 3:50:22 PM UTC-4, Dhanya Sundararaju 
(AdWords API Team) wrote:
>
> Hi,
>
> The error that you 
> receive:ExtensionSettingError.PROMOTION_CANNOT_SET_PERCENT_OFF_AND_MONEY_AMOUNT_OFF
>  
> is because you will need to assign a value of -1 for field:percentOff when 
> you set a value for field:moneyAmountOff. Similarly, when you set a value 
> for field:ordersOverAmount, you will need to assign a value of '' to 
> field:promotionCode. Please refer attachment:SOAP.xml for a sample SOAP 
> request and let me know if you have any further questions.
>
> Regards,
> Dhanya, AdWords API Team
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/30da2366-7c27-4f40-8ea5-edc7bf4ea19c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Update promotion type/details with API for PromotionExtension

2018-04-19 Thread 'Dhanya Sundararaju (AdWords API Team)' via AdWords API Forum
Hi,

The error that you 
receive:ExtensionSettingError.PROMOTION_CANNOT_SET_PERCENT_OFF_AND_MONEY_AMOUNT_OFF
 
is because you will need to assign a value of -1 for field:percentOff when 
you set a value for field:moneyAmountOff. Similarly, when you set a value 
for field:ordersOverAmount, you will need to assign a value of '' to 
field:promotionCode. Please refer attachment:SOAP.xml for a sample SOAP 
request and let me know if you have any further questions.

Regards,
Dhanya, AdWords API Team

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/0bfa8ebf-512a-463c-8508-3e4aec67661d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


SOAP.xml
Description: XML document


Update promotion type/details with API for PromotionExtension

2018-04-19 Thread wtemmerman
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': 11500
},
'currencyCode': 'CAD'
},
'promotionCode': 'B152Q',
'promotionEnd': '20180606 00',
'occasion': 'VALENTINES_DAY',
'finalUrls': {
'urls': ['https://httpstat.us/200']
},
'feedItemId': 35607278998,
'promotionStart': '20180101 00'
}
]
},
'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.