title: ADFORM API PHP Metrics - NEWB Warning
body: <p>I'm a newb when it comes to PHP and API's so please forgive me if I make any mistakes in terminology etc. </p>
  
  <p>I'm creating an API to call Data from <code>ADFORM reports</code>, and have issues in selecting various metrics. </p>
  
  <p>I make a POST to <a href="https://api.adform.com/v1/reportingstats/agency/reportdata" rel="nofollow noreferrer">https://api.adform.com/v1/reportingstats/agency/reportdata</a></p>
  
  <pre><code>{
    "dimensions": [
      "client",
      "campaign"
    ],
    "metrics": [
                  "clicks",
                  "impressions"
  
    ],
    "filter": {
      "date": "campaignStartToEnd"
    }
  }
  </code></pre>
  
  <p>The response: </p>
  
  <pre><code>Array
  (
      [reportData] =&gt; Array
          (
              [columnHeaders] =&gt; Array
                  (
                      [0] =&gt; client
                      [1] =&gt; campaign
                      [2] =&gt; clicks
                      [3] =&gt; impressions
                  )
  
              [columns] =&gt; Array
                  (
                      [0] =&gt; Array
                          (
                              [key] =&gt; client
                          )
  
                      [1] =&gt; Array
                          (
                              [key] =&gt; campaign
                          )
  
                      [2] =&gt; Array
                          (
                              [key] =&gt; clicks
                              [specs] =&gt; Array
                                  (
                                      [dataSource] =&gt; adform
                                      [adUniqueness] =&gt; all
                                  )
  
                          )
  
  
                      [3] =&gt; Array
                          (
                              [key] =&gt; impressions
                              [specs] =&gt; Array
                                  (
                                      [dataSource] =&gt; adform
                                      [adUniqueness] =&gt; all
                                  )
  
                          )
  
                  )
  </code></pre>
  
  <p>In the response the adUniqueness = "all" which is a default however from the Adform documentation (<a href="http://api.adform.com/help/references/buyer-solutionsc/reporting/metadata/metrics" rel="nofollow noreferrer">http://api.adform.com/help/references/buyer-solutionsc/reporting/metadata/metrics</a>) there are other statistics for uniqueness level. </p>
  
  <pre><code>{
    "metricsMetadata": [
      {
        "key": "clicks",
        "category": "Delivery",
        "displayName": "Clicks",
        "displayFormat": "n0",
        "description": "This metric shows the number of clicks for the selected dimension. A click occurs when a user interacts with the advertisement by engaging a mouse button (usually the left) while the mouse pointer is hovering over the advertisement.",
        "specsMetadata": [
          {
            "key": "adUniqueness",
            "displayName": "Uniqueness",
            "description": "Display statistics for selected uniqueness level",
            "specValuesMetadata": [
              {
                "key": "all",
                "displayName": "All",
                "isDefault": true,
                "description": ""
              },
              {
                "key": "campaignUnique",
                "displayName": "Campaign unique",
                "isDefault": false,
                "description": ""
              }
            ]
          }
        ]
      }
  </code></pre>
  
  <p>How do I add the <code>"campaignUnique"</code> to the POST?</p>