Hi Syed,

You need to check if the value returned by adGroup.getBids() is an
instance of ManualCPCAdGroupBids before casting it into
ManualCPCAdGroupBids. As per
http://code.google.com/apis/adwords/v2009/docs/reference/BulkMutateJobService.AdGroup.html#bids,
AdGroup.bids is of type AdGroupBids, and may hold any type derived
from it.

Cheers,
Anash P. Oommen,
AdWords API Advisor.

On Aug 25, 9:51 pm, Syed <[email protected]> wrote:
> When i was trying this line of code am getting the following
> exception..
>
> I was actually trying to get MAXCPC values for adgroup.
>
> System.out.println(" Max CPC : " + ((ManualCPCAdGroupBids)
> adgroup.getBids()).getSiteMaxCpc());
>
> java.lang.ClassCastException:
> com.google.api.adwords.v200909.cm.ConversionOptimizerAdGroupBids
> cannot be cast to
> com.google.api.adwords.v200909.cm.ManualCPCAdGroupBids
>
> please tell me how to overcome this exception. Urgent!!!
>
> Thanks.

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en

Reply via email to