Re: How to add global negative placements

2020-05-04 Thread Google Ads API Forum Advisor Prod
Hi,

Could you please reply privately to author your full request and response  so I 
can see what the error you are facing is?

Thanks,
Anthony
Google Ads API Team
ref:_00D1U1174p._5001UaSU68: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/RMGTm0Q9TKBI00rmJ3JnGISAKNLYlgpgi9Pg%40sfdc.net.


Re: How to add global negative placements

2020-05-04 Thread cv
Hi Anthony,

I would also like to assign created SharedSet to campaigns.
For that,
I was using like this

$campaignSharedSet = new CampaignSharedSet([
'campaign' => new StringValue(
['value' => 
ResourceNames::forCampaign($this->customerId, $campaignId)]
),
'shared_set' => new StringValue(['value' => 
'customers/XX/sharedSets/'])
]);

$campaignSharedSetOperation = new 
CampaignSharedSetOperation();
$campaignSharedSetOperation->setCreate($campaignSharedSet);

$campaignSharedSetServiceClient = 
$googleAdsClient->getCampaignSharedSetServiceClient();
$response = 
$campaignSharedSetServiceClient->mutateCampaignSharedSets(
$this->customerId,
[$campaignSharedSetOperation]
);

But API is giving error related to protobuf.

An uncaught Exception was encountered


Type:Exception

Message: Expect 
Google\Ads\GoogleAds\V3\Services\CampaignSharedSetOperation.

Filename:
/google-ads-php/vendor/google/protobuf/src/Google/Protobuf/Internal/GPBUtil.php

Line Number: 197



On Tuesday, 28 April 2020 23:12:10 UTC+5:30, adsapiforumadvisor wrote:
>
> Hello,
>
> I will add a feature request on your behalf to have this added to the API.
>
> Regards,
> Anthony
> Google Ads API Team
>
> ref:_00D1U1174p._5001UaSU68: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/460cd0dd-64f5-4a7a-a3f3-dc187f6b7a9e%40googlegroups.com.


Re: How to add global negative placements

2020-04-28 Thread Google Ads API Forum Advisor Prod
Hello,

I will add a feature request on your behalf to have this added to the API.

Regards,
Anthony
Google Ads API Team
ref:_00D1U1174p._5001UaSU68: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/ikBoy0Q9IEHM00C_0dSoe-Qw2B-UqNfCUlUA%40sfdc.net.


Re: How to add global negative placements

2020-04-27 Thread cv
Hi Anthony,

I am using new Google Ads PHP Lib(beta).

The UI can take any url, that can automatically converted to channel, so 
thought it might be possible using API.

So, I would only do the following criteria to exclude.

   1. ContentLabel 
   

   2. MobileAppCategory 
   

   3. MobileApplication 
   

   4. Placement 
   

   5. YouTubeChannel 
   

   6. YouTubeVideo 
   

   7. 
   
Thanks,


On Tuesday, 28 April 2020 00:34:22 UTC+5:30, adsapiforumadvisor wrote:
>
> Hello,
>
> Unfortunately, it is not possible to exclude YouTube users via the API. 
> You can use the CustomerNegativeCriterionService 
> 
>  
> to exclude criteria from the customer level.
>
> Regards,
> Anthony
> Google Ads API Team
>
> ref:_00D1U1174p._5001UaSU68: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/c27eb98a-dd2b-41a9-b3e6-556ebbd751f5%40googlegroups.com.


RE: How to add global negative placements

2020-04-27 Thread Google Ads API Forum Advisor Prod
Hello,

Unfortunately, it is not possible to exclude YouTube users via the API. You can 
use the CustomerNegativeCriterionService to exclude criteria from the customer 
level.

Regards,
Anthony
Google Ads API Team
ref:_00D1U1174p._5001UaSU68: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/Ey-Vq0Q9GNMI00IxSWDoiQTb-VVP6PE3ZQWw%40sfdc.net.


Re: How to add global negative placements

2020-04-27 Thread cv
Hi,

I know that I can add a Youtube channel using Youtube Channel but what 
about User?

How Do I add https://www.youtube.com/user/DisneyCollectorBR as a negative?

Thanks,


On Monday, 27 April 2020 19:42:28 UTC+5:30, cv wrote:
>
> Hi,
>
> I was trying to add placements as a Global Negative List.
>
> I was doing by this.
> $placements = ['https://www.youtube.com/channel/UCMwS4p5XhAY9Rhqq7EGGKQA', 
> 'https://www.youtube.com/channel/UCVHO-W63u8RrXa6BAHxfLtQ',
> 'https://www.youtube.com/user/DisneyCollectorBR', '
> https://www.youtube.com/user/Yaronelh'];
> foreach ($placements as $placement_value) {
> $sharedCriterion = new SharedCriterion([
> 'placement' => new PlacementInfo([
> 'url' => new StringValue(['value' => $placement_value])
> ]),
> 'shared_set' => new StringValue(
> ['value' => 'customers//sharedSets/'])
> ]);
>
> $sharedCriterionOperation = new SharedCriterionOperation();
> $sharedCriterionOperation->setCreate($sharedCriterion);
> $sharedCriterionOperations[] = $sharedCriterionOperation;
> }
>
>
> But this is not allowing me add the Placements.
>
>
>
> Thanks,
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/00b6a7b1-aed7-4eab-9fb2-fcb02e37c5ec%40googlegroups.com.


How to add global negative placements

2020-04-27 Thread cv
Hi,

I was trying to add placements as a Global Negative List.

I was doing by this.
$placements = ['https://www.youtube.com/channel/UCMwS4p5XhAY9Rhqq7EGGKQA', 
'https://www.youtube.com/channel/UCVHO-W63u8RrXa6BAHxfLtQ',
'https://www.youtube.com/user/DisneyCollectorBR', 
'https://www.youtube.com/user/Yaronelh'];
foreach ($placements as $placement_value) {
$sharedCriterion = new SharedCriterion([
'placement' => new PlacementInfo([
'url' => new StringValue(['value' => $placement_value])
]),
'shared_set' => new StringValue(
['value' => 'customers//sharedSets/'])
]);

$sharedCriterionOperation = new SharedCriterionOperation();
$sharedCriterionOperation->setCreate($sharedCriterion);
$sharedCriterionOperations[] = $sharedCriterionOperation;
}


But this is not allowing me add the Placements.



Thanks,

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/3c7cbca5-1222-411d-9cfd-41f01d2b60a6%40googlegroups.com.