How do I send a request body through a patch request

14 views
Skip to first unread message

Joe Thomas

unread,
Apr 29, 2024, 5:48:14 PMApr 29
to Google's Campaign Manager 360 API Forum
Hi there,

I'm quite new to using CM360s API and I'm trying to update the click through URL of a creative that's assigned to an ad by using the patch method but having no luck. My code looks like this: 

var creativeAssignment = DoubleClickCampaigns.Ads.patch(
adID, profileID, adID, request body)

Below is my request body:
{creativeRotation:{creativeAssignments:[{creativeId:215262189,sslCompliant:true,clickThroughUrl:{defaultLandingPage:true,computedClickThroughUrl:'https://www.themediapeople.com/'},active:true,applyEventTags:true,creativeIdDimensionValue:{value:215262189,etag:'06393c60e8426b2be2271bd5285e8833d65d67db',kind:'dfareporting#dimensionValue',dimensionName:'creativeId'}}],type:"CREATIVE_ROTATION_TYPE_RANDOM",weightCalculationStrategy:"WEIGHT_STRATEGY_EQUAL"},id:"585777104"}

Would you have any idea on what I'm doing wrong?

Many thanks,

DCM API (DoubleClick Campaign Mgr)

unread,
Apr 30, 2024, 2:14:43 AMApr 30
to google-doubleclick-...@googlegroups.com
Hello,

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

Can you please share the following details to investigate further:
  • DCM Account ID.
  • Complete JSON request and response logs.
  • Error screenshots (if any).
  • Advertiser ID and Campaign Id.
  • The user email / service account email used for authenticating the API query.
You can send them via Reply privately to the author or Direct reply to this email option.
 
This message is in relation to case "ref:!00D1U01174p.!5004Q02tIpZ6:ref" (ADR-00233093)

Thanks,
 
Google Logo DCM API Team


Reply all
Reply to author
Forward
0 new messages