Hi,
I am trying to take an existing shopping campaign and duplicate it exactly
(different name) within the same account.
I have done the adgroups and campaign creation, but am confused by what I
do / do not need to specify when adding the product partition to the ad
groups. Please see my method below. I would appreciate it if you were able
to shed some light on this.
1) Retrieve all AdGroupCriterion in my adgroup with CriteriaType
"PRODUCT_PARTITION", fields downloaded: "AdGroupId", "CpcBid",
"CriteriaType", "PartitionType", "CaseValue"
2) Extract the root criterion like so:
foreach ($partitions as $partition)
{
if ($partition->criterion->parentCriterionId == "")
{
$adGroupId = $partition->adGroupId;
$roots[$adGroupId] = $partition;
}
}
3) Add the partition to the adgroup:
$oldPartition = root criterion found above;
$service = $user->GetService("AdGroupCriterionService", ADWORDS_VERSION);
$adGroupCriterion = new BiddableAdGroupCriterion();
$adGroupCriterion->adGroupId = $adGroup->getId();
$adGroupCriterion->criterion = $oldPartition->criterion;
$adGroupCriterion->criterion->id = -1;
$adGroupCriterion->biddingStrategyConfiguration =
$oldPartition->biddingStrategyConfiguration;
$adGroupCriterion->criterionUse = "BIDDABLE";
$adGroupCriterion->AdGroupCriterionType = "BiddableAdGroupCriterion";
$operation = new AdGroupCriterionOperation();
$operation->operand = $adGroupCriterion;
$operation->operator = "ADD";
4) When I perform the mutation I get the
error: PRODUCT_PARTITION_SUBDIVISION_REQUIRES_OTHERS_CASE
Many thanks,
Phil
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [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 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/de692110-c94b-4674-a61f-0469b9f710fb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.