Re: Add audiences remarketing website visitors to campaign

2016-09-22 Thread 'Shwetha Vastrad (AdWords API Team)' via AdWords API Forum
Hi,

Once you have created audiences using the AddAudience.php 

 
example, you need to add a CampaignCriterion 

 of 
type CriterionUserList. Please note that a UserList can only be excluded 
from a Campaign. To actively target a UserList, you need to create a 
CriterionUserList 

 at 
the AdGroup level using the code below: 


$criterionUserList = new CriterionUserList();
$criterionUserList->userListId = $userListId;
$criterionUserList->type = "USER_LIST";
$adGroupCriterion = new BiddableAdGroupCriterion();
$adGroupCriterion->adGroupId = $adGroupId;
$adGroupCriterion->criterion = $criterionUserList;
$adGroupCriteria[] = $adGroupCriterion;
// Create operation.
$operation = new AdGroupCriterionOperation();
$operation->operand = $adGroupCriterion;
$operation->operator = 'ADD';
$operations[] = $operation;
$result = $adGroupCriterionService->mutate($operations);


The table provided here 
 shows 
the options available for different criterion types at the campaign and ad 
group level. 

Regards,
Shwetha, 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 https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/59455b55-86b6-4a53-a8e3-7633bd71624b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Add audiences remarketing website visitors to campaign

2016-09-22 Thread testapidilren2





W dniu czwartek, 22 września 2016 22:46:13 UTC+2 użytkownik 
testapi...@gmail.com napisał:
>
> I'm sorry but I do not understand you.
> My script creates audiences that looks like this:
>
>
> 
>
> and creating the appropriate campaigns.
>
>
> The only thing the script does not do it does not add audiences to 
> campaign. Every time you run functions: AddAudiences($google_campaign_id);
> The script adds new audiences but does not assign it to the campaign to 
> which we give id.
>
>
> 
>
>
> W dniu czwartek, 22 września 2016 20:00:47 UTC+2 użytkownik Shwetha 
> Vastrad (AdWords API Team) napisał:
>>
>> Hi,
>>
>> To create an audience list that captures everyone who visited a website, 
>> you need to create an ExpressionRuleUserList 
>> ,
>>  
>> as shown here 
>> .
>>  To 
>> add this audience to a campaign, you would need to add a 
>> CampaignCriterion 
>> 
>>  of type CriterionUserList 
>> ,
>>  
>> similar to how you have created an AdGroupCriterion in your code above. Let 
>> me know if this works. 
>>
>> Regards,
>> Shwetha, 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 https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/9698907c-8264-4170-8b1c-42767eea3cee%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Add audiences remarketing website visitors to campaign

2016-09-22 Thread testapidilren2
I'm sorry but I do not understand you.
My script creates audiences that looks like this:



and creating the appropriate campaigns.


The only thing the script does not do it does not add audiences to 
campaign. Every time you run functions: AddAudiences($google_campaign_id);
The script adds new audiences but does not assign it to the campaign to 
which we give id.




W dniu czwartek, 22 września 2016 20:00:47 UTC+2 użytkownik Shwetha Vastrad 
(AdWords API Team) napisał:
>
> Hi,
>
> To create an audience list that captures everyone who visited a website, 
> you need to create an ExpressionRuleUserList 
> ,
>  
> as shown here 
> .
>  To 
> add this audience to a campaign, you would need to add a CampaignCriterion 
> 
>  of type CriterionUserList 
> ,
>  
> similar to how you have created an AdGroupCriterion in your code above. Let 
> me know if this works. 
>
> Regards,
> Shwetha, 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 https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/5d577b7e-d636-4097-a33c-2a49e6d0f416%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Add audiences remarketing website visitors to campaign

2016-09-22 Thread 'Shwetha Vastrad (AdWords API Team)' via AdWords API Forum
Hi,

To create an audience list that captures everyone who visited a website, 
you need to create an ExpressionRuleUserList 
,
 
as shown here 
.
 To 
add this audience to a campaign, you would need to add a CampaignCriterion 

 of type CriterionUserList 
,
 
similar to how you have created an AdGroupCriterion in your code above. Let 
me know if this works. 

Regards,
Shwetha, 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 https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/5b21dbaa-948a-48cb-8567-0a97f27fb581%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.