Hi,
Thank you for contacting the Ad Manager API support team.
By reviewing your concern, I understand that you are trying to create custom key-values using the Ad Manager API. From the
CustomTargetingService, you can create or get information about all available key/value pairs in your network. I would recommend you to check this
createCustomTargetingKeys method, which creates new
CustomTargetingKey objects and createCustomTargetingValues method to create new
CustomTargetingValue objects. You may refer to this sample java code of
createCustomTargetingKeysAndValues.java and all the available
client libraries of the Ad Manager API.
Hope this helps!
This message is in relation to case "ref:!00D1U01174p.!5004Q02tJ3eE:ref" (ADR-00236038)
Thanks,
![Google Logo](https://ci5.googleusercontent.com/proxy/9ju5nEgrbHdGK5lig8X4MQGTM97n8nSbSJ60DOc1vPdXe8gGNPklA-zA7hXOkDgnMgO9hHT2x1N3rPhJg-wqpPZKMcC8T4A2ylAWasD7e8BJotDEo7M=s0-d-e1-ft#https://www.gstatic.com/images/branding/product/1x/googleg_64dp.png) |
Ad Manager API Team |
![](https://ci5.googleusercontent.com/proxy/V3FY3I0uQYxIYFPt9QogoNjLYv-Gei4rlsgatyMJ8LkCLwrHAz3Jdk3Z4_Ec9zRllhqFvbIhrr4NCgjOQqeXYrspfCOPhKV2bIdIV1SotMglOJUKKnRyRnwiB-8f2slP8DjephNmKCTumQw5tzeQ2mWdgjn2B76l4_6x-QqjwD9r7vOj-3KlC9Devd7j45A=s0-d-e1-ft#https://google-dev-relations.my.salesforce.com/servlet/servlet.ImageServer?oid=00D1U000001174p&esid=0184Q00001PXcdq&from=ext)