google-api-python-clientdouble-click-advertising

Create Campaigns, set bids and buy adds from DoubleClick Bid Manager API


Is it possible with the Google DoubleClick Bid Manager API to create campaigns, set bids and buy adds?, I have checked the documentation and it seems that there are limited endpoints.

These are all the available endpoints according to the documentation:

None of these endpoints can do tasks as buy ads, set bids or create campaigns, so I think those tasks can only be done through the UI and not with the API.

Thanks in advance for your help.


Solution

  • I found the way to solve this problem. The actual API v1 has this capabilities but the documentation is not very clear about it.

    You need to download your Line Items file as CSV or any other supported format, then from that downloaded file you must edit it with any script you want, so you must edit the columns of Status to perform this operation. Also, if you want to create a new campaign, you will need to do the same for new Line Items. After editing the CSV or created one, you must uploaded back to google with the relative endpoint: uploadlineitems.

    Google will answer to the owner of the Bid Manager account what changes were accepted from that file that you sent.

    I have confirmed that this is the same behaviour that Google uses for other products where they consume their own API:

    So basically you only need to create a script that edits CSV files and another to authenticate with the API.