Adwords API get Operation not working

31 views
Skip to first unread message

cv

unread,
Apr 23, 2020, 5:36:23 AM4/23/20
to AdWords API and Google Ads API Forum
Hi,

I was using the get Operation to get campaigns, since yesterday it was working fine, but not getting values from today.

What can be an issue and how I can track the same?

I was using code

$oAuth2Credential = (new OAuth2TokenBuilder())
                    ->fromFile(ADS_INI_PATH)
                    ->withRefreshToken($refresh_token)                                      
                    ->build();          

            $session = (new AdWordsSessionBuilder())
                    ->fromFile(ADS_INI_PATH)
                    ->withOAuth2Credential($oAuth2Credential)  
                    ->withClientCustomerId($client_id)
                    ->build();
            
            $campaignService = (new AdWordsServices)->get($session, CampaignService::class);
            
            $selector = new Selector();
            $selector->setFields(['Id', 'Name', 'Status']);
            $page = $campaignService->get($selector);



I was able to get adwords session but not able to get the campaigns page.

Thanks,
 

Google Ads API Forum Advisor Prod

unread,
Apr 23, 2020, 1:10:39 PM4/23/20
to chirag....@gmail.com, adwor...@googlegroups.com
Hi,

Thank you for reaching out. Can you please provide the complete detailed request and response logs for your call via Reply privately to author so that I can further investigate the issue? You can find information on enabling logging here.

Regards,
Mitchell
Google Ads API Team

ref:_00D1U1174p._5001UaS167:ref
Reply all
Reply to author
Forward
0 new messages