Promotion Extensions Editing

93 views
Skip to first unread message

Roman Bondarenko

unread,
Sep 30, 2020, 5:16:41 AM9/30/20
to AdWords API and Google Ads API Forum
Hello, team! 

I would like to ask for a help or report a bug. 
So here is a situation. 

Firstly: I send a request to create a Promotion extension with such payload: "payload1.py" which transforms to request to your API which is in "request1.txt" and I receive response which is in "response1.txt" file. Everything goes well and extension is  successfully created! As you may noticed it has money moneyAmountOff discount, not percent. 
But then I want to change it's discount to percent and send payload which is in "payload2.py" which cast to "request2.txt" and receive response from API "response2.txt"...

It says - 
ExtensionSettingError.PROMOTION_CANNOT_SET_PERCENT_OFF_AND_MONEY_AMOUNT_OFF. 
So there is no possibility to change discount to percentOff from moneyAmountOff? Or am I missing something? ( On your platform there is such opportunity )

Also you might noticed that in "request2.py" missing any data that I dropped to None moneyAmountOff field, so it might be the reason why API still considering I am using that value... 

Well, I hope that's enough info...
Thank you and have a nice day!
payload1.py
request2.txt
payload2.py
response2.txt
request1.txt
response1.txt

Google Ads API Forum Advisor Prod

unread,
Sep 30, 2020, 3:58:11 PM9/30/20
to roman.bo...@starnavi.io, adwor...@googlegroups.com
Hi Roman,

We will look into this and see if there is an issue on our side.

Regards,
Anthony
Google Ads API Team

Google Logo
Anthony
Google Ads API Team
 


ref:_00D1U1174p._5004Q25Y07u:ref

Google Ads API Forum Advisor Prod

unread,
Oct 1, 2020, 8:47:04 AM10/1/20
to roman.bo...@starnavi.io, adwor...@googlegroups.com
Hi Roman,

I am not sure if you already got the chance to check the dedicated guide just yet but there is a section about how to update ad extensions that could help.

I took a look at the requests you provided and wanted to clarify a few things about the second request:
  • The ADD operator is used instead of SET
  • The feed item ID is not the same as the one returned by the first request

Thanks,
Pierrick - Google Ads API Team

ref:_00D1U1174p._5004Q25Y07u:ref

Roman Bondarenko

unread,
Oct 2, 2020, 5:56:23 AM10/2/20
to AdWords API and Google Ads API Forum
Hello! 

Firstly, I want to point that in link which you left in your response there is a banner which says: 
"Note: You can use either the ADD or SET operator here, since the two operators are equivalent in extension setting services." 
And I did try with SET operation but result was the same... So issue is not about ADD or SET, I believe... 

About different feed_item_id ... that is my bad, because I copied wrong extension item. New attach where you can see the same flow. 

Thanks for helping!
logs.txt

Google Ads API Forum Advisor Prod

unread,
Oct 2, 2020, 5:32:53 PM10/2/20
to roman.bo...@starnavi.io, adwor...@googlegroups.com
Hi Roman,

Thank you for the feedback and clarifications. I was able to reproduce the issue and to fix it by setting the field "percentOff" to "-1" instead of "None".

Could you give it a try on your side?

Roman Bondarenko

unread,
Oct 5, 2020, 5:36:55 AM10/5/20
to AdWords API and Google Ads API Forum
Hello! 
Thank you for help) Yes, that is a solution ) 

But there is another issue ... When I create promotion extension with promotionCode field which holds some value but after that I decided that want have discount not on promotion code but with ordersOverAmount, I could not update this anymore and always receive ExtensionSettingError.PROMOTION_CANNOT_SET_PROMOTION_CODE_AND_ORDERS_OVER_AMOUNT. This is basically the same scenario and there is no way to drop promotionCode value as it's a simple xsd:string type, I did try to set it to None but it did not help ... Also I did not find any answers in documentation... 

Hope you can help with this as well.

Thank you one more time! 

Google Ads API Forum Advisor Prod

unread,
Oct 5, 2020, 9:02:21 AM10/5/20
to roman.bo...@starnavi.io, adwor...@googlegroups.com
Hi Roman,

I was able to reproduce this second issue and to fix it by setting the field "promotionCode" to "" (an empty string) instead of "None".

Roman Bondarenko

unread,
Oct 5, 2020, 9:30:42 AM10/5/20
to AdWords API and Google Ads API Forum
Hi! 

Yes, it worked for me too! 

Thanks a lot! 

Reply all
Reply to author
Forward
Message has been deleted
Message has been deleted
0 new messages