Tag datas never returned following placement.generatetags

11 views
Skip to first unread message

Joe Thomas

unread,
Jul 17, 2025, 10:15:44 AMJul 17
to Google's Campaign Manager 360 API Forum
I'm using javascript to generate click trags via the cm360 api however the placementTags object that is returned only has placementID and no tagDatas, as seen below:

placementTags: [ { placementId: <PLACEMENT ID> } ]

My request is structured like this:

dfareporting.placements.generatetags({ profileId: profileID, body: {}, placementIds: [<PLACEMENT_ID>], campaignId: <CAMPAIGNID>, tagFormats: ["PLACEMENT_TAG_STANDARD"] });

My placement was constructed with the below resource with no errors returned:

{
                    "kind": "dfareporting#placement",
                    "campaignId": "<CAMPAIGN ID>",
                    "name": "<PLACEMENT NAME>",
                    "directorySiteId": "<SITE ID>",
                    "paymentSource": "PLACEMENT_AGENCY_PAID",
                    "compatibility": "DISPLAY",
                    "tagSettings": {
                        "includeClickTracking": true,
                        "includeClickThroughUrls": true
                    },
                    "size": {
                        "width": 1,
                        "height": 1,
                        "kind": "dfareporting#size"
                    },
                    "pricingSchedule": {
                        "startDate": "<THE CURRENT DATE>",
                        "endDate": "2030-01-01",
                        "pricingType": "PRICING_TYPE_CPM"
                    },
                    "tagFormats": "PLACEMENT_TAG_STANDARD"
                  }`;

How can I ensure that tagDatas is returned?

Many thanks,


DCM API (DoubleClick Campaign Mgr)

unread,
Jul 17, 2025, 3:33:32 PMJul 17
to google-doubleclick-...@googlegroups.com
Hi,

Thank you for reaching out to the DCM API support team.

I understand that you are using the method placements.generatetags method which is returning only placementID and no tagDatas. In order to get the tagsData, I would suggest you to use the method placements.get where you can get the list of tagsData associated with the Placement Id. The method placements.generatetags is used for generating tags for a placement.
 
Thanks,
 
Google Logo DCM API Team

Feedback
How was our support today?

rating1    rating2    rating3    rating4    rating5
[2025-07-17 19:33:21Z GMT] This message is in relation to case "ref:!00D1U01174p.!500Ht01svxyB:ref" (ADR-00319221)



Reply all
Reply to author
Forward
0 new messages