2017 © Pedro Peláez
 

symfony-bundle bing-ads-api-bundle

A service to make API calls to bing ads in Symfony

image

werkspot/bing-ads-api-bundle

A service to make API calls to bing ads in Symfony

  • Tuesday, April 19, 2016
  • by jeroenvdheuvel
  • Repository
  • 3 Watchers
  • 0 Stars
  • 8 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 33 % Grown

The README.md

BingAdsApiBundle

The BingAdsApiBundle provides a simple integration of the Bing Ads API for your Symfony project., (*1)

Checkout the Bing Ads full documentation, (*2)

Warning: Currently in development, (*3)

Build Status Scrutinizer Code Quality Code Coverage, (*4)

TODO - Create more Reports, (*5)

Installation

With composer, add:, (*6)

{
    "require": {
        "werkspot/bing-ads-api-bundle": "dev-master"
    }
}

Then enable it in your kernel:, (*7)

// app/AppKernel.php
public function registerBundles()
{
    $bundles = [
        //...
        new Werkspot\BingAdsApiBundle\WerkspotBingAdsApiBundle(),
        //...

Configuration

# app/config/config.yml

# Bing ads API
werkspot_bing_ads_api:
  cache_dir: "%kernel.cache_dir%" #<-- optional

Usage

The bundle registers the werkspot.bing_ads_api_client service witch allows you to call the api;, (*8)

Get Report


use BingAds\Reporting\ReportTimePeriod; $reportType = 'GeoLocationPerformanceReportRequest'; $timePeriod = ReportTimePeriod::LastMonth; $columns = [ 'TimePeriod', 'AccountName', 'AdGroupId', 'AdGroupName', 'Impressions', 'Clicks', 'CurrencyCode', 'Spend', 'Country', 'City', 'State', 'MetroArea', 'MostSpecificLocation', ]; $apiDetails = new ApiDetails( 'refreshToken', 'clientId', 'secret', 'redirectUri', 'devToken' ); $bingApi = $this->get('werkspot.bing_ads_api_client'); $bingApi->setApiDetails($apiDetails); $arrayOfFiles = $bingApi->get($columns, $reportType, $timePeriod ); /* [...] Do something with the list */ $bingApi->clearCache(); //-- When done remove the files $newRefreshToken = $bingApi->getRefreshToken() //-- Get new RefreshToken

Credits

BingAdsApiBundle is based on the officical Bing Ads API. BingAdsApiBundle has been developed by LauLaman., (*9)

The Versions

19/04 2016

dev-master

9999999-dev http://werkspot.nl

A service to make API calls to bing ads in Symfony

  Sources   Download

MIT

The Requires

 

The Development Requires

api service bundle bing ads

07/03 2016

v0.0.2-beta.1

0.0.2.0-beta1 http://werkspot.nl

A service to make API calls to bing ads in Symfony

  Sources   Download

MIT

The Requires

 

The Development Requires

api service bundle bing ads

07/03 2016

v0.0.1

0.0.1.0 http://werkspot.nl

A service to make API calls to bing ads in Symfony

  Sources   Download

MIT

The Requires

 

The Development Requires

api service bundle bing ads