Criteria Performance Report - youtube campaings

82 views
Skip to first unread message

Dominik Raffetseder

unread,
Feb 21, 2018, 4:31:29 AM2/21/18
to AdWords API Forum
Im not able to get the youtube campaingns and the cost with Criteria Performance Report.
How can i do this? How do i get the spend money etc?

Bharani Cherukuri (AdWords API Team)

unread,
Feb 21, 2018, 3:23:42 PM2/21/18
to AdWords API Forum
Hello, 

Could you share us the complete report definition along with the client customer Id, so I can take a look? Please use Reply privately to author option to provide the details. 

Regards,
Bharani, AdWords API Team

Zweitze

unread,
Feb 22, 2018, 6:50:46 AM2/22/18
to AdWords API Forum
To get results from campaigns, try CAMPAIGN_PERFORMANCE_REPORT.
That also includes results from video campaigns.

Dominik Raffetseder

unread,
Feb 22, 2018, 7:38:37 AM2/22/18
to AdWords API Forum
Another problem is, with getCampaigns i'm not able to get the Youtube Campaigns?

use Google\AdsApi\AdWords\AdWordsServices;
use Google\AdsApi\AdWords\AdWordsSession;
use Google\AdsApi\AdWords\AdWordsSessionBuilder;
use Google\AdsApi\AdWords\v201710\cm\CampaignService;
use Google\AdsApi\AdWords\v201710\cm\OrderBy;
use Google\AdsApi\AdWords\v201710\cm\Paging;
use Google\AdsApi\AdWords\v201710\cm\Selector;
use Google\AdsApi\AdWords\v201710\cm\SortOrder;
use Google\AdsApi\Common\OAuth2TokenBuilder;

/**
 * This example gets all campaigns. To add a campaign, run AddCampaign.php.
 */
class GetCampaigns {

  const PAGE_LIMIT = 500;

  public static function runExample(AdWordsServices $adWordsServices,
      AdWordsSession $session,$customer_id,$kuerzel) {
    global $DBH;
    $campaignService = $adWordsServices->get($session, CampaignService::class);

    // Create selector.
    $selector = new Selector();
    $selector->setFields(['Id', 'Name' ,'Status']);
    $selector->setOrdering([new OrderBy('Name', SortOrder::ASCENDING)]);
    $selector->setPaging(new Paging(0, self::PAGE_LIMIT));

    $totalNumEntries = 0;
    do {
      // Make the get request.
      $page = $campaignService->get($selector);

      // Display results.
      if ($page->getEntries() !== null) {
        $totalNumEntries = $page->getTotalNumEntries();
        foreach ($page->getEntries() as $campaign) {
         /* printf(
              "Campaign with ID %d and name '%s' was found.<br>",
              $campaign->getId(),

Bharani Cherukuri (AdWords API Team)

unread,
Feb 22, 2018, 11:58:23 AM2/22/18
to AdWords API Forum
Hello, 

Thank you for sharing the code snippets. Could you share us your client customer Id privately, so I can take a look? Also, please note that currently video campaigns are supported only in reports. 

In addition to what Zweitze mentioned, you may also use Video Performance Report to pull the stats for these campaigns.  

Bharani Cherukuri (AdWords API Team)

unread,
Feb 27, 2018, 1:55:58 PM2/27/18
to AdWords API Forum
Hello, 

Thank you for sharing the details privately. If you're trying to get the metrics for the Video campaigns, it is currently not supported using the AdWords API services. You will be able to use Criteria Performance ReportCampaign Performance Report and Video Performance Report to pull the metrics for these campaigns. 

Dominik Raffetseder

unread,
Mar 19, 2018, 3:24:04 AM3/19/18
to AdWords API Forum
But how do i get the campaign id of the youtube campaign? Do i have to read it out manually?

Peter Oliquino

unread,
Mar 19, 2018, 6:19:55 AM3/19/18
to AdWords API Forum
Hi Dominik,

I will be providing support as my colleague Bharani is currently OOO. If you are looking for YouTube campaign information via the AdWords API, then I'm afraid that it is currently not available through the reports or the services. You may reach out to the product experts from the AdWords Community Forum if such information can be retrieved from the AdWords UI.

Best regards,
Peter
AdWords API Team

Peter Oliquino

unread,
Mar 19, 2018, 6:48:02 AM3/19/18
to AdWords API Forum
Hi Dominik,

My apologies for the confusion. To correct my initial response, YouTube Network campaigns are supported only through the reports and you may retrieve their ad level statistics via the Video Performance Report. To get their campaign level statistics, you can use the Campaign Performance Report. In addition, both reports should also support the CampaignId field.
Reply all
Reply to author
Forward
0 new messages