HI all, I'm trying to get All ads from my Adwords account via the API (PHP). I'm using *AdGroupAdService:*
$adGroupAdService = $user->GetService('AdGroupAdService', self::ADWORDS_VERSION); $selector = new Selector(); $selector->fields = [ 'Headline', 'Id', 'CreativeFinalUrls', ]; $selector->ordering[] = new OrderBy('Headline', 'ASCENDING'); $selector->predicates[] = new Predicate('Status', 'IN', array('ENABLED')); $selector->paging = new Paging(0, AdWordsConstants::RECOMMENDED_PAGE_SIZE); $result = []; do { $page = $adGroupAdService->get($selector); if (isset($page->entries)) { foreach ($page->entries as $adGroupAd) { $result[$adGroupAd->ad->id . '#' . $adGroupAd->adGroupId] = [ 'title' => $adGroupAd->ad->headline . "({$adGroupAd->ad->description1} ...)", 'url' => $adGroupAd->ad->finalUrls[0], ]; } } else { print "No text ads were found.\n"; } $selector->paging->startIndex += AdWordsConstants::RECOMMENDED_PAGE_SIZE; } while ($page->totalNumEntries > $selector->paging->startIndex); And I have only ads from one account's campaign. When trying to find ads from any other campaigns, API returns nothing. How to get *All *ads from account from all ads and groups? -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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/687795ed-4deb-4a75-a8c7-9e3a27b8316d%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.