Hello,
I am setting Campaign Criterion with listingScope but it returns INTERNAL_ERROR.
My codes in PHP are :
// Constructs a campaign criterion for the specified campaign ID using listing scope.
$productTypeInfo = new ProductTypeInfo(['value' => $categoryName]);
$listDimensionInfo = new ListingDimensionInfo(['product_type' => $productTypeInfo]);
$campaignCriterion = new CampaignCriterion([
'listing_scope' => new ListingScopeInfo(['dimensions' => [$listDimensionInfo]]),
'campaign' => $campaignResourceName
]);
return new CampaignCriterionOperation(['create' => $campaignCriterion]);
Am I doing something wrong here?
I can send you more details if needed.
Thank you.
Yoshie