googleads / googleads/google-ads-php

Add api version constants

Open
#1,065 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement triage
Dominant language
PHP
Stars
357
Forks
276
Avg merge
1d 7h
Merged PRs (30d)
3

Description

Problem you are trying to solve:
Dynamically get latest version of lib available to avoid having to change namespace in our code

Example:

$version = Constants::API_LATEST_VERSION;
$clientClass = "Google\\Ads\\GoogleAds\\{$version}\\Services\\GoogleAdsServiceClient";

$client = new $clientClass();

Solution you'd like:
Having latest version in Contants.php

public const API_LATEST_VERSION = 'V18';

Additional context:
May be add oldest version too like
public const API_OLDEST_VERSION = 'V16';

Thx

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with Constants.php and inspect how the client library defines or exposes its versioned API namespaces. Confirm which API versions are available, then determine the supported values for the latest and optional oldest version constants; the work is done when consumers can retrieve those values without hard-coding a namespace.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
api
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.