Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add api version constants #1065

Open
Identity-labs opened this issue Jan 15, 2025 · 0 comments
Open

Add api version constants #1065

Identity-labs opened this issue Jan 15, 2025 · 0 comments
Labels
enhancement New feature or request triage Need triage

Comments

@Identity-labs
Copy link

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

@Identity-labs Identity-labs added enhancement New feature or request triage Need triage labels Jan 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request triage Need triage
Projects
None yet
Development

No branches or pull requests

1 participant