Thanks. I want to Achieve: 1. Product Partition as : All Products except filters on Product_Type_L1 and except filters on CUSTOM_LABEL_0 I tried with Attcahed code and got Attched Errors.
2. In Same code please add code which can remove all existing product partitions first and send the coded structure for creating partitions. Gagan On Friday, May 8, 2020 at 2:05:02 AM UTC+5:30, adsapiforumadvisor wrote: > > Hi Gagan, > > Sorry to hear that the documentation isn't providing the info you need. > I've replied below inline on the 3 cases you mentioned. > > > > *Now I want to create one more level of SubDivision on the same. For > example:* > *1. Split childBiddableAdGroupCriterion into 2 Units again, one will > have CUSTOM_ATTRIBUTE_1 as "someValue2" and Everything Else.* > *This Means I want All products which have CUSTOM_ATTRIBUTE_1 as > "someValue2" AND CUSTOM_ATTRIBUTE_0 as "someValue1"* > > In a *single* request, submit the following operations: > > 1. Remove the existing *childBiddableAdGroupCriterion *UNIT node. > 2. Add a new SUBDIVISION node with a *criterion.id > <http://criterion.id>=-1* and *criterion.parentCriterionId* set to the > *criterion.parentCriterionId* of the removed node above. > 3. Add 2 child UNIT nodes of the new SUBDIVISION node, each with > *criterion.parentCriterionId > to -1*. Both will have a caseValue > > <https://developers.google.com/adwords/api/docs/reference/v201809/AdGroupCriterionService.ProductPartition#casevalue> > that's > a ProductCustomAttribute > > <https://developers.google.com/adwords/api/docs/reference/v201809/AdGroupCriterionService.ProductCustomAttribute> > with > type=CUSTOM_ATTRIBUTE_1. One should have *value="someValue"*, and the > other should leave *value* null (for "Everything else"). > > *OR * > *2. Split childNegativeAdGroupCriterion into 2 Units again, one will > have CUSTOM_ATTRIBUTE_1 as "someValue" and Everything Else.* > *This Means I want All products which have CUSTOM_ATTRIBUTE_1 as > "someValue2" AND does not have CUSTOM_ATTRIBUTE_0 as "someValue1"* > > This is similar to #1. Just make sure that when you add the new > SUBDIVISION node to replace the negative criterion, you add it as a > BiddableAdGroupCriterion. You cannot have a SUBDIVISION that is a > NegativeAdGroupCriterion, since a negative criterion excludes all products > that fall under its ProductPartition case value. > > *3. How to do above Operations in this campaign by replacing Whole Product > Partition Entities with Entirely new Product Partition Entities.* > > If you want to replace the entire tree, you can remove the root > AdGroupCriterion, which is the one with *criterion.parentCriterionId=null*. > Then you can issue operations that add *all* of the nodes of the tree as > desired. The removal of the root and the subsequent operations can all be > submitted in the same *mutate* request. > > One tip: to get comfortable with the structure of the tree and how it's > reflected in the API, I find it's helpful to modify the tree in the UI in > various ways on a test ad group, and then issue an > *AdGroupCriterionService.get()* to retrieve the resulting criteria. This > should cut down on trial and error when you implement the equivalent > actions using the API. > > Thanks, > Josh, Google Ads API Team > > ref:_00D1U1174p._5001UaSxD8:ref > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog: https://googleadsdeveloper.blogspot.com/ =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords API and Google Ads 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 and Google Ads API Forum" group. To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/6caad62c-8cdb-4706-8fc8-18779c9862d3%40googlegroups.com.
GoogleProductPartition
Description: Binary data
Errors
Description: Binary data