### Usage examples for LinkedinAdsClient Source: https://github.com/jeffersongoncalves/laravel-linkedin-ads/blob/main/README.md Usage examples for the static client: listing accounts, campaigns, creatives, creating a campaign (paused by default), updating status, fetching analytics, and estimating audience count. ```php use JeffersonGoncalves\LinkedinAds\LinkedinAdsClient; // Ad accounts $accounts = LinkedinAdsClient::accounts(); // Campaigns $campaigns = LinkedinAdsClient::campaigns('123456789'); // Create a campaign (created PAUSED, matching LinkedIn's API default) $campaign = LinkedinAdsClient::createCampaign( accountId: '123456789', campaignGroupId: '987654321', name: 'Q3 Launch', unitCost: 5.00, dailyBudget: 100.00, ); // Toggle a campaign's status LinkedinAdsClient::updateCampaignStatus('111', 'ACTIVE'); // Analytics for a date range $stats = LinkedinAdsClient::campaignAnalytics( campaignId: '111', startYear: 2026, startMonth: 1, startDay: 1, endYear: 2026, endMonth: 1, endDay: 31, ); // Creatives $creatives = LinkedinAdsClient::creatives('111'); // Audience count for a targeting facet set $count = LinkedinAdsClient::audienceCount([ 'include' => [ 'and' => [ ['or' => ['urn:li:adTargetingFacet:locations' => ['urn:li:geo:103644278']]], ], ], ]); ``` -------------------------------- ### Install laravel-linkedin-ads via Composer Source: https://github.com/jeffersongoncalves/laravel-linkedin-ads/blob/main/README.md Install the package via Composer. ```bash composer require jeffersongoncalves/laravel-linkedin-ads ``` -------------------------------- ### Run static analysis with composer analyse Source: https://github.com/jeffersongoncalves/laravel-linkedin-ads/blob/main/README.md Run static analysis. ```bash composer analyse ``` -------------------------------- ### Run code formatting with composer format Source: https://github.com/jeffersongoncalves/laravel-linkedin-ads/blob/main/README.md Run code formatting. ```bash composer format ``` -------------------------------- ### Run tests with composer test Source: https://github.com/jeffersongoncalves/laravel-linkedin-ads/blob/main/README.md Run the test suite. ```bash composer test ``` -------------------------------- ### Publish linkedin-ads-config Source: https://github.com/jeffersongoncalves/laravel-linkedin-ads/blob/main/README.md Optionally publish the package's config file. ```bash php artisan vendor:publish --tag="linkedin-ads-config" ``` -------------------------------- ### linkedin-ads.php config file Source: https://github.com/jeffersongoncalves/laravel-linkedin-ads/blob/main/README.md Config file for the package. Uses environment variables with defaults for version and timeout. ```php // config/linkedin-ads.php return [ 'access_token' => env('LINKEDIN_ADS_ACCESS_TOKEN'), 'version' => env('LINKEDIN_ADS_API_VERSION', 'v2'), 'timeout' => (int) env('LINKEDIN_ADS_TIMEOUT', 8), ]; ``` -------------------------------- ### Configure LinkedIn Ads environment variables Source: https://github.com/jeffersongoncalves/laravel-linkedin-ads/blob/main/README.md Environment variables for the LinkedIn Ads client. LINKEDIN_ADS_ACCESS_TOKEN is the OAuth bearer token; LINKEDIN_ADS_API_VERSION is the Marketing API version segment; LINKEDIN_ADS_TIMEOUT sets the request timeout in seconds. ```env LINKEDIN_ADS_ACCESS_TOKEN=xxxxxxxxxxxxxxxxxxxxxx LINKEDIN_ADS_API_VERSION=v2 LINKEDIN_ADS_TIMEOUT=8 ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.