// Generate a refreshable OAuth2 credential for authentication.
$oAuth2Credential = (new OAuth2TokenBuilder())
->fromFile()
->build();
$session = (new AdWordsSessionBuilder())
->fromFile()
// ->withClientCustomerId('728-018-0886')
->withClientCustomerId($data['customer_id'])
->withOAuth2Credential($oAuth2Credential)
->build();
$adWordsServices = new AdWordsServices();
$BudgetOrderService = $adWordsServices->get(
$session, BudgetOrderService::class);
// Create selector.
$selector = new Selector();
$selector->setFields([
'BillingAccountId','Id', 'BillingAccountName',
'PoNumber', 'BudgetOrderName', 'PrimaryBillingId', 'SecondaryBillingId',
'SpendingLimit', 'TotalAdjustments', 'StartDateTime', 'EndDateTime'
]);
// $selector->setOrdering([new OrderBy('CustomerId', SortOrder::ASCENDING)]);
$selector->setPaging(new Paging(0, self::PAGE_LIMIT));
$page= $BudgetOrderService->get($selector);
Thank you very much for your reply. I see.At present we are recycling data, but slower.
Thank you.That's all we can do