Hi, Please see my responses below in blue.
Cheers, Josh, AdWords API Team On Thursday, June 12, 2014 9:11:17 AM UTC-4, [email protected] wrote: > > Hi Josh, > > Thank you for your entire guidance to my questions , it really helps me > lot > > Again i have few questions : > > 1. I used " REMOVE" product partition for existing Adgroup , After > that , if i checked with selector , i got the below > > AdGroupCriterionPage Object > > ( > [entries] => > [totalNumEntries] => 0 > [PageType] => AdGroupCriterionPage > [_parameterMap:Page:private] => Array > ( > [Page.Type] => PageType > ) > > ) > > > > Next, i have used below code to " Make New Product Partition " , but it seems > not working > > > > $adGroupCriterionService = > $user->GetService('AdGroupCriterionService',"v201402"); > > $helper = new ProductPartitionHelper($var_adgroup_id); > > $root = $helper->createSubdivision(); > > $helper->createUnit($root, new ProductOfferId("GT_34505"),100000); > > > $helper->createUnit($root,new ProductOfferId()); > > $result = $adGroupCriterionService->mutate($helper->getOperations()); > > > - I got the > > > An error has occurred: > [AdGroupCriterionError.PRODUCT_PARTITION_ALREADY_EXISTS @ > operations[0].operand.criterion, > AdGroupCriterionError.PRODUCT_PARTITION_DOES_NOT_EXIST @ > operations[1].operand.criterion.parentCriterionId; > trigger:'TempCriterionId{id=1}', > AdGroupCriterionError.PRODUCT_PARTITION_DOES_NOT_EXIST @ > operations[2].operand.criterion.parentCriterionId; > trigger:'TempCriterionId{id=1}', > AdGroupCriterionError.PRODUCT_PARTITION_DOES_NOT_EXIST @ > operations[3].operand.criterion.parentCriterionId; > trigger:'TempCriterionId{id=1}', > > That code should work, although I noticed that the error references a *TempCriterionId* of *positive* 1, but *TempCriterionId* values should be negative. Have you made any changes to the *ProductPartitionHelper*? > > > --------------------------------- > > > 2. can we have any Functions to get the status of Account > > > for example : howmany operations we did today ? like that > > Please see the discussion on operation counts here <https://groups.google.com/d/msg/adwords-api/zWXctUJECuQ/xApthkr7SygJ>. Also, when posting to the forum, could you create a separate post for unrelated questions? To make search results more meaningful to forum users, we like to have topics that focus on one particular area. > Looking forward your help > > > Thanks > > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 [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 --- 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
