googleads / googleads/google-ads-php
Add api version constants
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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