PHPackages                             gitazem/bingadsphp - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. gitazem/bingadsphp

ActiveLibrary[API Development](/categories/api)

gitazem/bingadsphp
==================

Bing Ads API Version 9 and Version 10 Client Library for PHP with examples.

0146PHP

Since Mar 28Pushed 9y ago1 watchersCompare

[ Source](https://github.com/gitazem/bingadsphp)[ Packagist](https://packagist.org/packages/gitazem/bingadsphp)[ RSS](/packages/gitazem-bingadsphp/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

bingads-php-lib
===============

[](#bingads-php-lib)

Composer package for the Bing Ads SDK for PHP.

Library Information
-------------------

[](#library-information)

- Bing Ads API Version 10
- Library Update 1/5/2017
- Library [Home Page](https://code.msdn.microsoft.com/Bing-Ads-API-Version-9-in-fb27761f/sourcecode?fileId=166682&pathId=1227957001)

Installation
------------

[](#installation)

```
composer require gitazem/bingads-php-lib
```

### Usage

[](#usage)

See the [PHP Examples for Bing Ads](http://msdn.microsoft.com/en-US/library/jj966370.aspx)

##### Getting Started With the Bing Ads API

[](#getting-started-with-the-bing-ads-api)

##### Server Side OAuth Authentication in PHP

[](#server-side-oauth-authentication-in-php)

##### Bing Client Id and Client Secret

[](#bing-client-id-and-client-secret)

These credentials are available after an application is created for the account:

##### Bing Developer Key

[](#bing-developer-key)

It can be obtain at this URL

###### This package includes the following PHP sample files for Bing Ads web services.

[](#this-package-includes-the-following-php-sample-files-for-bing-ads-web-services)

- AdExtensions (Campaign Management service)
- BulkDownloadUpload (Bulk service)
- BudgetOpportunities (Ad Insightservice)
- ConversionGoals (Campaign Management service)
- KeywordsAds (Campaign Management service)
- ManageClient (Customer Management service)
- NegativeKeywords (Campaign Management service)
- RemarketingLists (Campaign Management service)
- ReportRequests (Reporting service)
- SearchUserAccounts (Customer Management service)
- Targets (Campaign Management service)

###### Building the Sample

[](#building-the-sample)

The samples require that you update some of the following elements, and then build a project.

- $UserName
- $Password
- $DeveloperToken
- $CustomerId
- $AccountId
- $CampaignId
- $CampaignIds

###### Source Code Files

[](#source-code-files)

- AdExtensions.php - Demonstrates how to add, get, and delete extensions for an account’s ad extension library, set, get, and delete the extension associations with a campaign, and determine why an extension failed editorial review using the following Campaign Management service operations.
- BulkDownloadUpload.php - Demonstrates how to download and upload the entities of one or more campaigns in the background.
- BudgetOpportunities.php - Demonstrates how to get the budgetopportunities for the specified account.
- ConversionGoals.php - Demonstrates how to manage UET tags and conversion goals.
- KeywordsAds.php - Demonstrates how to add ads and keywords to a new ad group, and handle partial errors when some ads or keywords are not successfully created.
- GetEstimatedBid.php - Demonstrates how to get the minimum suggested bid value of one or more keywords that could result in an ad appearing in the targeted position in the search results.
- ManageClient.php - Demonstrates how to use agency credentials to invite a client, and use client credentials to accept the invitation. Run this sample multiple times to update and observe the status change, for example from LinkPending to LinkAccepted to Active.
- NegativeKeywords.php - Demonstrates how to associate negative keywords and negative keyword lists with a campaign.
- RemarketingLists.php - Demonstrates how to manage remarketing lists and ad group remarketing list associations.
- ReportRequests.php - Demonstrates how to request and retrieve a keyword performance report.
- SearchUserAccounts.php - Demonstrates how to search for accounts that can be managed by the current authenticated user.
- Targets.php - Demonstrates how to associate targets with a campaign and ad group.

###### More Information

[](#more-information)

For information about updates to Bing Ads web services, see Release Notes here on MSDN:

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/c2f957f36a092856f1bf5e7e48df141e4eac58a4a5efc9f236a057eddcec839f?d=identicon)[gitazem](/maintainers/gitazem)

---

Top Contributors

[![gitazem](https://avatars.githubusercontent.com/u/7699220?v=4)](https://github.com/gitazem "gitazem (1 commits)")

### Embed Badge

![Health badge](/badges/gitazem-bingadsphp/health.svg)

```
[![Health](https://phpackages.com/badges/gitazem-bingadsphp/health.svg)](https://phpackages.com/packages/gitazem-bingadsphp)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
