googleads / googleads/googleads-python-lib

Create Native Creative - Issue

Open
#553 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
749
Forks
967
PR merge metrics
No merged PRs in 30d

Description

Hi Team,

I am using SOAP API v202408 for creating the native creatives by consuming python libraries. When i try to create a native creative from the available python code in github, it throws the below error.

Error summary: {'faultMessage': '[TypeError.INVALID_TYPE @ [0].creativeTemplateVariableValues.ThirdPartyImpressionTracker]', 'requestId': '998c1d2dbddf97da44ef84a3a3cf68f0', 'responseTime': '969', 'serviceName': 'CreativeService', 'methodName': 'createCreatives'}

So, I tried to get all the variables, settings, advanced settings, etc... unique names and their types by passing the template id but unfortunately i didn't find any script to achieve this. If it's there it would be much more helpful so that before creating a native creative i will know which variables are available in a particular template.

1.Is there any script available to get all the template variable details, settings,advanced settings like their unique values, types by passing the template id as input?

2.How to select an option from drop down and enter the respective value in the text box from API as shown in the below image?
image

I am sharing the python script which i used to create a native creative, please feel free to modify it wherever it is required.

Let me know if you have any queries...

Thanks

Create_Native_Creatives.txt

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the attached Create_Native_Creatives.txt and the SOAP API v202408 createCreatives request. Investigate how the template ID relates to variable metadata and the reported ThirdPartyImpressionTracker type error, including the dropdown and text-box questions. Done means the required template details and request values are identified and documented or demonstrated.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.