Edit the creative assignment using DCM API

333 views
Skip to first unread message

Noel So

unread,
Aug 21, 2016, 8:47:25 AM8/21/16
to Google's DoubleClick Campaign Manager API Forum
Hi All,

May I know the following questions about creative assignment?
1. May I know how can I assign an creative to multiple Ads like the DCM front-end? E.g. Like the following function in the front-end:


2. Because at the moment, we can't find the above API, so we choose to start from the Ad level (although this would not be ideal in our case as we will be making lots of API call)


I try to use the AD Patch API to edit the Creative assignment:
PATCH https://www.googleapis.com/dfareporting/v2.6/userprofiles/2078001/ads?id=309449630&key={YOUR_API_KEY}
{
"creativeRotation": {
 "creativeAssignments": [
  {
   "creativeId": "73703397",
   "startTime": "2016-11-14T13:15:03-08:00",
   "endTime": "2019-02-14T13:15:03-08:00",
   "clickThroughUrl": {
    "landingPageId": "8141763"
   }
  }
 ]
}
}


However, I got the following errors:
{
"error": {
 "errors": [
  {
   "domain": "global",
   "reason": "invalid",
   "message": "12058 : At least one active creative must be assigned to any active ad. Also, the creative must have \"Include in rotation\" set to \"Yes\" in your ad properties."
  }
 ],
 "code": 400,
 "message": "12058 : At least one active creative must be assigned to any active ad. Also, the creative must have \"Include in rotation\" set to \"Yes\" in your ad properties."
}
}

I checked that both the creative and Ad are active, and may I know what is the meaning of "Include in rotation" set to "yes" in your ad properties? Because I can't find this option in the front-end of creative assignment section in the creative dialog

Thanks,
Noel

Lakshmi(DCM API Team)

unread,
Aug 22, 2016, 5:22:48 PM8/22/16
to Google's DoubleClick Campaign Manager API Forum
Hi Noel,

Could you please provide the accountId in a private message? I need this information to investigate the issue against your account.

Thanks,
Lakshmi, DCM API Team

Raduta Alex-Radu

unread,
Jan 30, 2018, 4:07:07 PM1/30/18
to Google's DoubleClick Campaign Manager API Forum
Figured out what was the problem? I am having the same issue when i try to upload new ads ....

Lakshmi Prathipati (DCM API Team)

unread,
Jan 30, 2018, 4:28:24 PM1/30/18
to Google's DoubleClick Campaign Manager API Forum
Hi,

Could you please start a new thread with details of the issue you are facing with DCM API? I need the following details in a private message:
  1. DCM API request and response in JSON format
  2. Are you able to perform the same action in the UI?
  3. Profile id
  4. DCM account id

Vitaly Tarasiuk

unread,
Jun 20, 2019, 9:24:09 AM6/20/19
to Google's DoubleClick Campaign Manager API Forum
Hi, Have the same issue ...

Was this issue solved ? 

please

בתאריך יום שלישי, 30 בינואר 2018 בשעה 23:28:24 UTC+2, מאת Lakshmi Prathipati (DCM API Team):

DCM API (DoubleClick Campaign Mgr)

unread,
Jun 20, 2019, 3:15:57 PM6/20/19
to vital.t...@gmail.com, google-doubleclick-...@googlegroups.com
Hi,

Please start a new thread for the issue you are facing with DCM API. After starting a new thread, you can send the following details using 'reply privately to author' option:
  1. DCM API request and response in JSON format
  2. Are you able to perform the same action in the UI?
  3. Profile id
  4. DCM account id
Thanks,
Lakshmi, DCM API Team

ref:_00D1U1174p._5001UCYaWG:ref
Reply all
Reply to author
Forward
0 new messages