RE: Setup Billing - the error code is not in this version.

94 views
Skip to first unread message
Message has been deleted

Google Ads API Forum Advisor

unread,
Oct 15, 2021, 9:41:37 AM10/15/21
to russiant...@gmail.com, adwor...@googlegroups.com

Hi Viktor,

Thanks for posting your concern to us. I had to delete your initial post as it contained your logs. I am reposting below without the sensitive log information for reference :
 

“Hello! I use lib google-ads-php last version. I try call google-ads-php/examples/Billing/AddBillingSetup.php and i have error. 

I all ready tested all params. Also i see the same problem https://groups.google.com/g/adwords-api/c/4DfyztBRDBs/m/fb3PY-JvBQAJ

Thanks!
 

Method Name: /google.ads.googleads.v8.services.BillingSetupService/MutateBillingSetup

Host: googleads.googleapis.com 

Response

-------

Fault

-------

Status code: 3

Details: Request contains an invalid argument.

Failure: {"errors":[{"errorCode":{"requestError":"UNKNOWN"},"message":"The error code is not in this version.","location":{"fieldPathElements":[{"fieldName":"operation"},{"fieldName":"create"},{"fieldName":"start_time"}]}}],".

Google Ads failure details:

        request_error: The error code is not in this version.

Could you provide us with the complete request and response logs with the request-id when you encountered the error, so our team can better check?

If you haven't yet, logging can be enabled by navigating to the Client libraries > Your client library (ex. PHP) > Logging documentation, which you can access from this link. You may then send the requested information via the Reply privately to author option. If this option is not available, you may send the details directly to our googleadsa...@google.com alias instead.

Regards,

Google Logo
Yasar
Google Ads API Team
 



ref:_00D1U1174p._5004Q2PJYmo:ref

Viktor Shchepkin

unread,
Nov 9, 2021, 10:33:40 AM11/9/21
to AdWords API and Google Ads API Forum
Hello!

Client library version: v12.0.0

Google Ads API version:  v8

PHP Version => 7.3.31-2+ubuntu20.04.1+deb.sury.org+1

System => Linux dadicc 5.4.0-89-generic #100-Ubuntu SMP Fri Sep 24 14:50:10 UTC 2021 x86_64
Build Date => Oct 22 2021 12:34:45
Server API => Command Line Interface
Virtual Directory Support => disabled
Configuration File (php.ini) Path => /etc/php/7.3/cli
Loaded Configuration File => /etc/php/7.3/cli/php.ini
Scan this dir for additional .ini files => /etc/php/7.3/cli/conf.d
Additional .ini files parsed => /etc/php/7.3/cli/conf.d/10-mysqlnd.ini,
/etc/php/7.3/cli/conf.d/10-opcache.ini,
/etc/php/7.3/cli/conf.d/10-pdo.ini,
/etc/php/7.3/cli/conf.d/15-psr.ini,
/etc/php/7.3/cli/conf.d/15-xml.ini,
/etc/php/7.3/cli/conf.d/20-amqp.ini,
/etc/php/7.3/cli/conf.d/20-apcu.ini,
/etc/php/7.3/cli/conf.d/20-ast.ini,
/etc/php/7.3/cli/conf.d/20-bcmath.ini,
/etc/php/7.3/cli/conf.d/20-bz2.ini,
/etc/php/7.3/cli/conf.d/20-calendar.ini,
/etc/php/7.3/cli/conf.d/20-ctype.ini,
/etc/php/7.3/cli/conf.d/20-curl.ini,
/etc/php/7.3/cli/conf.d/20-dba.ini,
/etc/php/7.3/cli/conf.d/20-dom.ini,
/etc/php/7.3/cli/conf.d/20-enchant.ini,
/etc/php/7.3/cli/conf.d/20-exif.ini,
/etc/php/7.3/cli/conf.d/20-fileinfo.ini,
/etc/php/7.3/cli/conf.d/20-ftp.ini,
/etc/php/7.3/cli/conf.d/20-gd.ini,
/etc/php/7.3/cli/conf.d/20-gearman.ini,
/etc/php/7.3/cli/conf.d/20-geoip.ini,
/etc/php/7.3/cli/conf.d/20-gettext.ini,
/etc/php/7.3/cli/conf.d/20-gmp.ini,
/etc/php/7.3/cli/conf.d/20-gnupg.ini,
/etc/php/7.3/cli/conf.d/20-iconv.ini,
/etc/php/7.3/cli/conf.d/20-igbinary.ini,
/etc/php/7.3/cli/conf.d/20-imagick.ini,
/etc/php/7.3/cli/conf.d/20-imap.ini,
/etc/php/7.3/cli/conf.d/20-interbase.ini,
/etc/php/7.3/cli/conf.d/20-intl.ini,
/etc/php/7.3/cli/conf.d/20-json.ini,
/etc/php/7.3/cli/conf.d/20-ldap.ini,
/etc/php/7.3/cli/conf.d/20-lua.ini,
/etc/php/7.3/cli/conf.d/20-lz4.ini,
/etc/php/7.3/cli/conf.d/20-mbstring.ini,
/etc/php/7.3/cli/conf.d/20-mcrypt.ini,
/etc/php/7.3/cli/conf.d/20-memcache.ini,
/etc/php/7.3/cli/conf.d/20-mongodb.ini,
/etc/php/7.3/cli/conf.d/20-msgpack.ini,
/etc/php/7.3/cli/conf.d/20-mysqli.ini,
/etc/php/7.3/cli/conf.d/20-oauth.ini,
/etc/php/7.3/cli/conf.d/20-odbc.ini,
/etc/php/7.3/cli/conf.d/20-pcov.ini,
/etc/php/7.3/cli/conf.d/20-pdo_dblib.ini,
/etc/php/7.3/cli/conf.d/20-pdo_firebird.ini,
/etc/php/7.3/cli/conf.d/20-pdo_mysql.ini,
/etc/php/7.3/cli/conf.d/20-pdo_odbc.ini,
/etc/php/7.3/cli/conf.d/20-pdo_pgsql.ini,
/etc/php/7.3/cli/conf.d/20-pdo_sqlite.ini,
/etc/php/7.3/cli/conf.d/20-pgsql.ini,
/etc/php/7.3/cli/conf.d/20-phalcon.ini,
/etc/php/7.3/cli/conf.d/20-phar.ini,
/etc/php/7.3/cli/conf.d/20-pinba.ini,
/etc/php/7.3/cli/conf.d/20-posix.ini,
/etc/php/7.3/cli/conf.d/20-propro.ini,
/etc/php/7.3/cli/conf.d/20-ps.ini,
/etc/php/7.3/cli/conf.d/20-pspell.ini,
/etc/php/7.3/cli/conf.d/20-radius.ini,
/etc/php/7.3/cli/conf.d/20-raphf.ini,
/etc/php/7.3/cli/conf.d/20-readline.ini,
/etc/php/7.3/cli/conf.d/20-recode.ini,
/etc/php/7.3/cli/conf.d/20-redis.ini,
/etc/php/7.3/cli/conf.d/20-rrd.ini,
/etc/php/7.3/cli/conf.d/20-shmop.ini,
/etc/php/7.3/cli/conf.d/20-simplexml.ini,
/etc/php/7.3/cli/conf.d/20-smbclient.ini,
/etc/php/7.3/cli/conf.d/20-soap.ini,
/etc/php/7.3/cli/conf.d/20-sockets.ini,
/etc/php/7.3/cli/conf.d/20-solr.ini,
/etc/php/7.3/cli/conf.d/20-sqlite3.ini,
/etc/php/7.3/cli/conf.d/20-ssh2.ini,
/etc/php/7.3/cli/conf.d/20-stomp.ini,
/etc/php/7.3/cli/conf.d/20-sysvmsg.ini,
/etc/php/7.3/cli/conf.d/20-sysvsem.ini,
/etc/php/7.3/cli/conf.d/20-sysvshm.ini,
/etc/php/7.3/cli/conf.d/20-tideways.ini,
/etc/php/7.3/cli/conf.d/20-tidy.ini,
/etc/php/7.3/cli/conf.d/20-tokenizer.ini,
/etc/php/7.3/cli/conf.d/20-uopz.ini,
/etc/php/7.3/cli/conf.d/20-uploadprogress.ini,
/etc/php/7.3/cli/conf.d/20-uuid.ini,
/etc/php/7.3/cli/conf.d/20-wddx.ini,
/etc/php/7.3/cli/conf.d/20-xdebug.ini,
/etc/php/7.3/cli/conf.d/20-xhprof.ini,
/etc/php/7.3/cli/conf.d/20-xmlreader.ini,
/etc/php/7.3/cli/conf.d/20-xmlrpc.ini,
/etc/php/7.3/cli/conf.d/20-xmlwriter.ini,
/etc/php/7.3/cli/conf.d/20-xsl.ini,
/etc/php/7.3/cli/conf.d/20-yaml.ini,
/etc/php/7.3/cli/conf.d/20-zip.ini,
/etc/php/7.3/cli/conf.d/20-zmq.ini,
/etc/php/7.3/cli/conf.d/25-apcu_bc.ini,
/etc/php/7.3/cli/conf.d/25-http.ini,
/etc/php/7.3/cli/conf.d/25-mailparse.ini,
/etc/php/7.3/cli/conf.d/25-memcached.ini,
/etc/php/7.3/cli/conf.d/25-swoole.ini,
/etc/php/7.3/cli/conf.d/30-decimal.ini,
/etc/php/7.3/cli/conf.d/30-ds.ini,
/etc/php/7.3/cli/conf.d/30-grpc.ini,
/etc/php/7.3/cli/conf.d/30-inotify.ini,
/etc/php/7.3/cli/conf.d/30-maxminddb.ini,
/etc/php/7.3/cli/conf.d/30-protobuf.ini,
/etc/php/7.3/cli/conf.d/30-vips.ini,
/etc/php/7.3/cli/conf.d/30-zstd.ini

PHP API => 20180731
PHP Extension => 20180731
Zend Extension => 320180731
Zend Extension Build => API320180731,NTS
PHP Extension Build => API20180731,NTS
Debug Build => no
Thread Safety => disabled
Zend Signal Handling => enabled
Zend Memory Manager => enabled
Zend Multibyte Support => provided by mbstring
IPv6 Support => enabled
DTrace Support => available, disabled

Registered PHP Streams => https, ftps, compress.zlib, php, file, glob, data, http, ftp, compress.bzip2, smb, ssh2.shell, ssh2.exec, ssh2.tunnel, ssh2.scp, ssh2.sftp, zip, phar, compress.zstd
Registered Stream Socket Transports => tcp, udp, unix, udg, ssl, tls, tlsv1.0, tlsv1.1, tlsv1.2
Registered Stream Filters => zlib.*, string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, dechunk, bzip2.*, convert.iconv.*, mcrypt.*, mdecrypt.*, http.*

This program makes use of the Zend Scripting Language Engine:
Zend Engine v3.3.31, Copyright (c) 1998-2018 Zend Technologies
    with Zend OPcache v7.3.31-2+ubuntu20.04.1+deb.sury.org+1, Copyright (c) 1999-2018, by Zend Technologies
    with Xdebug v3.1.1, Copyright (c) 2002-2021, by Derick Rethans

The PHP Extension grpc is installed: 1.41.0
The PHP Extension protobuf is installed: 3.18.0

===========================================================

Request  ID  'LRMVzIbM1hx_eWNGnkPe_Q' has failed.
Request  ID  'OjatfdqJ0JYK5u3Oq2OAhw' has failed.
Request  ID  'fFaiXaJwWTPbysitD-FxwQ' has failed.


PROBLEM: 

I try call script from console google-ads-php/examples/Billing/AddBillingSetup.php
I init from file and send all params ( const CUSTOMER_ID, const PAYMENTS_ACCOUNT_ID and const PAYMENTS_PROFILE_ID )

Other api work good ( CreateCustomer, InviteUserWithAccessRole )

I have error:
Google Ads failure details:
        billing_setup_error: The error code is not in this version.



[2021-11-09T18:24:14.884429+03:00] google-ads.NOTICE: Request
-------
Method Name: /google.ads.googleads.v8.services.BillingSetupService/MutateBillingSetup
Headers: {
    "x-goog-api-client": "gl-php\/7.3.31-2+ubuntu20.04.1+deb.sury.org+1 gccl\/12.0.0 gapic\/12.0.0 gax\/1.10.0 grpc\/1.41.0 rest\/1.10.0",
    "x-goog-request-params": "customer_id=2735337931",
    "developer-token": "REDACTED",
    "login-customer-id": "9279005797"
}
Request: 
{"customerId":"2735337931","operation":{"create":{"paymentsAccount":"customers\/2735337931\/paymentsAccounts\/1742-2222-xxxx-xxxx","startDateTime":"2021-11-09","endDateTime":"2022-01-08"}}}

Response
-------
Headers: {
    "request-id": "fFaiXaJwWTPbysitD-FxwQ",
    "date": "Tue, 09 Nov 2021 15:24:14 GMT",
    "alt-svc": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000,h3-Q050=\":443\"; ma=2592000,h3-Q046=\":443\"; ma=2592000,h3-Q043=\":443\"; ma=2592000,quic=\":443\"; ma=2592000; v=\"46,43\""
}

Fault
-------
Status code: 3
Details: Request contains an invalid argument.
Failure: {"errors":[{"errorCode":{"requestError":"UNKNOWN"},"message":"The error code is not in this version.","location":{"fieldPathElements":[{"fieldName":"operation"},{"fieldName":"create"},{"fieldName":"start_time"}]}}],"requestId":"fFaiXaJwWTPbysitD-FxwQ"}  
Request with ID 'fFaiXaJwWTPbysitD-FxwQ' has failed.
Google Ads failure details:
        request_error: The error code is not in this version.



Thanks!

пятница, 15 октября 2021 г. в 16:41:37 UTC+3, adsapi:

Google Ads API Forum Advisor

unread,
Nov 12, 2021, 3:52:56 PM11/12/21
to russiant...@gmail.com, adwor...@googlegroups.com
Hi Viktor,

The underlying error is CUSTOMER_BILLING_ERROR_CANNOT_CREATE_IN_PAST. You need to make sure that start_time is in the future.

I've filed a request to publish this error code in the next API version.

Cheers
Anash

ref:_00D1U1174p._5004Q2PJYmo:ref
Reply all
Reply to author
Forward
0 new messages