Re: manualCPC exception

2010-08-26 Thread AdWords API Advisor
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

manualCPC exception

2010-08-25 Thread Syed
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.Conver