Re: Campaign Service campaignUpdate throws ApiException when ShoppingSetting have merchantId set

2018-11-21 Thread 'Dannison Yao (AdWords API Team)' via AdWords API and Google Ads API Forum
Hi Ronald,

Could you please provide the complete SOAP request and response logs 
(without redacting any information such as clientCustomerId and the 
merchantId) using the *Reply privately to author *option so I can 
investigate this more?

Regards,
Dannison
AdWords API Team

On Thursday, November 22, 2018 at 12:07:04 AM UTC+8, Ronald Findling wrote:
>
> When doing a campaign update requests (`mutate` with 
> `CampaignOperator.SET`) which has shoppingSettings (with `merchantId`) we 
> observe a `com.google.api.ads.adwords.axis.v201806.cm.ApiException` see [1]
> In this request we set all mandatory properties (`merchantId`, 
> `salesCountry`, `campaignPriority`)
>
> Leaving out the merchantId however makes the request succeed, request and 
> response see [2] [3].
>
> I can't find documentation why these parameters shouldn't be set in this 
> case:
> mutate 
> https://developers.google.com/adwords/api/docs/reference/v201802/CampaignService
> CampaignOperation SET 
> https://developers.google.com/adwords/api/docs/reference/v201802/CampaignService.CampaignOperation
> ShoppingSetting 
> https://developers.google.com/adwords/api/docs/reference/v201802/CampaignService.ShoppingSetting
>
> We are using com.google.api-ads:adwords-axis:3.15.1
>
> [2]
> 2018-11-21 16:11:47 [INFO] c.g.a.a.a.l.c.A.soapXmlLogger SOAP request:
> 
> http://schemas.xmlsoap.org/soap/envelope/; 
> xmlns:xsd="http://www.w3.org/2001/XMLSchema; xmlns:xsi="
> http://www.w3.org/2001/XMLSchema-instance;>
> 
> https://adwords.google.com/api/adwords/cm/v201806; 
> soapenv:mustUnderstand="0">
> XXX
> REDACTED
> smeco (AwApi-Java, AdWords-Axis/3.15.1, 
> Common-Java/3.15.1, Axis/1.4, Java/1.8.0_152, maven)
> false
> false
> 
> 
> 
> https://adwords.google.com/api/adwords/cm/v201806;>
> 
> SET
> 
> 99
> (AT:Whoop!) Indoor
> https://adwords.google.com/api/adwords/cm/v201806; 
> xsi:type="ns2:ShoppingSetting">
> XXX
> AT
> 0
> 
> 
> 
> 
> 
> 
>
> [3]
> 2018-11-21 16:11:47 [INFO] c.g.a.a.a.l.c.A.soapXmlLogger SOAP response:
> 
> http://schemas.xmlsoap.org/soap/envelope/;>
> 
> https://adwords.google.com/api/adwords/cm/v201806;>
> 00057b2e2b2a07410a373303cb0f5a91
> CampaignService
> mutate
> 1
> 269
> 
> 
> 
> 
> soap:Server
> [InternalApiError.UNEXPECTED_INTERNAL_API_ERROR @ 
> com.google.ads.api.services.common.error.InternalApiError.init(InternalApiErro]
> 
> https://adwords.google.com/api/adwords/cm/v201806;>
> 
> [InternalApiError.UNEXPECTED_INTERNAL_API_ERROR @ 
> com.google.ads.api.services.common.error.InternalApiError.init(InternalApiErro]
> 
> ApiException
> http://www.w3.org/2001/XMLSchema-instance; xsi:type="InternalApiError">
> 
> 
> 
> InternalApiError.UNEXPECTED_INTERNAL_API_ERROR
> InternalApiError
> UNEXPECTED_INTERNAL_API_ERROR
> 
> 
> 
> 
> 
> 
>
>
> [1]
> 2018-11-21 16:11:47 [WARN] c.g.a.a.a.l.c.A.requestInfoLogger Request made: 
> Service: CampaignService Method: mutate clientCustomerId: XXX URL: 
> https://adwords.google.com/api/adwords/cm/v201806/CampaignService Request 
> ID: 00057b2e2b2a07410a373303cb0f5a91 ResponseTime(ms): 269 OperationsCount: 
> 1 IsFault: true FaultMessage: 
> ApiException{applicationExceptionType=ApiException, 
> errors=[InternalApiError{apiErrorType=InternalApiError, 
> errorString=InternalApiError.UNEXPECTED_INTERNAL_API_ERROR, fieldPath=, 
> reason=UNEXPECTED_INTERNAL_API_ERROR, trigger=}]}
>
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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 and Google Ads 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 

Campaign Service campaignUpdate throws ApiException when ShoppingSetting have merchantId set

2018-11-21 Thread Ronald Findling
When doing a campaign update requests (`mutate` with 
`CampaignOperator.SET`) which has shoppingSettings (with `merchantId`) we 
observe a `com.google.api.ads.adwords.axis.v201806.cm.ApiException` see [1]
In this request we set all mandatory properties (`merchantId`, 
`salesCountry`, `campaignPriority`)

Leaving out the merchantId however makes the request succeed, request and 
response see [2] [3].

I can't find documentation why these parameters shouldn't be set in this 
case:
mutate 
https://developers.google.com/adwords/api/docs/reference/v201802/CampaignService
CampaignOperation SET 
https://developers.google.com/adwords/api/docs/reference/v201802/CampaignService.CampaignOperation
ShoppingSetting 
https://developers.google.com/adwords/api/docs/reference/v201802/CampaignService.ShoppingSetting

We are using com.google.api-ads:adwords-axis:3.15.1

[2]
2018-11-21 16:11:47 [INFO] c.g.a.a.a.l.c.A.soapXmlLogger SOAP request:

http://schemas.xmlsoap.org/soap/envelope/; 
xmlns:xsd="http://www.w3.org/2001/XMLSchema; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance;>

https://adwords.google.com/api/adwords/cm/v201806; 
soapenv:mustUnderstand="0">
XXX
REDACTED
smeco (AwApi-Java, AdWords-Axis/3.15.1, 
Common-Java/3.15.1, Axis/1.4, Java/1.8.0_152, maven)
false
false



https://adwords.google.com/api/adwords/cm/v201806;>

SET

99
(AT:Whoop!) Indoor
https://adwords.google.com/api/adwords/cm/v201806; 
xsi:type="ns2:ShoppingSetting">
XXX
AT
0







[3]
2018-11-21 16:11:47 [INFO] c.g.a.a.a.l.c.A.soapXmlLogger SOAP response:

http://schemas.xmlsoap.org/soap/envelope/;>

https://adwords.google.com/api/adwords/cm/v201806;>
00057b2e2b2a07410a373303cb0f5a91
CampaignService
mutate
1
269




soap:Server
[InternalApiError.UNEXPECTED_INTERNAL_API_ERROR @ 
com.google.ads.api.services.common.error.InternalApiError.init(InternalApiErro]

https://adwords.google.com/api/adwords/cm/v201806;>

[InternalApiError.UNEXPECTED_INTERNAL_API_ERROR @ 
com.google.ads.api.services.common.error.InternalApiError.init(InternalApiErro]

ApiException
http://www.w3.org/2001/XMLSchema-instance; 
xsi:type="InternalApiError">



InternalApiError.UNEXPECTED_INTERNAL_API_ERROR
InternalApiError
UNEXPECTED_INTERNAL_API_ERROR








[1]
2018-11-21 16:11:47 [WARN] c.g.a.a.a.l.c.A.requestInfoLogger Request made: 
Service: CampaignService Method: mutate clientCustomerId: XXX URL: 
https://adwords.google.com/api/adwords/cm/v201806/CampaignService Request 
ID: 00057b2e2b2a07410a373303cb0f5a91 ResponseTime(ms): 269 OperationsCount: 
1 IsFault: true FaultMessage: 
ApiException{applicationExceptionType=ApiException, 
errors=[InternalApiError{apiErrorType=InternalApiError, 
errorString=InternalApiError.UNEXPECTED_INTERNAL_API_ERROR, fieldPath=, 
reason=UNEXPECTED_INTERNAL_API_ERROR, trigger=}]}


-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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 and Google Ads 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/c271f15a-bbf6-4d33-aee0-7859d15877e0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.