Creative's "Creative Type" value: How does obtain this programmatically

124 views
Skip to first unread message

Michael Manoochehri

unread,
Aug 23, 2021, 12:44:06 AM8/23/21
to Google Ad Manager API Forum
Hi GAM API forum!

How does one obtain the "Creative Type" value programmatically? Is this available via the Creative Service?

Specifically, this value:

Screen Shot 2021-08-23 at 12.41.08 AM.png

Ad Manager API Forum Advisor

unread,
Aug 23, 2021, 11:34:06 PM8/23/21
to m...@switchboard-software.com, google-doubleclick...@googlegroups.com

Hi Michael,

 

Yes, you may use the Creative Service for this by using getCreativesByStatement. When retrieving a creative, it would also return back their specific type. In your case, retrieving a creative with a type of Campaign Manager 360 returns the type InternalRedirectCreative which, based from our documentation, is a Creative hosted by Campaign Manager 360.

 

Please let us know if you have any further questions.

Regards,

 

Google Logo
Yasmin Gabrielle Padua
Ad Manager API Team
 


ref:_00D1U1174p._5004Q2MhuUR:ref

Michael Manoochehri

unread,
Aug 24, 2021, 7:25:59 AM8/24/21
to Google Ad Manager API Forum
Hi Yasmin: 

Where specifically is "Type" in the Creative Object? I don't see it listed here:

Michael

Ad Manager API Forum Advisor

unread,
Aug 24, 2021, 7:52:45 AM8/24/21
to m...@switchboard-software.com, google-doubleclick...@googlegroups.com

Hi Michael,

 

Based on the link of our documentation that you have sent, it should be seen on the right side, under Inheritance. Furthermore, it is listed in our documentation on CreativeService, you may check out the types from there.

Michael Manoochehri

unread,
Aug 24, 2021, 8:27:31 AM8/24/21
to Google Ad Manager API Forum
The response of the getcreativesbystatement is a page of creatives. These creatives don't contain a type field. See:
How does one access the "Type" - there must be some other method.

Ad Manager API Forum Advisor

unread,
Aug 24, 2021, 10:03:29 PM8/24/21
to m...@switchboard-software.com, google-doubleclick...@googlegroups.com

Hi Michael,

 

I am resending my response as I am unsure if my previous one made its way to you.

 

As per our documentation on getCreativesByStatement, indeed, it gets a CreativePage of Creative objects that satisfy the given Statement.query. If you navigate towards our documentation on CreativePage, the field you are looking for is listed under results.

 

Can you please try running the method getAllCreatives by making use of the statement builder to see if this works for you? Furthermore, do take note of the interface used in the sample code.

Michael Manoochehri

unread,
Aug 25, 2021, 9:47:40 AM8/25/21
to Google Ad Manager API Forum
Hi Yasmin:

Ok, still not seeing the type field. The "Results" link you provided shows objects of type "Creative" - which is what the Creative Service produces. When you click on the Creative object (here https://developers.google.com/ad-manager/api/reference/v202108/CreativeService.Creative?hl=en), these are the available fields:

  • advertiserId
  • id
  • name
  • size
  • previewUrl
  • policyLabels
  • appliedLabels
  • lastModifiedDateTime
  • customFieldValues
  • thirdPartyDataDeclaration


Where is the "Type" field? (Or, how does one retrieve the type?)

Ad Manager API Forum Advisor

unread,
Aug 25, 2021, 8:43:07 PM8/25/21
to m...@switchboard-software.com, google-doubleclick...@googlegroups.com

Hi Michael,

 

I can confirm that I was able to retrieve the field type while using the method getAllCreatives by making use of the statement builder, such that if I were to get a creative with a creative type of Image, it would return a type of ImageCreative as well as if I were to get a creative with a creative type of Campaign Manager 360 it would return the type InternalRedirectCreative.

 

May I request for your complete SOAP request and response logs (SOAP logging must be enabled) when you retrieve a creative while using getCreativesByStatement so that I may further investigate this? You may send them via Reply privately to author option, or a direct private reply to this email.

Reply all
Reply to author
Forward
0 new messages