RE: Time zone data does not match between response and UI output

51 views
Skip to first unread message
Message has been deleted

Google Ads API Forum Advisor

unread,
Sep 3, 2021, 2:55:44 AM9/3/21
to viviana...@gmail.com, adwor...@googlegroups.com

Hello,

Thank you for reaching out to us.

As per this guide, the customer_client.time_zone returns the Common Locale Data Repository (CLDR) string representation of the time zone of the client. In the request, the timezone returned by the API is Asia/Colombo which is aligned to the timezone ID found here. When you search over the net, the corresponding timezone related to Asia/Colombo is the India Standard Time.

As an aside, I will be removing your original post as it contains API logs and your account screenshot which shouldn't be shared in public forums. Below is a copy of your post.

I used customer_client.time_zone to get account time zone,the response returned Asia/Colombo,but the true time zone is India.what’s wrong with it?
Thanks

request:

curl --location --request POST 'https://googleads.googleapis.com/v8/customers/7906562592/googleAds:searchStream' \

--header 'login-customer-id: 7802171637' \

--header 'developer-token: devtoken' \

--header 'Authorization: Bearer token' \

--header 'Content-Type: text/plain' \

--data-raw '{

"query": "SELECT 

customer_client.time_zone

FROM customer_client

}'  

 response:

[

    {

        "results": [

            {

                "customerClient": {

                    "resourceName": "customers/7906562592/customerClients/7906562592",

                    "timeZone": "Asia/Colombo"

                }

            }

        ],

        "fieldMask": "customerClient.timeZone",

        "requestId": "redacted"

    }

]

Regards,

Google Logo
Mark Kevin Albios
Google Ads API Team
 


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