Google Ads Api: AdGroupAd names not being set (Java API)

62 views
Skip to first unread message

Benjamin Ryves

unread,
May 22, 2019, 3:51:52 AM5/22/19
to AdWords API and Google Ads API Forum
Hi there. We're currently uploading ResponsiveDisplay / ResponsiveSearch Ads using the Google Ads API, and we've found that created Ads don't include the Ad name. The operations are being sent with names (which aren't null):

`Ad.newBuilder.setName(StringValue.of(operation.name))...`

But querying the created Ad using the returned ResourceName:
`service.getAdGroupAd(ResourceNames.adGroupAd(accountId, adGroupId, adId)`

Returns an object with all the other fields set, but with the name set to null.


GetYourGuide AG

Stampfenbachstrasse 48  

8006 Zürich

Switzerland


Icon_4.png

Google Ads API Forum Advisor Prod

unread,
May 22, 2019, 6:10:24 AM5/22/19
to adwor...@googlegroups.com
Hi Benjamin,

So I can further investigate, could you provide to me your clientCustomerId and the complete JSON logs that were generated after you tried to create the ResponsiveDisplayAds? You may send your reply privately via the Reply privately to author option.

Thanks and regards,
Peter
Google Ads API Team

ref:_00D1U1174p._5001UAqJz3:ref

Benjamin Ryves

unread,
May 29, 2019, 6:27:36 AM5/29/19
to AdWords API and Google Ads API Forum
Hi there - any response on this? I messaged you privately as requested, but haven't heard back.

Google Ads API Forum Advisor Prod

unread,
May 29, 2019, 6:35:55 AM5/29/19
to adwor...@googlegroups.com
Hi Benjamin,

I sent my responses directly to your email, could you check? If you are unable to find them, you may refer below for the contents of my response :

"Thank you for providing the information I requested. However, upon checking your test account (575-688-9056) and all its display campaigns, I was not able to find the ad group (70781758796) you specified when creating your ResponsiveDisplayAd. The ad group ID appears to be non-existent.

That being said, could you retry creating another ReponsiveDisplayAd, this time using one of the ad groups included in your display campaigns? Let me know if the created ad still does not record all the fields you set when creating it."

Benjamin Ryves

unread,
May 29, 2019, 8:03:11 AM5/29/19
to AdWords API and Google Ads API Forum
Hi Peter,

I didn't get the emails unfortunately. Thanks for sending the message here as well.

With regards to the ResponsiveDisplayAd we can create another one. The reason you don't see the AdGroup is because we create, query, and then remove the entities on our test accounts as part of our integration tests.

I'll create another ResponsiveDisplayAd and then get back to you.
Message has been deleted

Google Ads API Forum Advisor Prod

unread,
May 29, 2019, 10:34:41 PM5/29/19
to adwor...@googlegroups.com
Hi Benjamin,

Thank you so much for sending your JSON logs and for clarifying as to why I am unable to see your ads earlier. Moving forward, I apologize for the back and forth, however, in your get request, did you also explicitly include the AdGroupAd.Ad.Name field in the selected fields?

Could you share to me as well the JSON logs of your get request? You may send your reply once more using the Reply privately to author option.

Best regards,

Google Ads API Forum Advisor Prod

unread,
Jun 4, 2019, 3:54:32 PM6/4/19
to benjami...@getyourguide.com, adwor...@googlegroups.com
Hello Benjamin, 

I was able to create a Responsive Display Ad on my testing. It looks like the Ad name field is not available for the Responsive Display Ads in the Google Ads UI. It could be the reason as to why this field is field cannot be set/get through the API. Could you please confirm if you're able to set this field in the UI? If so, could you please share a screenshot?

Thanks,
Bharani, Google Ads API Team

ref:_00D1U1174p._5001UAqJz3:ref

Benjamin Ryves

unread,
Jun 4, 2019, 5:17:00 PM6/4/19
to AdWords API and Google Ads API Forum
Hi Bharani,

I'm not sure the name field can be set via the UI - it's exposed via the new Google Ads API. The documentation for the name reads as follows:

name

StringValue

The name of the ad. This is only used to be able to identify the ad. It does not need to be unique and does not affect the served ad.


The ability to set a name, and get a name, is exposed in the Google Ads Java client, which led me to believe it's a supported feature, despite not being present in the UI.
As shown by the earlier logs I provided, the name is sent when using the Java client.

Best,
Ben

Google Ads API Forum Advisor Prod

unread,
Jun 5, 2019, 12:09:17 PM6/5/19
to benjami...@getyourguide.com, adwor...@googlegroups.com
Hello Ben, 

That's right. It is not possible to add the name for the Responsive Display Ad. This field is not exposed through the Google Ads UI too. I have shared your feedback with the team to update the documentation. You will be able to set the API fields that are currently supported in the UI. 

Let me know if you have any questions.
Reply all
Reply to author
Forward
0 new messages