1<?php 2/* 3 * Copyright 2014 Google Inc. 4 * 5 * Licensed under the Apache License, Version 2.0 (the "License"); you may not 6 * use this file except in compliance with the License. You may obtain a copy of 7 * the License at 8 * 9 * http://www.apache.org/licenses/LICENSE-2.0 10 * 11 * Unless required by applicable law or agreed to in writing, software 12 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 13 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 14 * License for the specific language governing permissions and limitations under 15 * the License. 16 */ 17 18/** 19 * Service definition for AdExperienceReport (v1). 20 * 21 * <p> 22 * Views Ad Experience Report data, and gets a list of sites that have a 23 * significant number of annoying ads.</p> 24 * 25 * <p> 26 * For more information about this service, see the API 27 * <a href="https://developers.google.com/ad-experience-report/" target="_blank">Documentation</a> 28 * </p> 29 * 30 * @author Google, Inc. 31 */ 32class Google_Service_AdExperienceReport extends Google_Service 33{ 34 /** Test scope for access to the Zoo service. */ 35 const XAPI_ZOO = 36 "https://www.googleapis.com/auth/xapi.zoo"; 37 38 public $sites; 39 public $violatingSites; 40 41 /** 42 * Constructs the internal representation of the AdExperienceReport service. 43 * 44 * @param Google_Client $client 45 */ 46 public function __construct(Google_Client $client) 47 { 48 parent::__construct($client); 49 $this->rootUrl = 'https://adexperiencereport.googleapis.com/'; 50 $this->servicePath = ''; 51 $this->batchPath = 'batch'; 52 $this->version = 'v1'; 53 $this->serviceName = 'adexperiencereport'; 54 55 $this->sites = new Google_Service_AdExperienceReport_Resource_Sites( 56 $this, 57 $this->serviceName, 58 'sites', 59 array( 60 'methods' => array( 61 'get' => array( 62 'path' => 'v1/{+name}', 63 'httpMethod' => 'GET', 64 'parameters' => array( 65 'name' => array( 66 'location' => 'path', 67 'type' => 'string', 68 'required' => true, 69 ), 70 ), 71 ), 72 ) 73 ) 74 ); 75 $this->violatingSites = new Google_Service_AdExperienceReport_Resource_ViolatingSites( 76 $this, 77 $this->serviceName, 78 'violatingSites', 79 array( 80 'methods' => array( 81 'list' => array( 82 'path' => 'v1/violatingSites', 83 'httpMethod' => 'GET', 84 'parameters' => array(), 85 ), 86 ) 87 ) 88 ); 89 } 90} 91