Google Ads client library Python - API

138 views
Skip to first unread message

Diego Villanueva Araya

unread,
Jun 28, 2023, 7:13:56 PM6/28/23
to Google Ads API and AdWords API Forum
Hi everyone,
 
I am working with the google ads client library for python, I would like to know how to perform three specific configurations using the API for google ads SEARCH campaigns, these are the following:
  1. Location to São Paulo state
  2. Language to all languages
  3. Bid strategy to Maximize clicks without a max cpc
    1. Looking at documentation and different forums I found that I have to set campaign_bidding_strategy to target_spend without a value since this is the way to handle maximize clicks, but the API does not allow me to do this. 
On the other hand I would like to know if there is a documentation which allows me to follow examples of the applications and functions of this google ads client library for python.

I remain attentive to your comments

Google Ads API Forum Advisor

unread,
Jun 29, 2023, 7:10:32 AM6/29/23
to dvillanu...@gmail.com, adwor...@googlegroups.com
Hi Diego,

Thank you for reaching out to the Google Ads API forum. I hope that you are doing well today.

Moving forward to your concerns:
  1. Location to São Paulo state
  2. Language to all languages
  3. Bid strategy to Maximize clicks without a max cpc
  • Looking at documentation and different forums I found that I have to set campaign_bidding_strategy to target_spend without a value since this is the way to handle maximize clicks, but the API does not allow me to do this. 
    • Could you please provide us a complete request and response logs with request ID and request header generated on your end. where we can see the error when you are executing this process and encountered an error?
You can provide it via Reply privately to the author option. If this option is not available, then send it instead on this email address googleadsa...@google.com

For the 1 and 2 concerns, could you please clarify your end goal so that we can provide accurate suggestions for your concern? It may help us if you can provide us with a screenshot of the UI for the step by step procedure you want to accomplish via API?

Lastly, since you are using Python client library, you may check our sample codes here in this link (https://developers.google.com/google-ads/api/samples). In addition you may also check this link https://developers.google.com/google-ads/api/rest/overview for the Rest interface as guidance.

Reference links:  
This message is in relation to case "ref:_00D1U1174p._5004Q2mpUnb:ref"

Thanks,
 
Google Logo Google Ads API Team


Reply all
Reply to author
Forward
0 new messages