How to activate a YouTube Ad Group via AdWords API?

30 views
Skip to first unread message

ant...@decidata.tv

unread,
Jul 11, 2018, 3:07:21 AM7/11/18
to AdWords API and Google Ads API Forum

Hello,

We're trying to activate an Ad Group using the AdWords API, but we're getting the error: 

MUTATE_ACTION_NOT_PERMITTED_FOR_CLIENT

Here's the code we're using:

from googleads import adwords
from googleads import oauth2


 oauth2_client
= oauth2.GoogleRefreshTokenClient(
                ADWORDS_API_CLIENT_ID
, ADWORDS_API_CLIENT_SECRET,
                refresh_token
)
 adwords_client
= adwords.AdWordsClient(
                DEVELOPER_TOKEN
, oauth2_client, 'decidata sync',
                client_customer_id
='485-950-4386')
 service
= adwords_client.GetService('AdGroupService',version='v201802')
 operations
= [{
           
'operator': 'SET',
           
'operand': {
               
'id': 65215191268,
               
'status': 'ENABLED'
           
}
       
}]
 service
.mutate(operations)


Is there anything we can change to activate and pause YouTube Ad Groups ?

Thanks!

Peter Oliquino (AdWords API Team)

unread,
Jul 11, 2018, 3:53:03 AM7/11/18
to AdWords API and Google Ads API Forum
Hi Antonio,

Upon checking, it appears that the ad group you are trying to modify belongs to a video campaign. Unfortunately, video campaigns and ad groups associated to them are currently not supported in the AdWords API services and are only accessible via the reports as stated here. This being said, any changes you wish to apply to those mentioned can only be done via the AdWords UI.

I hope this helps.

Thanks and regards,
Peter
AdWords API Team
Reply all
Reply to author
Forward
0 new messages