Thanks for the quick response, i have done with Campaign and AdGroups data 
using get method, working on Ads part, if any will ask you. FYI - added 
part of my code to get campaign details, the same way done for adgroups, 
please correct me if am in wrong way.

$session = self::setSession();
        $adWordsServices = new AdWordsServices();
        $campaignService = $adWordsServices->get($session, 
CampaignService::class);
        $campaignId = intval($campaignId);
        // $campData = array();
        $campData = [];

        // Create a campaign with PAUSED status.
        $campaign = new Campaign();
        $campaign->setId($campaignId);

         // Create a campaign operation and add it to the list.
        $operation = new CampaignOperation();
        $operation->setOperand($campaign);
        $operation->setOperator(Operator::SET);
        $operations[] = $operation;

        // Fetch the campaign from the server.
        $result = $campaignService->mutate($operations);

On Thursday, August 6, 2020 at 10:43:34 PM UTC+5:30, adsapiforumadvisor 
wrote:
>
> Hello,
>
> Yes, you will have to use the get() methods within each service to pull 
> the data you are looking for. Here are the respective links to the services 
> you are looking for in AdWords API: 
>    
>    - CampaignService 
>    
> <https://developers.google.com/adwords/api/docs/reference/v201809/CampaignService#get>
>  
>    - AdService 
>    
> <https://developers.google.com/adwords/api/docs/reference/v201809/AdService#get>
>  
>    - AdGroupService 
>    
> <https://developers.google.com/adwords/api/docs/reference/v201809/AdGroupService>
>  
>
> For code samples, you can refer to this 
> <https://developers.google.com/adwords/api/docs/samples/java/basic-operations#get-all-campaigns-using-awql>
>  documentation. 
> If you have additional questions, please don't hesitate to ask. 
>
> Regards,
> Danica, Google Ads API Team 
>    
>    
>
>
> ref:_00D1U1174p._5004Q23HjQE:ref
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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 and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/4aea024d-3dc5-4b75-be34-7503039a0369o%40googlegroups.com.

Reply via email to