Using temporary ids

19 views
Skip to first unread message

Flavien Delahaie

unread,
Jan 2, 2018, 10:18:13 AM1/2/18
to AdWords API Forum
Hello,

I want to create campaigns with the API. When creating I want to use temporary ids (https://developers.google.com/adwords/api/docs/guides/batch-jobs#using_temporary_ids).

I have a question, when we send a temporary id (-1 for example), the campaign is created on adwords and an id is assigned to it. How to bind this ID to the temporary id that was sent to link in my system?

In my system the campaign is created with the id -1.
I send it to the API
The campaign is create with its definitive id.
I wish to replace the temporary id -1 in my system by the definitive id that has been generated by adwords.

Thanks for your help

Sreelakshmi Sasidharan (AdWords API Team)

unread,
Jan 2, 2018, 4:50:22 PM1/2/18
to AdWords API Forum
Hi Flavien, 

Once the operation is completed, the reference to the temporary ids will be lost. One option is to map with the campaign name instead of the temporary Id. Once you have the campaign created, you can look up the campaign using the name and update the actual campaign Id.

Thanks,
Sreelakshmi, AdWords API Team
Reply all
Reply to author
Forward
0 new messages