I'm trying to set a Billing setup for an account i just created, and it launches the next error.
Request made: ClientCustomerId: 3062310149, Host: googleads.googleapis.com:443, Method: /google.ads.googleads.v6.services.BillingSetupService/MutateBillingSetup, RequestId: cmg74mcLweuMLRSD3wdQ_g, IsFault: True, FaultMessage: The error code is not in this version. Request with ID "cmg74mcLweuMLRSD3wdQ_g" failed with status "INVALID_ARGUMENT" and includes the following errors: Error with message "The error code is not in this version.". On field: operation On field: create On field: start_time It only mentions that the error is on the start_time, but doesn't mention which is the error. For the Datetime i'm using the basic sample provided in the docs def _set_billing_setup_date_times(client, customer_id, billing_setup): query = """ SELECT billing_setup.end_date_time FROM billing_setup WHERE billing_setup.status = APPROVED ORDER BY billing_setup.end_date_time DESC LIMIT 1""" ga_service = client.get_service("GoogleAdsService", version="v6") response = ga_service.search_stream(customer_id, query) # Coercing the response iterator to a list causes the stream to be fully # consumed so that we can easily access the last row in the request. batches = list(response) # Checks if any results were included in the response. if batches: # Retrieves the ending_date_time of the last BillingSetup. last_batch = batches[0] last_row = last_batch.results[0] last_ending_date_time = last_row.billing_setup.end_date_time if not last_ending_date_time: # A null ending date time indicates that the current billing setup # is set to run indefinitely. Billing setups cannot overlap, so # throw an exception in this case. raise Exception( "Cannot set starting and ending date times for the new billing " "setup; the latest existing billing setup is set to run " "indefinitely." ) try: # BillingSetup.end_date_time is a string that can be in the format # %Y-%m-%d or %Y-%m-%d %H:%M:%S. This checks for the first format. end_date_time_obj = datetime.strptime( last_ending_date_time, "%Y-%m-%d" ) except ValueError: # If a ValueError is raised then the end_date_time string is in the # second format that includes hours, minutes and seconds. end_date_time_obj = datetime.strptime( last_ending_date_time, "%Y-%m-%d %H:%M:%S" ) # Sets the new billing setup start date to one day after the end date. start_date = end_date_time_obj + timedelta(days=1) else: # If there are no BillingSetup objecst to retrieve, the only acceptable # start date time is today. start_date = datetime.now() billing_setup.start_date_time = start_date.strftime("%Y-%m-%d %H:%M:%S") billing_setup.end_date_time = (start_date + timedelta(days=1)).strftime( "%Y-%m-%d %H:%M:%S" ) I'm not sure what could be wrong here, Does anyone knows what do i need to change? -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com 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 adwords-api+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/cdc09a42-6b9f-413f-b8fe-f87780215966n%40googlegroups.com.