Example NodeJS creative asset upload to DCM (DCM/DFA Reporting and Trafficking API)

182 views
Skip to first unread message

Scott

unread,
Apr 19, 2019, 1:18:44 PM4/19/19
to Google's DoubleClick Campaign Manager API Forum
HI there,

I'm trying to follow this guide to insert Creative Assets into DCM. I have the intention of uploading image assets to an advertiser.

What I am struggling to understand is how to specify the asset source within the request body. 

See the below:


Authorization: Bearer [YOUR_ACCESS_TOKEN]
Accept: application/json
Content-Type: application/json

{
  "assetIdentifier": {
    "name": "test",
    "type": "IMAGE"
  }
}

I have put my profile and advertiser id into the url params, what I don't understand is that if I wanted to upload an image, for example this 300x250 image  how do I specify this as the source in the request body?

I have tried searching for a number of ways to do so and testing, but nothing seems to be working. Is anyone able to point me in the right direction on this please?

So far I have been trying to use the in-browser API explorer provided by Google.

Thanks

Scott

dcmapi-fo...@google.com

unread,
Apr 19, 2019, 4:54:36 PM4/19/19
to google-doubleclick-...@googlegroups.com
Hi Scott,

You will find this trafficking guide helpful. Please check here for required query parameter. If you are still facing issues after following the guide and including the required parameter, please send the following details in a private message:

  1. API request and error response in JSON format
  2. Timestamp of the API request
  3. DCM account id 
  4. Profile id
In order to send the details in a private message you need to click Reply privately to author on this post.

Thanks,
Lakshmi, DCM API Team
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
    http://googleadsdeveloper.blogspot.com/search/label/dfa_api
    https://developers.google.com/doubleclick-advertisers/community
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

--
You received this message because you are subscribed to the Google Groups "Google's DoubleClick Campaign Manager API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-doubleclick-for-advertisers-api+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Bannerwise

unread,
Sep 23, 2019, 3:44:27 AM9/23/19
to Google's DoubleClick Campaign Manager API Forum
Hi Scott and Lakshmi,

Did you manage to make this work? I'm having the same issue. No idea how the API expects the request to be formed.

Cheers, Miguel 
Reply all
Reply to author
Forward
0 new messages