HI Radosław, The service is returning only Criterion object (i.e. the base class), not a more specific class (Platform in this case), so I think the behaviour is correct. You should rely on the id (30001) rather than the Type field to resolve the type in this case.
Cheers, Anash P. Oommen, AdWords API Advisor. On Monday, May 20, 2013 3:43:54 PM UTC+5:30, Radosław Pociecha wrote: > > Hi, > > When fetching entities using AdGroupBidModifierService we observed that > Criterion.Type field for criterion is set to 'Criterion' instead of > 'Platform', also type field is not returned when CriteriaType is passed in > fields selector. > > Request body: > <soapenv:Body> > <get xmlns="https://adwords.google.com/api/adwords/cm/v201302"> > <selector> > <fields>CampaignId</fields> > <fields>AdGroupId</fields> > <fields>BidModifier</fields> > <fields>Id</fields> > <fields>BidModifierSource</fields> > <fields>CriteriaType</fields> > <predicates> > <field>AdGroupId</field> > <operator>IN</operator> > <values>__ADGROUP_ID__</values> > </predicates> > <predicates> > <field>BidModifierSource</field> > <operator>IN</operator> > <values>AD_GROUP</values> > </predicates> > </selector> > </get> > </soapenv:Body> > > Response body: > <soap:Body> > <getResponse xmlns="https://adwords.google.com/api/adwords/cm/v201302 > "> > <rval> > <totalNumEntries>1</totalNumEntries> > <Page.Type>AdGroupBidModifierPage</Page.Type> > <entries> > <campaignId>__CAMPAIGN_ID__</campaignId> > <adGroupId>__ADGROUP_ID__</adGroupId> > <criterion> > <id>30001</id> > <Criterion.Type>Criterion</Criterion.Type> > </criterion> > <bidModifier>0.9</bidModifier> > <bidModifierSource>AD_GROUP</bidModifierSource> > </entries> > </rval> > </getResponse> > </soap:Body> > > Is this correct behavoiur ? > > Radosław Pociecha > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and discussion group: http://adwordsapi.blogspot.com http://groups.google.com/group/adwords-api =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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. For more options, visit https://groups.google.com/groups/opt_out.