From 8bfd390716900e6d11beedf3bdf021a6113e32bc Mon Sep 17 00:00:00 2001 From: CrazyFrog <16268065+xnkjj@users.noreply.github.com> Date: Fri, 27 Sep 2024 13:03:57 +0800 Subject: [PATCH] fix: wrong variable used in readme --- README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 47c6cd1b..4c3f9463 100644 --- a/README.md +++ b/README.md @@ -21,10 +21,11 @@ Although this project isn't official, we deem it as low-risk due to its maturity | google-ads-pb | Google Ads API | Sunset date | | ----------------- | ---------------- | ---------------------------- | +| v1.17.1 | v17.1 | May 2025 | | v1.17.0 | v17 | May 2025 | | v1.16.1 | v16.1 | January 2025 | | v1.7.0 | v16 | January 2025 | -| v1.6.0 | v15 | September 25, 2024 | +| v1.6.0 | v15 | Deprecated | | v1.5.1 | v14.1 | Deprecated | | v1.5.0 | v14 | Deprecated | | v1.4.1 | v13.1 | Deprecated | @@ -101,7 +102,7 @@ requestBody, err := protojson.Marshal(&req) if err != nil { panic(err) } -request, err := http.NewRequest("GET", "https://googleads.googleapis.com/v15/customers:listAccessibleCustomers", bytes.NewBuffer(requestBody)) +request, err := http.NewRequest("GET", "https://googleads.googleapis.com/v17/customers:listAccessibleCustomers", bytes.NewBuffer(requestBody)) if err != nil { panic(err) } @@ -121,7 +122,7 @@ if responseBody, err = io.ReadAll(response.Body); err != nil { panic(err) } listAccessibleCustomersResponse := new(services.ListAccessibleCustomersResponse) -if err := protojson.Unmarshal(response, listAccessibleCustomersResponse); err != nil { +if err := protojson.Unmarshal(responseBody, listAccessibleCustomersResponse); err != nil { panic(err) } for _, customer := range listAccessibleCustomersResponse.ResourceNames {