Re: Google AdWords API: RequiredError.REQUIRED, operations[0].operand.criterion.parentCriterionId, and PRODUCT_PARTITION_DOES_NOT_EXIST

2020-05-21 Thread Google Ads API Forum Advisor Prod
Hi Gagan, I'll share the example link again: https://github.com/googleads/googleads-java-lib/blob/master/examples/adwords_axis/src/main/java/adwords/axis/v201809/shoppingcampaigns/AddProductPartitionTree.java The tree is a feature that the Java client library provides. The underlying API only g

Re: Google AdWords API: RequiredError.REQUIRED, operations[0].operand.criterion.parentCriterionId, and PRODUCT_PARTITION_DOES_NOT_EXIST

2020-05-13 Thread gagan gupta
Hi Anash, Thanks. 1. Unable to open link in "associated code example ", shows error. 2. I tried fetching the data for

Re: Google AdWords API: RequiredError.REQUIRED, operations[0].operand.criterion.parentCriterionId, and PRODUCT_PARTITION_DOES_NOT_EXIST

2020-05-13 Thread gagan gupta
Unable to open link in "associated code example " On Saturday, May 9, 2020 at 2:11:18 AM UTC+5:30, adsapiforumadvisor w

Re: Google AdWords API: RequiredError.REQUIRED, operations[0].operand.criterion.parentCriterionId, and PRODUCT_PARTITION_DOES_NOT_EXIST

2020-05-08 Thread Google Ads API Forum Advisor Prod
Hi Gagan, Perhaps you can use the Java client library and its associated code example ? It provides a utility class that abstracts the partition tree complexity. You can see its source code here. Cheers Anash ref:_00D1U1174p._5001UaSxD8:ref -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=

Re: Google AdWords API: RequiredError.REQUIRED, operations[0].operand.criterion.parentCriterionId, and PRODUCT_PARTITION_DOES_NOT_EXIST

2020-05-08 Thread gagan gupta
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 s

Re: Google AdWords API: RequiredError.REQUIRED, operations[0].operand.criterion.parentCriterionId, and PRODUCT_PARTITION_DOES_NOT_EXIST

2020-05-07 Thread Google Ads API Forum Advisor Prod
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

Re: Google AdWords API: RequiredError.REQUIRED, operations[0].operand.criterion.parentCriterionId, and PRODUCT_PARTITION_DOES_NOT_EXIST

2020-05-06 Thread gagan gupta
Thanks, Josh, I am having trouble that the documentation is not easy to follow and examples that are mentioned in the documentation does not explain it cleanly. For example, I want to achieve the following, which I am unable to and falling into the Hit and trials, as discussed earlier: *Now

Re: Google AdWords API: RequiredError.REQUIRED, operations[0].operand.criterion.parentCriterionId, and PRODUCT_PARTITION_DOES_NOT_EXIST

2020-05-06 Thread Google Ads API Forum Advisor Prod
Hi Gagan, Regarding your most recent reply, the Google Ads API (currently in beta) provides both gRPC/protobuf and REST/JSON endpoints, so we are taking steps in the direction you mentioned. I realize that maintaining product partitions can be challenging since the nodes in the tree are return

Re: Google AdWords API: RequiredError.REQUIRED, operations[0].operand.criterion.parentCriterionId, and PRODUCT_PARTITION_DOES_NOT_EXIST

2020-05-06 Thread gagan gupta
And why are you still using the SOAP and SDKs, when you can easily expose it over the JSON formattable REST APIs with OAuth tokens. 1. In this way, you guys will not need to manage every SDK in different language. 2. You can easily use Spring Boot or similar tools to do the same. In the end just

Re: Google AdWords API: RequiredError.REQUIRED, operations[0].operand.criterion.parentCriterionId, and PRODUCT_PARTITION_DOES_NOT_EXIST

2020-05-06 Thread gagan gupta
Believe me, this is the most confusing documentation I have ever seen. https://github.com/googleads/googleads-java-lib/wiki/Shopping-product-partition-utility-for-AdWords I have No idea what this is suggesting. Especially this part "Sample use case": The tasks mentioned and examples mentioned are

Re: Google AdWords API: RequiredError.REQUIRED, operations[0].operand.criterion.parentCriterionId, and PRODUCT_PARTITION_DOES_NOT_EXIST

2020-05-05 Thread Google Ads API Forum Advisor Prod
Hi Gagan, Thank you for the suggestion. The Shopping product partition utility I mentioned earlier was designed with similar goals in mind, as it provides a tree facade over the product partition criteria so users can just work with the tree structure and then have the utility generate the requ

Re: Google AdWords API: RequiredError.REQUIRED, operations[0].operand.criterion.parentCriterionId, and PRODUCT_PARTITION_DOES_NOT_EXIST

