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(),



Am Donnerstag, 22. Februar 2018 12:50:46 UTC+1 schrieb Zweitze:
>
> To get results from campaigns, try CAMPAIGN_PERFORMANCE_REPORT.
> That also includes results from video campaigns.
>
> On Wednesday, February 21, 2018 at 10:31:29 AM UTC+1, Dominik Raffetseder 
> wrote:
>>
>> 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?
>>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/8e8a36b6-2f43-46aa-9970-8722a3905202%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • Criteria Perf... Dominik Raffetseder
    • Re: Crit... 'Bharani Cherukuri (AdWords API Team)' via AdWords API Forum
    • Re: Crit... Zweitze
      • Re: ... Dominik Raffetseder
    • Re: Crit... 'Bharani Cherukuri (AdWords API Team)' via AdWords API Forum
    • Re: Crit... 'Bharani Cherukuri (AdWords API Team)' via AdWords API Forum
      • Re: ... Dominik Raffetseder
        • ... 'Peter Oliquino' via AdWords API Forum
          • ... 'Peter Oliquino' via AdWords API Forum

Reply via email to