Hi,

Tell me please how can I pass Partitions to AdGroupCriterionOperations. It 
have no any suitable methods:

                ProductPartition rootPartition = new ProductPartition();
                
rootPartition.setPartitionType(ProductPartitionType.SUBDIVISION);
                // Create operation.
                AdGroupCriterionOperation criterionOperation = new 
AdGroupCriterionOperation();
                AdGroupCriterion adGroupCriterion = new AdGroupCriterion();
                adGroupCriterion.setAdGroupId(adGroup.getId());

// There should be adding partitions, It hink so. But how??

                criterionOperation.setOperator(Operator.ADD);
                criterionOperation.setOperand(adGroupCriterion);

вторник, 26 июня 2018 г., 10:39:21 UTC+3 пользователь Dannison Yao (AdWords 
API Team) написал:
>
> Hi,
>
> Unfortunately, we do not have an exact sample code on how to use Batch Job 
> Processing for Product Partition, however, you can pattern your code on 
> this example 
> <https://developers.google.com/adwords/api/docs/guides/batch-jobs#create_operations_for_the_batch_job>
>  to 
> create your product partition tree. You can then specify a ProductPartition 
> root and your partition nodes as stated here 
> <https://developers.google.com/adwords/api/docs/guides/shopping#partitioning> 
> and 
> pass them to the AdGroupCriterionOperation 
> <https://developers.google.com/adwords/api/docs/reference/v201806/AdGroupCriterionService.AdGroupCriterionOperation>
>  before 
> ultimately passing it to the BatchJobService itself.
>
> You may note that you can pass multiple operations and the BatchJobService 
> will handle all these operations in a single request.
>
> Regards,
> Dannison
> AdWords API Team
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [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 and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/4671aabb-605f-484b-8845-ad3174fd90b0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • ... Константин Латыпов
    • ... 'Dannison Yao (AdWords API Team)' via AdWords API and Google Ads API Forum
      • ... Константин Латыпов
        • ... 'Dannison Yao (AdWords API Team)' via AdWords API and Google Ads API Forum
          • ... Константин Латыпов
            • ... 'Dannison Yao (AdWords API Team)' via AdWords API and Google Ads API Forum
              • ... Константин Латыпов
                • ... 'Dannison Yao (AdWords API Team)' via AdWords API and Google Ads API Forum
                • ... Константин Латыпов
                • ... 'Dannison Yao (AdWords API Team)' via AdWords API and Google Ads API Forum
                • ... Константин Латыпов
                • ... 'Dannison Yao (AdWords API Team)' via AdWords API and Google Ads API Forum
                • ... Константин Латыпов
                • ... 'Anash P. Oommen (AdWords API Team)' via AdWords API and Google Ads API Forum
                • ... Константин Латыпов
                • ... 'Anash P. Oommen (AdWords API Team)' via AdWords API and Google Ads API Forum
                • ... Константин Латыпов

Reply via email to