Google ad manager Lineitem create api

57 views
Skip to first unread message

Mehul Panchal

unread,
Apr 30, 2024, 5:18:48 AM4/30/24
to Google Ads API and AdWords API Forum
Hi,

I need to create lineitems by google api i need sample payload with required fields. I pass payload like this but its throwing unwanted errors.

{
  "orderId": "########",
  "name": "Testing Line Item 2",
  "startDateTimeType": "IMMEDIATELY",
  "endDateTime": {
    "date": {
      "year": 2024,
      "month": 5,
      "day": 15
    },
    "hour": 0,
    "minute": 0,
    "second": 0,
    "timeZoneId": "Asia/Kolkata"
  },
  "creativeRotationType": "OPTIMIZED",
  "lineItemType": "PRICE_PRIORITY",
  "costPerUnit": {
    "currencyCode": "USD",
    "microAmount": "5000000"
  },
  "costType": "CPC",
  "primaryGoal": {
    "goalType": "LIFETIME_CLICKS",
    "unitType": "IMPRESSIONS",
    "units": 1000000
  },
  "creativePlaceholders": [
    {
      "size": {
        "width": 300,
        "height": 50,
        "isAspectRatio": false
      }
    }
  ],
  "targeting": {
    "geoTargeting": {
      "targetedLocations": [
        {
          "id": "2356",
          "type": "COUNTRY",
          "displayName": "India"
        }
      ]
    }
  }
}

Thanks
Mehul Panchal

Google Ads API Forum Advisor

unread,
Apr 30, 2024, 9:49:51 AM4/30/24
to mehul....@jambojar-tech.com, adwor...@googlegroups.com

Hi,

Thank you for contacting the Google Ads API support team.

Kindly note that this forum support can only assist with technical queries or concerns related to the Google Ads API. As this issue is related to Google Ad Manager, I would recommend you reach out to the Google Ad manager API support team through this forum link and you can raise your concerns there. 

This message is in relation to case "ref:!00D1U01174p.!5004Q02tIpim:ref" (ADR-00233149)

Thanks,
 
Google Logo Google Ads API Team


Reply all
Reply to author
Forward
0 new messages