CM360 API to v4.0 error: Service not found: dfareporting v3.5

76 views
Skip to first unread message

Kamaldeep Singh Bachus

unread,
Oct 24, 2023, 8:44:52 AM10/24/23
to Google's Campaign Manager 360 API Forum

Hi, I can see there is an update with the CM360 API to v4.0.

 

I am using the Google sheets and app sheet to bulk upload the advertisers and getting an error “Service not found: dfareporting v3.5”. Could you let me know what I need to change to get it working for the API?

 

 

/**

 * Use DCM API to Create Advertisers in the specified floodlight configuration, print ID out on the sheet

 */

function bulkInsertAdvertisers() {

  var ss = SpreadsheetApp.getActiveSpreadsheet();

  var sheet = ss.getSheetByName(INSERT_ADVERTISERS);

 

  // This represents ALL the data

  var range = sheet.getDataRange();

  var values = range.getValues();

 

  const profile_id = _fetchProfileId();

 

  // build request body resources

  for (var i = 1; i < values.length; ++i) {

    var currentRow = i + 1;

    var currentPlacement = values[i];

    var advertiser_name = currentPlacement[0];

    var advertiserGroupId = currentPlacement[2]; //Changed by kam

    var floodlightConfigId = currentPlacement[3];

    var subaccountId = currentPlacement[4];

    var resource = {

        "name": advertiser_name,

        "advertiserGroupId": advertiserGroupId, //Changed by kam

        //"floodlightConfigurationId": floodlightConfigId,

        "subaccountId": subaccountId

      };

 

   

    var newAdvertiser = dfareporting.advertisers

                                          .insert(resource, profile_id);

   

    sheet.getRange("B" + currentRow)

         .setValue(newAdvertiser.id).setBackground(AUTO_POP_CELL_COLOR);

   

      }  

  }

 

 

Thanks,

DCM API (DoubleClick Campaign Mgr)

unread,
Oct 25, 2023, 2:18:37 AM10/25/23
to google-doubleclick-...@googlegroups.com
Hi Kamaldeep,

Thank you for reaching out to the CM360 API support team.

By reviewing your concern, I understand that you are facing issues while inserting the Advertisers using the CM360 API Python client library. I would like to inform you that you are using the v3.5 version of the CM360 API which is deprecated and disabled. It is recommended to use the latest version v4 of the CM360 API. You may refer to the Python code sample of the CM360 API via this link. Even after upgrading to the latest v4 of the CM360 API and still if you are facing the same issue then, kindly check with the developer's specialist support team. They are the ones who maintain our client libraries and are best equipped to answer questions about using them.

 If you are facing any issues while using the CM360 API, you may share the below information:

  • DCM Account ID
  • Profile ID used in the request call
  • Request body & URL with path param values
  • Complete API Response showing the error
You can send the details via Reply privately to the author option, or direct private reply to this email.
 
This message is in relation to case "ref:!00D1U01174p.!5004Q02pVmoV:ref"

Thanks,
 
Google Logo DCM API Team


Reply all
Reply to author
Forward
0 new messages