2020-05-04 Thread gagan gupta
Ok, I will try this. One Suggestion: You can implement Facade Design Patterns to hide complexity and expose the simple Facade to End User. I this way, not all product partition complexity will be exposed to end-user, you can create a wrapper on top of this, and end-user will see a simple facade

Re: Google AdWords API: RequiredError.REQUIRED, operations[0].operand.criterion.parentCriterionId, and PRODUCT_PARTITION_DOES_NOT_EXIST

2020-05-04 Thread Google Ads API Forum Advisor Prod
Hi, To convert a UNIT (leaf) node to a SUBDIVISION, you need to have the following operations in the same request: Remove the existing UNIT node. Add a new SUBDIVISION node. Add child UNIT nodes of the new SUBDIVISION node. Please see this section of the Shopping campaigns guide . Thanks, Josh

Re: Google AdWords API: RequiredError.REQUIRED, operations[0].operand.criterion.parentCriterionId, and PRODUCT_PARTITION_DOES_NOT_EXIST

2020-05-04 Thread gagan gupta
Wonderful and Respectful, this worked for now :) 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

Re: Google AdWords API: RequiredError.REQUIRED, operations[0].operand.criterion.parentCriterionId, and PRODUCT_PARTITION_DOES_NOT_EXIST

2020-05-01 Thread Google Ads API Forum Advisor Prod
Hi Gagan, The PRODUCT_PARTITION_SUBDIVISION_REQUIRES_OTHERS_CASE error will occur if the only node you create is the root node. If instead you create the root node (without a caseValue) and its children all in the same mutate request (as shown below), then the request should succeed. // Create

Re: Google AdWords API: RequiredError.REQUIRED, operations[0].operand.criterion.parentCriterionId, and PRODUCT_PARTITION_DOES_NOT_EXIST

2020-05-01 Thread gagan gupta
Thanks. Yes, I tried First Approach already and realized that this gives an error: PRODUCT_PARTITION_SUBDIVISION_REQUIRES_OTHERS_CASE This means an Empty correct case Value needs to be given. The 2nd approach I want to try but the examples are poor in the documentation. My Body Panicked trying th

Re: Google AdWords API: RequiredError.REQUIRED, operations[0].operand.criterion.parentCriterionId, and PRODUCT_PARTITION_DOES_NOT_EXIST

2020-05-01 Thread Google Ads API Forum Advisor Prod
Hi, Reading through your code, it appears that you are attempting to make the root node of the tree have a caseValue set to a dimension of type CUSTOM_ATTRIBUTE_0. However, the root node should not have a caseValue since it is meant to capture all products. To fix this, you could comment out th

Re: Google AdWords API: RequiredError.REQUIRED, operations[0].operand.criterion.parentCriterionId, and PRODUCT_PARTITION_DOES_NOT_EXIST

2020-05-01 Thread Google Ads API Forum Advisor Prod
Hi Gagan, Our team is looking into the issue you have. We will get back to you as soon as possible. Thanks and regards, Xiaoming, Google Ads API Team ref:_00D1U1174p._5001UaSxD8:ref -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog: https://googleadsdeveloper.blo

Re: Google AdWords API: RequiredError.REQUIRED, operations[0].operand.criterion.parentCriterionId, and PRODUCT_PARTITION_DOES_NOT_EXIST

2020-05-01 Thread gagan gupta
May I expect a response, please. Thanks. On Friday, May 1, 2020 at 12:28:06 PM UTC+5:30, gagan gupta wrote: > > Sure. Did That. > > On Friday, May 1, 2020 at 12:45:32 AM UTC+5:30, adsapiforumadvisor wrote: >> >> Hi Gagan, >> >> Thank you for reaching out. In order for me to further investigate,

Re: Google AdWords API: RequiredError.REQUIRED, operations[0].operand.criterion.parentCriterionId, and PRODUCT_PARTITION_DOES_NOT_EXIST

2020-04-30 Thread gagan gupta
Sure. Did That. On Friday, May 1, 2020 at 12:45:32 AM UTC+5:30, adsapiforumadvisor wrote: > > Hi Gagan, > > Thank you for reaching out. In order for me to further investigate, could > you please share the complete request and response logs and the complete > source code via the *Reply privately

RE: Google AdWords API: RequiredError.REQUIRED, operations[0].operand.criterion.parentCriterionId, and PRODUCT_PARTITION_DOES_NOT_EXIST

2020-04-30 Thread Google Ads API Forum Advisor Prod
Hi Gagan, Thank you for reaching out. In order for me to further investigate, could you please share the complete request and response logs and the complete source code via the Reply privately to author option? Thanks and regards, Xiaoming, Google Ads API Team ref:_00D1U1174p._5001UaSxD8:ref -