Hi Sreelakshmi & Vishal,

I would to retry current pendient invitations with 
ManagedCustomerService.getPendingInvitations but do not retry nothing (NULL)

This is sample code in PHP as called in 
https://developers.google.com/adwords/api/docs/guides/accounts-overview

<?php
namespace Google\AdsApi\Examples\AdWords\v201708\AccountManagement;
require 'libs/adwords/vendor/autoload.php';
use Google\AdsApi\AdWords\AdWordsServices;
use Google\AdsApi\AdWords\AdWordsSession;
use Google\AdsApi\AdWords\AdWordsSessionBuilder;
use Google\AdsApi\AdWords\v201708\cm\OrderBy;
use Google\AdsApi\AdWords\v201708\cm\Paging;
use Google\AdsApi\AdWords\v201708\cm\Selector;
use Google\AdsApi\AdWords\v201708\cm\SortOrder;
use Google\AdsApi\AdWords\v201708\mcm\ManagedCustomerService;
use Google\AdsApi\AdWords\v201708\mcm\PendingInvitation;
use Google\AdsApi\AdWords\v201708\mcm\PendingInvitationSelector;
use Google\AdsApi\Common\OAuth2TokenBuilder;

class GetUsersList {

  public static function runExample(AdWordsServices $adWordsServices, 
AdWordsSession $session) {
    $managedCustomerService = $adWordsServices->get($session, 
ManagedCustomerService::class);
    
    $selector = new PendingInvitationSelector();
    $invitations = 
$managedCustomerService->getPendingInvitations($selector);

    var_dump ($invitations);

  }

  public static function main() {
    $oAuth2Credential = (new OAuth2TokenBuilder())
        ->fromFile()
        ->build();
    $session = (new AdWordsSessionBuilder())
        ->fromFile()
        ->withOAuth2Credential($oAuth2Credential)
        ->build();        
        self::runExample(new AdWordsServices(), $session);
  }
}
GetUsersList::main();
?>

How could I retry list of pending invitations?


-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/f09c186c-5099-4798-85cf-e68ccefb0ce4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • Re: Acco... Carlos Abrantes
    • Re:... 'Sreelakshmi Sasidharan (AdWords API Team)' via AdWords API Forum
      • ... Carlos Abrantes
    • Re:... smarketingads
      • ... 'Sreelakshmi Sasidharan (AdWords API Team)' via AdWords API Forum

Reply via email to