Re: Determining whether a campaign targeting the search network, or the display network

2015-11-18 Thread etienne . veilleux
Hi and thank you I can now retrieve the "channel type".

Good day !

On Wednesday, November 18, 2015 at 9:26:44 AM UTC-5, Anthony Madrigal wrote:
>
> Hi,
>
> In order to get the network type of your campaigns, select the field 
> AdvertisingChannelType 
> 
>  in 
> your selector in the CampaignService.
>
> Cheers,
> Anthony
> AdWords API Team
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 http://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/cb5e441b-80d2-4333-84d5-55c39ae4b4ad%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Determining whether a campaign targeting the search network, or the display network

2015-11-18 Thread Anthony Madrigal
Hi,

In order to get the network type of your campaigns, select the field 
AdvertisingChannelType 

 in 
your selector in the CampaignService.

Cheers,
Anthony
AdWords API Team

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 http://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/719d74db-ba09-49a4-8b31-eb165350fc36%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Determining whether a campaign targeting the search network, or the display network

2015-11-17 Thread etienne . veilleux
Hi,

I'm trying to determine whether a campaign targeting the search network or 
the display network, but I don't know which service to use.

I am able to get the information of a campaign with "CampaignService".

How can I get this kind of data?

I am working with PHP.

Thank you !

This is the way I get campaign informations:

function getCampaign(AdWordsUser $user) {
$campaignService = $user->GetService('CampaignService', 
ADWORDS_VERSION);
$selector = new Selector();
$selector->fields = array('Id','Name', 'Status');
// Filter out deleted criteria.
//$selector->predicates[] = new Predicate('Status', 'NOT_IN', 
array('DELETED', 'PAUSED'));
 
$page = $campaignService->get($selector);
 
foreach ($page->entries as $campaign) {
printf("%s", $campaign->id);
printf("%s", $campaign->name);
printf("%s", $campaign->status);
} 
}

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 http://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/ddb6e3cc-e33e-48b0-af3d-97ba2cf5d7e0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.