var customLabel3 = productGroup.newChild().itemIdBuilder().withValue("test").withBid(0.13).build();
var customLabel3 = productGroup.newChild().customLabelBuilder().withType("CUSTOM_LABEL_3").withValue("test").withBid(0.13).build();
Update Partition type | UNIT | No change |
Attempted new value: SUBDIVISION |
Add Product partition | -- | -- |
|
Add Product partition | -- | -- |
|
function main() {
var campaign = AdWordsApp.shoppingCampaigns().withCondition("Name = 'test shopping campaign'").get().next();
var ag = campaign.adGroups().get().next();
var root = ag.rootProductGroup();
var customLabel3 = root.newChild().customLabelBuilder().withType("CUSTOM_LABEL_3").withValue("test").withBid(0.13).build();
}
Logger.log(customLabel3.getErrors());
[REQUIRED: RequiredError.REQUIRED : criterion.caseValue.type]
though when previewing the script everything seems ok.
"Cannot find function adGroups in object {lpurl}?CMP=KNC-GNL-FNL-GEN-SHOPPING-SCRIPT-PAN&mckv={_mckv}. (line 529)"
--
-- You received this message because you are subscribed to the Google Groups AdWords Scripts Forum group. Please do not reply to this email. To post to this group or unsubscribe please visit https://developers.google.com/adwords/scripts/community.
---
You received this message because you are subscribed to the Google Groups "Google Ads Scripts Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to adwords-scripts+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-scripts/c9197df9-8cc7-46a9-8fe8-8c6c8ad19d81%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.