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

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/7a8d9c01-5752-4f90-acba-81854fda55c8n%40googlegroups.com.

Reply via email to