Dannah Adesanya
unread,May 10, 2024, 8:50:43 AMMay 10Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Google's Campaign Manager 360 API Forum
This the example of the code!
function _createOneTrackingCreative(ss, singleTrackingCreativeArray){
var profileID = _fetchProfileId();
var advertiserId = singleTrackingCreativeArray[0];
var campaignId = singleTrackingCreativeArray [1]
var name = singleTrackingCreativeArray[2];
var width = singleTrackingCreativeArray[3];
var height = singleTrackingCreativeArray[4];
var creativeType = singleTrackingCreativeArray[5];
var creativeResource = {
"name": name,
"advertiserId": advertiserId,
"campaignId" : campaignId,
"size": {
"width": width,
"height": height
},
"active": true,
"type": creativeType,
}
for (var i = 1; i < values.length; i++) { // exclude header row
var newCreative = _createOneTrackingCreative(ss, values[i]);
var rowNum = i+1;
sheet.getRange('H' + rowNum)
.setValue(newCreative.id)
.setBackground('lightgray');
var newTrackingCreative = DoubleClickCampaigns.Creatives
.insert(TrackingcreativeResource, profileID);
return newTrackingCreative;
}
};
It doesn't recognize type as a tracking creative! Is their possibly to another way to bulk assign creative impression tags?