BatchJobMutateResponse - campaignLabel operand not returning the campaignId

14 views
Skip to first unread message

pedro....@spaceboost.com

unread,
Jun 19, 2018, 10:47:20 AM6/19/18
to AdWords API and Google Ads API Forum

Hi,

I have a list of BatchJobOperation to create a structure with campaigns, keywords, assign labels, ads, etc.
All the operations are executed successfully in AdWords and I get the results back. When I try to apply the results to my local database, I encounter an issue with the campaignLabelOperation with operator "ADD".
The campaignId parameter in campaignLabel operand is null but I need it to apply the label to my campaigns in my database (screenshot in attachement).
I reckon the campaignId should be there, because the campaignLabelOperation is executed after the campaignOperation with operator "ADD" and if I don't have the campaignId I can't apply the label to the corresponding campaign.
Is this an issue that is going to be fixed or is this normal behavior?

Appreciate your time.

Best regards,
Pedro Alegre
campaignLabel.png

Dhanya Sundararaju (AdWords API Team)

unread,
Jun 19, 2018, 4:07:48 PM6/19/18
to AdWords API and Google Ads API Forum
Hi Pedro,

To assign label to a campaign, you will need to use CampaignService.mutateLabels with CampaignLabel which will need the labelId and the campaignId. So, you will need to pass the campaignId to create the label. If you still have issues, could you please reply privately to author with logs so that I can troubleshoot further?

Regards,
Dhanya, AdWords API Team
Reply all
Reply to author
Forward
0 new messages