Hi,

Yes i understood your point.

Delete Product Partition :

1. we can have single REMOVE and mutate request , if we had  " 
parentCriterionId 
<https://developers.google.com/adwords/api/docs/reference/v201402/AdGroupCriterionService.ProductPartition#parentCriterionId>
 " 

2. If we dont have "parentCriterionId 
<https://developers.google.com/adwords/api/docs/reference/v201402/AdGroupCriterionService.ProductPartition#parentCriterionId>"
 
 , then we will collect all the criterion ID and  use Each One Mutate 
Request for each ID.

----------------
My Question is :

i have created the Product Partition , Please have a look at this place  
here  <https://groups.google.com/d/msg/adwords-api/P6DYn6N3XTU/uZOMer9znAEJ>, 
then if i get Adgroup details,

It wont have " parentCriterionId",  i used same "createSubdivision" .

here with i attached the XML reponse  & Selector Result

Please have a look at selector result, i dont have any Criterion ID without 
NULL,

i need to have Parent Criterion ID to make SINGLE REMOVE in order to delete 
product Partition

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 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/d/optout.
AdGroupCriterionPage Object
(
    [entries] => Array
        (
            [0] => BiddableAdGroupCriterion Object
                (
                    [userStatus] => 
                    [systemServingStatus] => 
                    [approvalStatus] => 
                    [disapprovalReasons] => 
                    [destinationUrl] => 
                    [experimentData] => 
                    [firstPageCpc] => 
                    [topOfPageCpc] => 
                    [qualityInfo] => 
                    [biddingStrategyConfiguration] => 
                    [bidModifier] => 
                    [adGroupId] => 14859049093
                    [criterionUse] => BIDDABLE
                    [criterion] => ProductPartition Object
                        (
                            [partitionType] => 
                            [parentCriterionId] => 
                            [caseValue] => 
                            [id] => 18283950120
                            [type] => PRODUCT_PARTITION
                            [CriterionType] => ProductPartition
                            [_parameterMap:Criterion:private] => Array
                                (
                                    [Criterion.Type] => CriterionType
                                )

                        )

                    [forwardCompatibilityMap] => 
                    [AdGroupCriterionType] => BiddableAdGroupCriterion
                    [_parameterMap:AdGroupCriterion:private] => Array
                        (
                            [AdGroupCriterion.Type] => AdGroupCriterionType
                        )

                )

            [1] => BiddableAdGroupCriterion Object
                (
                    [userStatus] => 
                    [systemServingStatus] => 
                    [approvalStatus] => 
                    [disapprovalReasons] => 
                    [destinationUrl] => 
                    [experimentData] => 
                    [firstPageCpc] => 
                    [topOfPageCpc] => 
                    [qualityInfo] => 
                    [biddingStrategyConfiguration] => 
                    [bidModifier] => 
                    [adGroupId] => 14859049093
                    [criterionUse] => BIDDABLE
                    [criterion] => ProductPartition Object
                        (
                            [partitionType] => 
                            [parentCriterionId] => 
                            [caseValue] => 
                            [id] => 51320962143
                            [type] => PRODUCT_PARTITION
                            [CriterionType] => ProductPartition
                            [_parameterMap:Criterion:private] => Array
                                (
                                    [Criterion.Type] => CriterionType
                                )

                        )

                    [forwardCompatibilityMap] => 
                    [AdGroupCriterionType] => BiddableAdGroupCriterion
                    [_parameterMap:AdGroupCriterion:private] => Array
                        (
                            [AdGroupCriterion.Type] => AdGroupCriterionType
                        )

                )

            [2] => BiddableAdGroupCriterion Object
                (
                    [userStatus] => 
                    [systemServingStatus] => 
                    [approvalStatus] => 
                    [disapprovalReasons] => 
                    [destinationUrl] => 
                    [experimentData] => 
                    [firstPageCpc] => 
                    [topOfPageCpc] => 
                    [qualityInfo] => 
                    [biddingStrategyConfiguration] => 
                    [bidModifier] => 
                    [adGroupId] => 14859049093
                    [criterionUse] => BIDDABLE
                    [criterion] => ProductPartition Object
                        (
                            [partitionType] => 
                            [parentCriterionId] => 
                            [caseValue] => 
                            [id] => 72525531612
                            [type] => PRODUCT_PARTITION
                            [CriterionType] => ProductPartition
                            [_parameterMap:Criterion:private] => Array
                                (
                                    [Criterion.Type] => CriterionType
                                )

                        )

                    [forwardCompatibilityMap] => 
                    [AdGroupCriterionType] => BiddableAdGroupCriterion
                    [_parameterMap:AdGroupCriterion:private] => Array
                        (
                            [AdGroupCriterion.Type] => AdGroupCriterionType
                        )

                )

            [3] => BiddableAdGroupCriterion Object
                (
                    [userStatus] => 
                    [systemServingStatus] => 
                    [approvalStatus] => 
                    [disapprovalReasons] => 
                    [destinationUrl] => 
                    [experimentData] => 
                    [firstPageCpc] => 
                    [topOfPageCpc] => 
                    [qualityInfo] => 
                    [biddingStrategyConfiguration] => 
                    [bidModifier] => 
                    [adGroupId] => 14859049093
                    [criterionUse] => BIDDABLE
                    [criterion] => ProductPartition Object
                        (
                            [partitionType] => 
                            [parentCriterionId] => 
                            [caseValue] => 
                            [id] => 77470818613
                            [type] => PRODUCT_PARTITION
                            [CriterionType] => ProductPartition
                            [_parameterMap:Criterion:private] => Array
                                (
                                    [Criterion.Type] => CriterionType
                                )

                        )

                    [forwardCompatibilityMap] => 
                    [AdGroupCriterionType] => BiddableAdGroupCriterion
                    [_parameterMap:AdGroupCriterion:private] => Array
                        (
                            [AdGroupCriterion.Type] => AdGroupCriterionType
                        )

                )

        )

    [totalNumEntries] => 4
    [PageType] => AdGroupCriterionPage
    [_parameterMap:Page:private] => Array
        (
            [Page.Type] => PageType
        )

)
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"; 
xmlns:ns1="https://adwords.google.com/api/adwords/cm/v201402";>
  <SOAP-ENV:Header>
    <ns1:RequestHeader>
      <ns1:clientCustomerId>XX-XX-XX</ns1:clientCustomerId>
      <ns1:developerToken>XXXX</ns1:developerToken>
      <ns1:userAgent>x...@xxxx.com (AwApi-PHP/5.2.1, Common-PHP/5.2.1, 
PHP/5.3.3-7+squeeze19)</ns1:userAgent>
    </ns1:RequestHeader>
  </SOAP-ENV:Header>
  <SOAP-ENV:Body>
    <ns1:get>
      <ns1:serviceSelector>
        <ns1:fields>AdGroupId</ns1:fields>
        <ns1:predicates>
          <ns1:field>AdGroupId</ns1:field>
          <ns1:operator>IN</ns1:operator>
          <ns1:values>14859049093</ns1:values>
        </ns1:predicates>
        <ns1:predicates>
          <ns1:field>CriteriaType</ns1:field>
          <ns1:operator>IN</ns1:operator>
          <ns1:values>PRODUCT_PARTITION</ns1:values>
        </ns1:predicates>
        <ns1:predicates>
          <ns1:field>CriterionUse</ns1:field>
          <ns1:operator>IN</ns1:operator>
          <ns1:values>BIDDABLE</ns1:values>
        </ns1:predicates>
        <ns1:ordering>
          <ns1:field>Id</ns1:field>
          <ns1:sortOrder>ASCENDING</ns1:sortOrder>
        </ns1:ordering>
      </ns1:serviceSelector>
    </ns1:get>
  </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

