コード例 #1
0
<?php

include 'views/header.php';
include 'views/activeTab_customers.php';
include 'models/database.php';
include 'models/customers.php';
$customers = GetCustomers();
include 'customers_vip.php';
include 'views/customers_view.php';
include 'views/footer.php';
コード例 #2
0
ファイル: GetHeaders.php プロジェクト: kshitijab/bing-api
use BingAds\CustomerManagement\GetCustomersInfoRequest;
use BingAds\CustomerManagement\ApplicationType;
use BingAds\CustomerManagement\GetAccountsInfoRequest;
// Disable WSDL caching.
ini_set("soap.wsdl_cache_enabled", "0");
ini_set("soap.wsdl_cache_ttl", "0");
// Specify your credentials.
$UserName = "******";
$Password = "******";
$DeveloperToken = "<DeveloperTokenGoesHere>";
// Customer Management WSDL
$wsdl = "https://sharedservices.adcenterapi.microsoft.com/Api/CustomerManagement/v8/CustomerManagementService.svc?wsdl";
try {
    $proxy = new ClientProxy($UserName, $Password, $DeveloperToken, $wsdl);
    // Given the user credentials provided above, retrieve the customers permitted
    $cInfos = GetCustomers("", 100, $proxy);
    print "Bing Ads API Header Elements for Current User\n\n";
    print "--------------------\n";
    print "Required Elements\n";
    print "--------------------\n";
    printf("UserName: %s\n", $UserName);
    printf("Password: %s\n", $Password);
    printf("DeveloperToken: %s\n\n", $DeveloperToken);
    print "--------------------\n";
    print "Elements Required for Some Service Operations\n";
    print "--------------------\n";
    foreach ($cInfos->CustomerInfo as $cInfo) {
        if (!is_null($cInfo)) {
            printf("CustomerId: %d\n", $cInfo->Id);
            $aInfos = GetAccounts($cInfo->Id, $proxy);
            // Print a list of all accounts managed by the customer