push adGroupAd with ad

44 views
Skip to first unread message

shuyu zhang

unread,
Jan 23, 2024, 6:07:47 AM1/23/24
to Google Ads API and AdWords API Forum
When we push adGroupAd to google ads ,we want with labels 


List<MutateOperation> mutateOperationList = new ArrayList<>();
Long accountId = adServingModel.getAccountModel().getAccountId();
for (AdGroupModel adGroupModel : adServingModel.getCampaignModel().getAdGroupModelList()) {
List<AdGroupAdModel> adGroupAdModelList = adGroupModel.getAdGroupAdModelList();
for (AdGroupAdModel adGroupAdModel : adGroupAdModelList) {
AdGroupAd.Builder adGroupAdBuilder = AdGroupAd.newBuilder();
adGroupAdSetterList.forEach(adGroupAd -> adGroupAd.setter(adGroupAdBuilder, adGroupAdModel));


adGroupAdBuilder.addLabels(ResourceNames.label(accountId,21676546245l));


adGroupAdAdGroupSetterList.forEach(adGroupAd -> adGroupAd.setter(adGroupAdBuilder, adGroupModel));

mutateOperationList.add(MutateOperation.newBuilder()
.setAdGroupAdOperation(AdGroupAdOperation.newBuilder().setCreate(adGroupAdBuilder.build()).build())
.build());
}
}
return mutateOperationList;



but we can`t get labels on google UI







Google Ads API Forum Advisor

unread,
Jan 23, 2024, 9:47:40 AM1/23/24
to shuyu....@gmail.com, adwor...@googlegroups.com
Hi,

Thank you for reaching out to the Google Ads API support team.

After reviewing your concern, I understand that you are encountering issues while trying to push adGroupAd to Google Ads.

In order to assist you with the issue, could you please provide us with the uncropped UI screenshot of the issue you are facing along with complete API logs (request and response with request-id and request header).

If you are using a client library and haven't enabled the logging yet, I would request you to enable logging for the specific client library that you are using. You can refer to the guides Java.NetPHPPythonRuby or Perl to enable logging at your end. For REST interface requests, you can enable logging via the curl command by using the -i flag.
 
This message is in relation to case "ref:!00D1U01174p.!5004Q02rYAAY:ref"

Thanks,
 
Google Logo Google Ads API Team


Google Ads API Forum Advisor

unread,
Jan 23, 2024, 9:49:43 AM1/23/24
to shuyu....@gmail.com, adwor...@googlegroups.com
Hi,

Please ignore my previous response.


Thank you for reaching out to the Google Ads API support team.

After reviewing your concern, I understand that you are encountering issues while trying to push adGroupAd to Google Ads.

In order to assist you with the issue, could you please provide us with the uncropped UI screenshot of the issue you are facing along with complete API logs (request and response with request-id and request header).

If you are using a client library and haven't enabled the logging yet, I would request you to enable logging for the specific client library that you are using. You can refer to the guides Java.NetPHPPythonRuby or Perl to enable logging at your end. For REST interface requests, you can enable logging via the curl command by using the -i flag.

You can send the details via Reply privately to the author option, or direct private reply to this email.
Reply all
Reply to author
Forward
0 new messages