HTTP/1.1 200 OK
Content-Type: text/xml; charset=UTF-8
Content-Encoding: gzip
Date: Tue, 17 Jun 2014 10:54:40 GMT
Expires: Tue, 17 Jun 2014 10:54:40 GMT
Cache-Control: private, max-age=0
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
Content-Length: 523
Server: GSE

<?xml version="1.0"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";>
  <soap:Header>
    <ResponseHeader xmlns="https://adwords.google.com/api/adwords/cm/v201402";>
      <requestId>0004fc05f8736de80a80818ad3005b0f</requestId>
      <serviceName>AdGroupCriterionService</serviceName>
      <methodName>get</methodName>
      <operations>1</operations>
      <responseTime>365</responseTime>
    </ResponseHeader>
  </soap:Header>
  <soap:Body>
    <getResponse xmlns="https://adwords.google.com/api/adwords/cm/v201402";>
      <rval>
        <totalNumEntries>4</totalNumEntries>
        <Page.Type>AdGroupCriterionPage</Page.Type>
        <entries xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xsi:type="BiddableAdGroupCriterion">
          <adGroupId>14859049093</adGroupId>
          <criterionUse>BIDDABLE</criterionUse>
          <criterion xsi:type="ProductPartition">
            <id>18283950120</id>
            <type>PRODUCT_PARTITION</type>
            <Criterion.Type>ProductPartition</Criterion.Type>
          </criterion>
          
<AdGroupCriterion.Type>BiddableAdGroupCriterion</AdGroupCriterion.Type>
        </entries>
        <entries xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xsi:type="BiddableAdGroupCriterion">
          <adGroupId>14859049093</adGroupId>
          <criterionUse>BIDDABLE</criterionUse>
          <criterion xsi:type="ProductPartition">
            <id>51320962143</id>
            <type>PRODUCT_PARTITION</type>
            <Criterion.Type>ProductPartition</Criterion.Type>
          </criterion>
          
<AdGroupCriterion.Type>BiddableAdGroupCriterion</AdGroupCriterion.Type>
        </entries>
        <entries xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xsi:type="BiddableAdGroupCriterion">
          <adGroupId>14859049093</adGroupId>
          <criterionUse>BIDDABLE</criterionUse>
          <criterion xsi:type="ProductPartition">
            <id>72525531612</id>
            <type>PRODUCT_PARTITION</type>
            <Criterion.Type>ProductPartition</Criterion.Type>
          </criterion>
          
<AdGroupCriterion.Type>BiddableAdGroupCriterion</AdGroupCriterion.Type>
        </entries>
        <entries xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xsi:type="BiddableAdGroupCriterion">
          <adGroupId>14859049093</adGroupId>
          <criterionUse>BIDDABLE</criterionUse>
          <criterion xsi:type="ProductPartition">
            <id>77470818613</id>
            <type>PRODUCT_PARTITION</type>
            <Criterion.Type>ProductPartition</Criterion.Type>
          </criterion>
          
<AdGroupCriterion.Type>BiddableAdGroupCriterion</AdGroupCriterion.Type>
        </entries>
      </rval>
    </getResponse>
  </soap:Body>
</soap:Envelope>

Reply via email to