

To send a complex type that inherits from a base class, you must encode the object as a SoapVar. Once you have the Bing Ads PHP SDK installed you can either browse the Bing Ads API Code Examples, download the examples at GitHub, or follow one of the application walkthroughs for a Web or Desktop application.
#PHP SANDBOX COMPOSER INSTALL#
If any updates are available at packagist, composer will install the latest version. To get updates going forward, type composer update. Windows users who did not add composer.phar to the PATH will need to type php composer.phar require microsoft/bingads instead. Open a command prompt and type composer require microsoft/bingads. Microsoft Windows users should also add composer.phar to your PATH variable. This guide describes how you can use Composer to get the latest version of the Bing Ads PHP SDK.ĭownload and install Composer. You can install the Bing Ads PHP SDK using the Composer package manager to fetch from Packagist, or you can clone the source from GitHub. For more information, please see Sandbox. client ID), all Microsoft Advertising customers can use the public "Tutorial Sample App" client ID in sandbox i.e., 4c0b021c-00c3-4508-838f-d3127e8167ff. Although in production you must use your own application ID (a.k.a. For more details about registering an application in production and the authorization code grant flow, see Authentication with OAuth and Authentication With the SDKs. You also need to take note of the client secret and redirect URI if you are developing a web application. To authenticate via OAuth, you must also register an application and get the corresponding client identifier.

For more information, please see Get Started With the Bing Ads API and Sandbox. All sandbox clients can use the universal sandbox developer token i.e., BBD37VB98. For the production environment you will need a production developer token. You will need user credentials with access to Microsoft Advertising either in production or sandbox. Enable the curl extension to run the bulk upload samples.

The SOAP and OpenSSL extensions should also be enabled in the PHP.ini file.
#PHP SANDBOX COMPOSER HOW TO#
For information about how to set up a PHP development environment to use web services, see the documentation for your tools. However, certain parts of the code and configuration might have to be changed. You should be able to use other versions of PHP (greater than 5.6), packages, and operating systems. The examples have been developed with the Bing Ads PHP SDK and run with PHP 7.0.6. To get started developing Bing Ads API applications with PHP, you can start with the provided examples or follow one of the application walkthroughs for a Web or Desktop application.
