Hello,

I'm currently working on updating bids for Ad Groups using Google Ads API 
v17. For most Ad Group types, such as Search, Display, Shopping, and 
others, I can successfully update the bids (like Max CPC, Max CPM, Max CPV) 
without any issues.

However, when it comes to VIDEO_TRUE_VIEW_IN_STREAM Ad Groups (used for 
YouTube In-Stream Ads), I'm encountering a problem where I'm unable to 
modify the bids. Here’s a more detailed breakdown of the issue:

API Version: Google Ads API v17

Bid Strategy: The bid strategy for the campaign is set to Manual CPV (Cost 
Per View).

Error: When attempting to update the Max CPV or any other bid for 
VIDEO_TRUE_VIEW_IN_STREAM Ad Groups, I receive the following error:
"Mutates are not allowed for the requested resource".

Test Cases: I've tried the same logic on other types of Ad Groups (Search, 
Display, etc.), and the bid updates work flawlessly. This issue seems 
isolated to VIDEO_TRUE_VIEW_IN_STREAM Ad Groups.

Current Setup:

The campaigns containing these Ad Groups have Manual CPV bidding enabled.
The Ad Groups themselves have existing bids, and I’m attempting to modify 
them using the API.
Code Sample: Below is a simplified version of the code I’m using to update 
bids for Ad Groups. It works for other Ad Group types but fails 
specifically for VIDEO_TRUE_VIEW_IN_STREAM Ad Groups:


$query = "SELECT ad_group_criterion.resource_name, 
ad_group_criterion.cpv_bid_micros FROM ad_group_criterion WHERE 
ad_group_criterion.type NOT IN ('KEYWORD') AND ad_group_criterion.status IN 
('ENABLED', 'PAUSED') AND campaign.status IN ('ENABLED', 'PAUSED') AND 
ad_group.status IN ('ENABLED', 'PAUSED')"; $stream = 
$googleAdsClient->getGoogleAdsServiceClient()->searchStream(SearchGoogleAdsStreamRequest::build($customerId,
 
$query)); foreach ($stream->iterateAllElements() as $googleAdsRow) { 
$adGroupCriterion = $googleAdsRow->getAdGroupCriterion(); 
$adGroupCriterionUpdate = new AdGroupCriterion(); 
$adGroupCriterionUpdate->setResourceName($adGroupCriterion->getResourceName()); 
// Example for updating CPV bids $newCpvBid = 
$adGroupCriterion->getCpvBidMicros() * $adjustmentFactor; 
$adGroupCriterionUpdate->setCpvBidMicros($newCpvBid); 
$adGroupCriterionOperation = new AdGroupCriterionOperation(); 
$adGroupCriterionOperation->setUpdate($adGroupCriterionUpdate); 
$adGroupCriterionOperation->setUpdateMask(FieldMasks::allSetFieldsOf($adGroupCriterionUpdate));
 
$operations[] = $adGroupCriterionOperation; } if (!empty($operations)) { 
$adGroupCriterionServiceClient->mutateAdGroupCriteria(MutateAdGroupCriteriaRequest::build($customerId,
 
$operations)); }

  
My Questions:
Is there a limitation or restriction on modifying bids for 
VIDEO_TRUE_VIEW_IN_STREAM Ad Groups using Google Ads API?
Am I missing any special conditions or bid strategies that might be 
affecting the bid update process for these Ad Groups?
Are there specific bid types or updates not supported for this Ad Group 
type?
Are there any alternative methods to update bids for 
VIDEO_TRUE_VIEW_IN_STREAM Ad Groups via the API, or any other constraints I 
should be aware of?
Any help or guidance on this issue would be greatly appreciated!

Thank you.

-- 
This message (and any associated files) may contain confidential and/or 
privileged information. If you are not the intended recipient or authorized 
to receive this for the intended recipient, you must not use, copy, 
disclose or take any action based on this message or any information 
herein. If you have received this message in error, please advise the 
sender immediately by sending a reply e-mail and delete this message. Thank 
you for your cooperation.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 
"Google Ads API and AdWords 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/59dcff15-8d91-4a11-b93a-737fabfc5093n%40googlegroups.com.

Reply via email to