what is the Default timezone of the timestamp given by the API response

121 views
Skip to first unread message

personal testing

unread,
Jun 19, 2024, 9:56:56 AM6/19/24
to Google Ads API and AdWords API Forum
In the following API response, which timezone is being followed by the column 'locationAssetAutoMigrationDoneDateTime' ?

Is it in GMT timezone or EST(America/New_York)?


{
  "pageSize": 10000,
  "query": "SELECT customer.conversion_tracking_setting.google_ads_conversion_customer, customer.id, customer.descriptive_name, customer.time_zone, customer.location_asset_auto_migration_done_date_time FROM customer"
}

response:

{
  "results": [
    {
      "customer": {
        "resourceName": "customers/569245",
        "conversionTrackingSetting": {
          "googleAdsConversionCustomer": "customers/569245"
        },
        "id": "569245",
        "descriptiveName": "AAAA",
        "timeZone": "America/New_York",
        "locationAssetAutoMigrationDoneDateTime": "2023-10-27 04:07:37"
      }
    }
  ],
  "fieldMask": "customer.conversionTrackingSetting.googleAdsConversionCustomer,customer.id,customer.descriptiveName,customer.timeZone,customer.locationAssetAutoMigrationDoneDateTime",
  "queryResourceConsumption": "100"
}

Google Ads API Forum Advisor

unread,
Jun 19, 2024, 2:39:01 PM6/19/24
to personalte...@gmail.com, adwor...@googlegroups.com
Hi,

Thank you for reaching out to the Google Ads API support team.

The timezone being followed by the column 'locationAssetAutoMigrationDoneDateTime' in the API response is most likely America/New_York. The API response explicitly states the customer's time zone as "America/New_York" under the "customer.timeZone" field.

I hope this helps! Feel free to get back to us in case of any queries related to the Google Ads API.
 
This message is in relation to case "ref:!00D1U01174p.!5004Q02tJOsw:ref" (ADR-00242567)

Thanks,

 
Google Logo Google Ads API Team

Register for the upcoming workshop: Performance Max and the Google Ads API!
 

 

personal testing

unread,
Jun 20, 2024, 12:29:10 AM6/20/24
to Google Ads API and AdWords API Forum
Thank you for looking into this.

In the following API response, there is no timezone mentioned at all. what timezone should I be assuming the timestamp is in?

HTTP/1.1 200 OK
Request-Id: IdzZ-zYx9cvXItsz4bDe-g
Content-Type: application/json; charset=UTF-8
Vary: Origin
Vary: X-Origin
Vary: Referer
Date: Thu, 20 Jun 2024 04:24:28 GMT
Server: ESF
Cache-Control: private
X-XSS-Protection: 0
X-Frame-Options: SAMEORIGIN
X-Content-Type-Options: nosniff
Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000
Content-Length: 8753

{
  "results": [
    {
      "customer": {
        "resourceName": "customers/569244",
        "id": " 569244  "
      },
      "accountBudget": {
        "resourceName": "customers/ 569244  /accountBudgets/495749",
        "status": "APPROVED",
        "proposedSpendingLimitType": "INFINITE",
        "approvedSpendingLimitType": "INFINITE",
        "adjustedSpendingLimitType": "INFINITE",
        "id": "495749",
        "billingSetup": "customers/ 569244  /billingSetups/495836",
        "name": "",
        "proposedStartDateTime": "2018-12-11 17:25:24",
        "approvedStartDateTime": "2018-12-11 17:25:24",
        "proposedEndDateTime": "2021-03-01 00:00:00",
        "approvedEndDateTime": "2021-03-01 00:00:00",
        "totalAdjustmentsMicros": "1234720000",
        "amountServedMicros": " 569244  "
      }
    },

Could you please look into this at earliest?

Google Ads API Forum Advisor

unread,
Jun 20, 2024, 5:09:09 AM6/20/24
to personalte...@gmail.com, adwor...@googlegroups.com
Hi,

Previously, you mentioned the field "customer.time_zone" in the API request, that is the reason you got the time zone in the response.

Note that your time zone is permanently set when you set up your account. This setting cannot be updated because it's such a fundamental part of your account reporting and billing. So you can consider the account's timezone. You may check this guide to know the supported timezone IDs in the API.

personal testing

unread,
Jun 20, 2024, 6:14:17 AM6/20/24
to Google Ads API and AdWords API Forum
Thank you for looking into this.

The API considers the customer.time_zone as the default timezone and it generates all the reports and billing based on the value of the "customer.time_zone".

Is that correct?

Google Ads API Forum Advisor

unread,
Jun 20, 2024, 10:36:09 AM6/20/24
to personalte...@gmail.com, adwor...@googlegroups.com
Hi,

Yes, your understanding is correct. Your reports and statistics are affected by the time zone you select. For example, reports that you segment by time will generate results according to your account time zone. I would recommend you refer to this Help Center article About your language, number format, time zone, and currency settings for more information.
Reply all
Reply to author
Forward
0 new messages