Unmarshalling Error when reading ProductPartition

261 views
Skip to first unread message

GrueneOrchidee

unread,
Jul 3, 2014, 7:31:37 AM7/3/14
to adwor...@googlegroups.com
Hello,

it's not possible to read any ProductPartitions. I always get the error:
Unmarshalling Error: unrecognized type name: {https://adwords.google.com/api/adwords/cm/v201402}ProductPartition. Did you mean {https://adwords.google.com/api/adwords/cm/v201402}ProductCondition?

Have a look at the soap request:

<?xml version="1.0" encoding="UTF-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
<RequestHeader xmlns="https://adwords.google.com/api/adwords/cm/v201402">
<partialFailure>false</partialFailure>
<userAgent>test-account (AwApi-Java, AdWords-AppEngine/1.29.0, Common-Java/1.29.0, JAX-WS/Unknown, Java/1.7.0, maven)</userAgent>
<developerToken>XXXXXXXXXXXXX</developerToken>
<clientCustomerId>1817523887</clientCustomerId>
</RequestHeader>
</soap:Header>
<soap:Body>
<get xmlns="https://adwords.google.com/api/adwords/cm/v201402" xmlns:ns2="https://adwords.google.com/api/adwords/video/v201402">
<serviceSelector>
<fields>AdGroupId</fields>
<fields>AgeRangeType</fields>
<fields>ApprovalStatus</fields>
<fields>Argument</fields>
<fields>BidModifier</fields>
<fields>BidType</fields>
<fields>BiddingStrategyId</fields>
<fields>BiddingStrategyName</fields>
<fields>BiddingStrategySource</fields>
<fields>BiddingStrategyType</fields>
<fields>CaseValue</fields>
<fields>CpcBid</fields>
<fields>CpcBidSource</fields>
<fields>CpmBid</fields>
<fields>CpmBidSource</fields>
<fields>CriteriaCoverage</fields>
<fields>CriteriaSamples</fields>
<fields>CriteriaType</fields>
<fields>CriterionUse</fields>
<fields>DestinationUrl</fields>
<fields>DisapprovalReasons</fields>
<fields>DisplayName</fields>
<fields>EnhancedCpcEnabled</fields>
<fields>ExperimentBidMultiplier</fields>
<fields>ExperimentDataStatus</fields>
<fields>ExperimentDeltaStatus</fields>
<fields>ExperimentId</fields>
<fields>FirstPageCpc</fields>
<fields>GenderType</fields>
<fields>Id</fields>
<fields>IsKeywordAdRelevanceAcceptable</fields>
<fields>IsLandingPageLatencyAcceptable</fields>
<fields>IsLandingPageQualityAcceptable</fields>
<fields>KeywordMatchType</fields>
<fields>KeywordText</fields>
<fields>MobileAppCategoryId</fields>
<fields>Operand</fields>
<fields>Parameter</fields>
<fields>ParentCriterionId</fields>
<fields>PartitionType</fields>
<fields>Path</fields>
<fields>PercentCpaBid</fields>
<fields>PercentCpaBidSource</fields>
<fields>PlacementUrl</fields>
<fields>QualityScore</fields>
<fields>Status</fields>
<fields>SystemServingStatus</fields>
<fields>Text</fields>
<fields>TopOfPageCpc</fields>
<fields>UserInterestId</fields>
<fields>UserInterestName</fields>
<fields>UserListId</fields>
<fields>UserListMembershipStatus</fields>
<fields>UserListName</fields>
<fields>VerticalId</fields>
<fields>VerticalParentId</fields>
<predicates>
<field>CriteriaType</field>
<operator>IN</operator>
<values>PRODUCT_PARTITION</values>
</predicates>
<ordering>
<field>AdGroupId</field>
<sortOrder>ASCENDING</sortOrder>
</ordering>
</serviceSelector>
</get>
</soap:Body>
</soap:Envelope>

Thanks in advance.

david

unread,
Jul 3, 2014, 9:11:32 AM7/3/14
to adwor...@googlegroups.com
Where are you sending this?

This exact request works OK sent to AdGroupCriterionService

GrueneOrchidee

unread,
Jul 3, 2014, 9:20:02 AM7/3/14
to adwor...@googlegroups.com
I use the java library adwords-appengine version 1.29.0.

I have an additional question: When I try reading ProductSalesChannel and ProductScope, nothing will be returned, although it's configured at AdWords. Is this still a BETA feature reading this items via API?

GrueneOrchidee

unread,
Jul 10, 2014, 6:50:11 AM7/10/14
to adwor...@googlegroups.com
Bug seems to be fixed with v201406. But I have still the following question:

When I try reading ProductSalesChannel and ProductScope, nothing will be returned, although it's configured at AdWords. Is this still a BETA feature reading this items via API v201406?

Mat Scales (AdWords API Team)

unread,
Jul 14, 2014, 8:36:42 AM7/14/14
to adwor...@googlegroups.com
Hi there,

No, those features are not Beta, and have been available in the API since v201402. What request are you sending? Both ProductScope and ProductSalesChannel are CampaignCriterion objects, so you should be querying the CampaignCriterionService.

Cheers,
Mat

GrueneOrchidee

unread,
Jul 24, 2014, 3:53:10 AM7/24/14
to adwor...@googlegroups.com
Hi Mat,

thank you for your answer. For getting the ProductScope, which I created by using the API, I made the following request and nothing was returned:


<?xml version="1.0" encoding="UTF-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
<RequestHeader xmlns="https://adwords.google.com/api/adwords/cm/v201406">
<partialFailure>false</partialFailure>
<userAgent>test-account (AwApi-Java, AdWords-AppEngine/1.30.0, Common-Java/1.30.0, JAX-WS/Unknown, Java/1.7.0, maven)</userAgent>
<developerToken>XXXXXXXXXXXXXXXXXXXXXX</developerToken>

<clientCustomerId>1817523887</clientCustomerId>
</RequestHeader>
</soap:Header>
<soap:Body>
<get xmlns="https://adwords.google.com/api/adwords/cm/v201406" xmlns:ns2="https://adwords.google.com/api/adwords/express/v201406" xmlns:ns3="https://adwords.google.com/api/adwords/rm/v201406" xmlns:ns4="https://adwords.google.com/api/adwords/mcm/v201406" xmlns:ns5="https://adwords.google.com/api/adwords/billing/v201406" xmlns:ns6="https://adwords.google.com/api/adwords/o/v201406" xmlns:ns7="https://adwords.google.com/api/adwords/ch/v201406">
<serviceSelector>
<fields>Address</fields>
<fields>AgeRangeType</fields>

<fields>Argument</fields>
<fields>BidModifier</fields>
<fields>CampaignId</fields>
<fields>CarrierCountryCode</fields>
<fields>CarrierName</fields>
<fields>ContentLabelType</fields>
<fields>CriteriaType</fields>
<fields>DayOfWeek</fields>
<fields>DeviceName</fields>
<fields>DeviceType</fields>
<fields>Dimensions</fields>
<fields>DisplayName</fields>
<fields>DisplayType</fields>
<fields>EndHour</fields>
<fields>EndMinute</fields>
<fields>GenderType</fields>
<fields>GeoPoint</fields>
<fields>Id</fields>
<fields>IsNegative</fields>

<fields>KeywordMatchType</fields>
<fields>KeywordText</fields>
<fields>LanguageCode</fields>
<fields>LanguageName</fields>
<fields>LocationName</fields>
<fields>ManufacturerName</fields>
<fields>MatchingFunction</fields>

<fields>MobileAppCategoryId</fields>
<fields>Operand</fields>
<fields>OperatingSystemName</fields>
<fields>OperatorType</fields>
<fields>OsMajorVersion</fields>
<fields>OsMinorVersion</fields>
<fields>ParentLocations</fields>
<fields>Path</fields>
<fields>PlacementUrl</fields>
<fields>PlatformName</fields>
<fields>RadiusDistanceUnits</fields>
<fields>RadiusInUnits</fields>
<fields>StartHour</fields>
<fields>StartMinute</fields>
<fields>TargetingStatus</fields>
<fields>Text</fields>

<fields>UserInterestId</fields>
<fields>UserInterestName</fields>
<fields>UserListId</fields>
<fields>UserListMembershipStatus</fields>
<fields>UserListName</fields>
<fields>VerticalId</fields>
<fields>VerticalParentId</fields>
<predicates>
<field>CampaignId</field>
<operator>IN</operator>
<values>217641084</values>
</predicates>

<predicates>
<field>CriteriaType</field>
<operator>IN</operator>
<values>PRODUCT_SALES_CHANNEL</values>
<values>PRODUCT_SCOPE</values>
</predicates>
<predicates>
<field>IsNegative</field>
<operator>EQUALS</operator>
<values>true</values>
</predicates>
<ordering>
<field>CampaignId</field>

<sortOrder>ASCENDING</sortOrder>
</ordering>
</serviceSelector>
</get>
</soap:Body>
</soap:Envelope>

The SOAP response:


<?xml version="1.0" encoding="UTF-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
<ResponseHeader xmlns="https://adwords.google.com/api/adwords/cm/v201406">
<requestId>0004feeb77c5c1080aec85afc7005e45</requestId>
<serviceName>CampaignCriterionService</serviceName>
<methodName>get</methodName>
<operations>1</operations>
<responseTime>180</responseTime>
</ResponseHeader>
</soap:Header>
<soap:Body>
<getResponse xmlns="https://adwords.google.com/api/adwords/cm/v201406">
<rval>
<totalNumEntries>0</totalNumEntries>
<Page.Type>CampaignCriterionPage</Page.Type>
</rval>
</getResponse>
</soap:Body>
</soap:Envelope>

Mel G

unread,
Aug 28, 2014, 4:51:54 AM8/28/14
to adwor...@googlegroups.com
Hi Mat,

that solved the problem. Thank you very much.

Cheers Mel


2014-07-24 15:14 GMT+02:00 <adwor...@googlegroups.com>:
Hi there,

Can you try the request again, but without the IsNegative EQUALS true predicate? Let's rule out the possibility that another filter is causing the problem.

Cheers,
Mat


=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
    http://googleadsdeveloper.blogspot.com/search/label/adwords_api
    https://developers.google.com/adwords/api/community/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwor...@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscribe@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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

GrueneOrchidee

unread,
Aug 28, 2014, 4:53:51 AM8/28/14
to adwor...@googlegroups.com
If I don't use the filter IsNegative, it works for me.

Thank you!

Am Donnerstag, 3. Juli 2014 13:31:37 UTC+2 schrieb GrueneOrchidee:
Reply all
Reply to author
Forward
0 new messages