Ejay
Thank you very much. That was it. I was adding it in advertisingChannelType
not the advertisingChannelSubType
I am now able to create a smart campaign and an adgroup for it. Although
now i am getting an error creating product partitions for the adgroup.
I now get this error:
[CriterionError.INVALID_PRODUCT_BIDDING_CATEGORY @
operations[6].operand.criterion.caseValue;
trigger:'ProductBiddingCategory{type=BIDDING_CATEGORY_L1,
canonicalValue=null, value=ProductCategoryId: 0, countryCode=null}',
AdGroupCriterionError.PRODUCT_PARTITION_REQUIRES_SAME_DIMENSION_TYPE_AS_SIBLINGS
@ operations;
trigger:'com.google.ads.api.serviceimpls.campaignmgmt.criterion.adgroupcriterion.ProductPartitionTree$Node@7244d096']
Here is the request being sent:
<?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/v201809"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SOAP-ENV:Header>
<ns1:RequestHeader>
<ns1:clientCustomerId>{clientCustomerId}</ns1:clientCustomerId>
<ns1:developerToken>{developerToken}</ns1:developerToken>
<ns1:userAgent>SandO (AwApi-PHP, googleads-php-lib/40.0.0,
PHP/7.1.25-1+ubuntu14.04.1+deb.sury.org+1)</ns1:userAgent>
<ns1:validateOnly>false</ns1:validateOnly>
<ns1:partialFailure>false</ns1:partialFailure>
</ns1:RequestHeader>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
<ns1:mutate>
<ns1:operations>
<ns1:operator>ADD</ns1:operator>
<ns1:operand xsi:type="ns1:BiddableAdGroupCriterion">
<ns1:adGroupId>77626575824</ns1:adGroupId>
<ns1:criterion xsi:type="ns1:ProductPartition">
<ns1:id>-1</ns1:id>
<ns1:partitionType>SUBDIVISION</ns1:partitionType>
</ns1:criterion>
<ns1:biddingStrategyConfiguration />
</ns1:operand>
</ns1:operations>
<ns1:operations>
<ns1:operator>ADD</ns1:operator>
<ns1:operand xsi:type="ns1:BiddableAdGroupCriterion">
<ns1:adGroupId>77626575824</ns1:adGroupId>
<ns1:criterion xsi:type="ns1:ProductPartition">
<ns1:partitionType>UNIT</ns1:partitionType>
<ns1:parentCriterionId>-1</ns1:parentCriterionId>
<ns1:caseValue xsi:type="ns1:ProductCustomAttribute">
<ns1:type>CUSTOM_ATTRIBUTE_0</ns1:type>
<ns1:value>Green</ns1:value>
</ns1:caseValue>
</ns1:criterion>
<ns1:biddingStrategyConfiguration />
</ns1:operand>
</ns1:operations>
<ns1:operations>
<ns1:operator>ADD</ns1:operator>
<ns1:operand xsi:type="ns1:BiddableAdGroupCriterion">
<ns1:adGroupId>77626575824</ns1:adGroupId>
<ns1:criterion xsi:type="ns1:ProductPartition">
<ns1:partitionType>UNIT</ns1:partitionType>
<ns1:parentCriterionId>-1</ns1:parentCriterionId>
<ns1:caseValue xsi:type="ns1:ProductCustomAttribute">
<ns1:type>CUSTOM_ATTRIBUTE_1</ns1:type>
<ns1:value>Blue</ns1:value>
</ns1:caseValue>
</ns1:criterion>
<ns1:biddingStrategyConfiguration />
</ns1:operand>
</ns1:operations>
<ns1:operations>
<ns1:operator>ADD</ns1:operator>
<ns1:operand xsi:type="ns1:BiddableAdGroupCriterion">
<ns1:adGroupId>77626575824</ns1:adGroupId>
<ns1:criterion xsi:type="ns1:ProductPartition">
<ns1:partitionType>UNIT</ns1:partitionType>
<ns1:parentCriterionId>-1</ns1:parentCriterionId>
<ns1:caseValue xsi:type="ns1:ProductCustomAttribute">
<ns1:type>CUSTOM_ATTRIBUTE_2</ns1:type>
<ns1:value>White</ns1:value>
</ns1:caseValue>
</ns1:criterion>
<ns1:biddingStrategyConfiguration />
</ns1:operand>
</ns1:operations>
<ns1:operations>
<ns1:operator>ADD</ns1:operator>
<ns1:operand xsi:type="ns1:BiddableAdGroupCriterion">
<ns1:adGroupId>77626575824</ns1:adGroupId>
<ns1:criterion xsi:type="ns1:ProductPartition">
<ns1:partitionType>UNIT</ns1:partitionType>
<ns1:parentCriterionId>-1</ns1:parentCriterionId>
<ns1:caseValue xsi:type="ns1:ProductCustomAttribute">
<ns1:type>CUSTOM_ATTRIBUTE_3</ns1:type>
<ns1:value>Black</ns1:value>
</ns1:caseValue>
</ns1:criterion>
<ns1:biddingStrategyConfiguration />
</ns1:operand>
</ns1:operations>
<ns1:operations>
<ns1:operator>ADD</ns1:operator>
<ns1:operand xsi:type="ns1:BiddableAdGroupCriterion">
<ns1:adGroupId>77626575824</ns1:adGroupId>
<ns1:criterion xsi:type="ns1:ProductPartition">
<ns1:partitionType>UNIT</ns1:partitionType>
<ns1:parentCriterionId>-1</ns1:parentCriterionId>
<ns1:caseValue xsi:type="ns1:ProductCustomAttribute">
<ns1:type>CUSTOM_ATTRIBUTE_4</ns1:type>
<ns1:value>Red</ns1:value>
</ns1:caseValue>
</ns1:criterion>
<ns1:biddingStrategyConfiguration />
</ns1:operand>
</ns1:operations>
<ns1:operations>
<ns1:operator>ADD</ns1:operator>
<ns1:operand xsi:type="ns1:BiddableAdGroupCriterion">
<ns1:adGroupId>77626575824</ns1:adGroupId>
<ns1:criterion xsi:type="ns1:ProductPartition">
<ns1:partitionType>UNIT</ns1:partitionType>
<ns1:parentCriterionId>-1</ns1:parentCriterionId>
<ns1:caseValue xsi:type="ns1:ProductBiddingCategory">
<ns1:type>BIDDING_CATEGORY_L1</ns1:type>
<ns1:value>0</ns1:value>
</ns1:caseValue>
</ns1:criterion>
<ns1:biddingStrategyConfiguration />
</ns1:operand>
</ns1:operations>
<ns1:operations>
<ns1:operator>ADD</ns1:operator>
<ns1:operand xsi:type="ns1:BiddableAdGroupCriterion">
<ns1:adGroupId>77626575824</ns1:adGroupId>
<ns1:criterion xsi:type="ns1:ProductPartition">
<ns1:partitionType>UNIT</ns1:partitionType>
<ns1:parentCriterionId>-1</ns1:parentCriterionId>
<ns1:caseValue xsi:type="ns1:ProductCanonicalCondition">
<ns1:condition>New</ns1:condition>
</ns1:caseValue>
</ns1:criterion>
<ns1:biddingStrategyConfiguration />
</ns1:operand>
</ns1:operations>
<ns1:operations>
<ns1:operator>ADD</ns1:operator>
<ns1:operand xsi:type="ns1:BiddableAdGroupCriterion">
<ns1:adGroupId>77626575824</ns1:adGroupId>
<ns1:criterion xsi:type="ns1:ProductPartition">
<ns1:partitionType>UNIT</ns1:partitionType>
<ns1:parentCriterionId>-1</ns1:parentCriterionId>
<ns1:caseValue xsi:type="ns1:ProductBrand">
<ns1:value>Nike</ns1:value>
</ns1:caseValue>
</ns1:criterion>
<ns1:biddingStrategyConfiguration />
</ns1:operand>
</ns1:operations>
</ns1:mutate>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Since it said
AdGroupCriterionError.PRODUCT_PARTITION_REQUIRES_SAME_DIMENSION_TYPE_AS_SIBLINGS
i tried using one of the other types being sent but that does work.
Please advise as to what needs to be fixed to attach these partitions to
the adgroup
Thank you
On Tuesday, May 21, 2019 at 4:34:27 AM UTC-4, adsapiforumadvisor wrote:
>
> Hi Bryan,
>
> Thanks for reaching out and for providing details.
>
> Could you confirm if you are trying to create a smart shopping campaign
> <https://developers.google.com/adwords/api/docs/guides/shopping#smart_shopping_campaigns>?
>
> If yes, upon checking the provided SOAP request logs, I noticed that the
> you did not included the *advertisingChannelSubType* field in your
> request and set as *SHOPPING_GOAL_OPTIMIZED_ADS*. With this, you may try
> to make an API call again and please refer to the link that I provided on
> how to configure and to create a *Smart Shopping campaigns*.
>
> Please let me know if you have further questions/clarifications.
>
> Regards,
> Ejay
> Google Ads API Team
>
>
> ref:_00D1U1174p._5001UAqDU8: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 [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/16f13c70-e07c-4c29-a0c9-51207d252c64%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.