Hi,
In your Python code example for "Create Customer
<https://developers.google.com/google-ads/api/docs/samples/create-customer#python>"
(and others). the versioning seems highly redundant to me:
def main(client, manager_customer_id):
customer_service = client.get_service("CustomerService", *version**="v5"*)
customer = client.get_type("Customer", *version**="v5"*)
I was wondering, if there is a way to set the version on a higher level,
e.g. on the "google_ads_client" level when creating the object as in here:
google_ads_client = (
google.ads.google_ads.client.GoogleAdsClient.load_from_storage()
)
..or while importing the library:
import google.ads.google_ads.client
... or somwhere in the google-ads.yaml
I've seen some skripts where dozens of lines of code contain this ",
version="vX" - part. I guess there is a smarter way - right?
Regards
Mat
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
---
You received this message because you are subscribed to the Google Groups
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/ad821979-9bbe-4810-ac00-e217a3065db8o%40googlegroups.com.