How cm369 api assigns a creative to a campaign?
var campaign = DoubleClickCampaigns.Campaigns.get(profileID, ss.getRangeByName(named_range_campaign_id).getValue());
if (campaign.creativeGroupIds == undefined){
campaign.creativeGroupIds = [];
}
//campaign.creative = campaign.creativeGroupIds.concat(creative.id);
DoubleClickCampaigns.Campaigns.update(campaign, profileID);
Following this doc I have tried to create a creative.
I get this error, but cannot find the API way to assign a creative to a campaign.
That is done with a different API:
https://developers.devsite.corp.google.com/doubleclick-advertisers/rest/v3.4/campaignCreativeAssociations/insert